You are on page 1of 2

Copy ISO Wii game to WFBS USB

wit copy ~/Downloads/WII.iso -D /Volumes/WII/wbfs/%Y/%+ --wbfs -z

ZIP Compression without Mac resource files:


zip -r Archive.zip Folders -x "*.DS_Store"

TAR.BZ2 Compression:
tar -jcvf Archive.tar.bz2 files

Extract Subtitles from MKV:


mkvextract tracks <video> <track number>:<export file.srt>

Remove file/directory from zip:


zip -d file.zip "folders"

Fix Corrupted USB:


diskutil eraseDisk JHFS+ Untitled /dev/disk2

Convert multiple images to PDF:


convert *.jpg output.pdf

Download YouTube Playlist:


youtube-dl -citw <THE PLAYLIST URL HERE>

Force Restart Apache:


sudo apachectl -k restart

Decompile JAR File:


jar -xvf file.jar

Complile JAR File:


jar cf file.jar folders

Convert BIN/CUE to ISO:


bchunk input.bin input.cue output.iso

Download MP3 from YouTube:


youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 <YOUTUBE LINK>

Download website for offline viewing:


wget -mk <URL>

Check Python file against PEP-8 Guidelines:


pep8 --first file.py

Convert CDR to ISO:


hdiutil makehybrid -iso -joliet -o diskimage.iso diskimage.cdr

Copy files over SSH:


scp /path/to/file username@ip:/path/to/destination

Find fonts used in PDF:


pdffonts file.pdf

Git proxy:
git config --global http.proxy
http://mydomain\\myusername:mypassword@myproxyserver:8080
git config --global https.proxy
http://mydomain\\myusername:mypassword@myproxyserver:8080
git config --global --unset http.proxy && git config --global --unset https.proxy

Play mp3 files from terminal:


mpg123 audio.mp3

Test if website is serving gzipped content:


curl <URL> --silent --write-out "%{size_download}\n" --output /dev/null
curl <URL> --silent -H "Accept-Encoding: gzip,deflate" --write-out "%
{size_download}\n" --output /dev/null

Run Javascript console:


/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc

Get header response of files on a website:


curl -svo /dev/null <URL>

Create GIF from JPEG image sequence:


convert -delay 20 -loop 0 *.jpg myimage.gif

Mount BOOTCAMP Windows Drive:


sudo /usr/local/bin/ntfs-3g /dev/disk0s4 /Volumes/NTFS -olocal -oallow_other

-------------------- MAGENTA --------------------


BUNDLE_PATH=<absolute path of .mag file>
CONFIG=<one of 'basic_rnn', 'lookback_rnn', or 'attention_rnn', matching the
bundle>

melody_rnn_generate \
--config=${CONFIG} \
--bundle_file=${BUNDLE_PATH} \
--output_dir=~/Desktop/Magenta/melody_rnn/generated \
--num_outputs=10 \
--num_steps=128 \
--primer_melody="[60]"

You might also like