Skip to content

Instantly share code, notes, and snippets.

View kilatib's full-sized avatar

Vitalii Shtykhno kilatib

View GitHub Profile
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)
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
ffmpeg -i input.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output.webm
blessc -f main-compiled.css
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
@kilatib
kilatib / MacOS.invisible.files.txt
Created January 3, 2014 14:41
Make folders and files onto MacOS invisible/visble
# make visible
setfile -a v testfile.txt
# make invisible
setfile -a V testfile.txt
#!/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
Дни рождения:
Макс - 2 февраля - Водолей
Тема - 23 февраля - Рыбыё
Саша - 21 ноября - Скорпион
Дядя - 18 Июля - рак
Аня - 26 Июля - Лев
Свадьба - 27 Июля - не понятно
netstat -tulnap // show list of posrts
fuser -k port_nuber/tcp // kill selected port
gnome-terminal -e "echo `password` | sudo -S cmand_line"