grep --include=\*.{txt,sas} -rnw '/jakas/sciezka/' -e "fraza"
wyszuka slowa fraza w podanej sciezce ale tylko w plikach txt i sas
vim +X plik
http://manpages.courier-mta.org/htmlman8/lsblk.8.html
sudo update-alternatives --config editor
lub
vim .bashrc export EDITOR=vim
sudo vim /etc/apt/sources.list
deb http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_14.04/ ./
wget -O- https://dl.voidium.net/jgeboski/obs.key | sudo apt-key add - sudo aptitude update sudo apt-get install purple-facebook
instalacja wolumenu
lvcreate -n nazwa_wolumenu -L 100G nazwa_grupy
ściągamu iso płyty instalacyjnej i kopiujemy z niego kernel i ramdisc
wget -c http://cdimage.debian.org/debian-cd/8.3.0/amd64/iso-cd/debian-8.3.0-amd64-netinst.iso mount -t iso9660 iso-cd/debian-8.3.0-amd64-netinst.iso /mnt/iso/ cp /mnt/iso/install.amd/vmlinuz /xen/kernels/debian8.3/vmlinuz cp /mnt/iso/install.amd/initrd.gz /xen/kernels/debian8.3/initrd.gz
Zobacz całość
lvdisplay #wyświetl stan wolumenu vgdisplay #wyświetl grupy wolumenów lvcreate -n testDebian -L 30G xenvms #tworzy wolumen o rozmiarze 30GB w grupie xenvms umount /dev/myvg/homevol lvremove /dev/myvg/homevol #odmontuj i usuń wolumen
.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301,NE]
.htaccess
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
http://stackoverflow.com/questions/26620670/apache-httpx-forwarded-proto-in-htaccess-is-causing-redirect-loop-in-dev-envir
http://php.net/manual/en/function.get-class-methods.php
$class_methods = get_class_methods($response);
print_r($class_methods);
https://www.sdcard.org/downloads/formatter_4/
download sd formatter on windows
option > format size adjustment ON
Format
https://www.bezhasla.pl/windows-10-jak-wylaczyc-ikone-powiadamiania-o-aktualizacji-windows-7-8-8-1-d...
run cmd as admin
WUSA /UNINSTALL /KB:3035583
reboot
http://sourceforge.net/p/postfixadmin/discussion/676076/thread/5f6d138a/
vim /etc/usr/local/www/postfixadmin/config.inc.php
$CONF('alias_control') = 'YES'; sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 reload
$config['encryption_key'] = "YOUR KEY";
$this->load->library('encrypt');
$msg = 'My secret message';
$key = 'super-secret-key';
$encrypted_string = $this->encrypt->encode($msg, $key);
$encrypted = 'APANtByIGI1BpVXZTJgcsAG8GZl8pdwwa84';
$key = 'super-secret-key';
$encrypted_string = $this->encrypt->decode($encrypted, $key);
http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/gui/disable-screen-sleep
vim /etc/lightdm/lightdm.conf
# don't sleep the screen
xserver-command=X -s 0 dpms
Jeśli temat maila ma ponad 75 znaków, wysypuje się kodowanie.
http://stackoverflow.com/questions/8350865/malformed-email-subject-header-when-subject-75-chars-using-codeigniter-email-l
$config['newline'] = "\r\n";
$config['crlf'] = "\r\n";