Check These Out
Explanation
Firstly the function checks if user gave it any input, and notifies the user if they failed to do so.
If user has inputed a search string, the function will call upon youtube-dl to find url of the audio of the first matching youtube video and play that with mpv.
Call function by wrapping search string in quotes:
listen-to-yt "sultans of swing"
You have to paste the line in your .zshrc and source .zshrc for it to work.
Limitations
The dependancies are youtube-dl and mpv.
this oneliner is stolen from http://www.bashoneliners.com/oneliners/302/
Not sure if it works the same on any shell.
Exports the result of query in a csv file
Add the followin to ~/.bashrc
#colour
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;37m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
Replace 'csv_file.csv' with your filename.
To get the connection information of protocol tcp and extended infortmation.
Schedule your Mac to sleep at any future time.
Also wake, poweron, shutdown, wakeorpoweron. Or repeating with
$ sudo pmset repeat wakeorpoweron MTWRFSU 7:00:00
Query with
$ pmset -g sched
Lots more at http://www.macenterprise.org/articles/powermanagementandschedulingviathecommandline
Installing most OSX apps is just a matter of dropping it in /Applications, either GUI-wise or with cp -r. However, many packages are distributed in "mpkg" format, and those have to be installed with an installer. If you don't want to go to the trouble of firing up VNC to install an mpkg, you can use the "installer" command.
This will install an application from a .mpkg it to /Applications system-wide. To install a program for just one user, replace "-target /" with "-target username".
Create transparent image to use as icon, watermark for other images, etc.