This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download the ISO you want to use | |
| Open Terminal (in /Applications/Utilities) 2.1 Navigate to the path where the .iso file is located 2.2 Use ls to list all the folders 2.3 cd [folder name] to dive in to folder or cd.. to go back the path | |
| Convert .iso to .img using hdiutil: | |
| hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso | |
| Rename if OS X gave it a .dmg ending: | |
| mv /path/to/target.img.dmg path/to/target.img | |
| Type diskutil list to get a list of currently connected devices | |
| Insert USB drive you want to use | |
| Run diskutil list again to see what your USB stick gets assigned eg - /dev/disk3 | |
| Run diskutil unmountDisk /dev/diskN (where N is the number assigned to your USB stick, in previous example it would be 3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mkdir /var/run/mysqld | |
| sudo mkfifo /var/run/mysqld/mysqld.sock | |
| sudo chown -R mysql /var/run/mysqld | |
| sudo mysql stop | |
| sudo mysql start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i input.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output.webm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blessc -f main-compiled.css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sass --scss -I library/cure4you/library/public/scss --compass --no-cache --debug-info --watch main/public/styles/scss/main-compiled.scss:main/public/styles/main-compiled.css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # make visible | |
| setfile -a v testfile.txt | |
| # make invisible | |
| setfile -a V testfile.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| START_ID="138097905" | |
| STOP_ID="138098462" | |
| while [ $START_ID -lt $STOP_ID ] | |
| do | |
| START_ID=`expr $START_ID + 1` | |
| URL="http://50.7.184.122/video/XzkyqYbGIaNVr5IHl-RU6g/15/media_$START_ID.ts" | |
| wget $URL | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Дни рождения: | |
| Макс - 2 февраля - Водолей | |
| Тема - 23 февраля - Рыбыё | |
| Саша - 21 ноября - Скорпион | |
| Дядя - 18 Июля - рак | |
| Аня - 26 Июля - Лев | |
| Свадьба - 27 Июля - не понятно |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| netstat -tulnap // show list of posrts | |
| fuser -k port_nuber/tcp // kill selected port |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gnome-terminal -e "echo `password` | sudo -S cmand_line" |