git checkout mastergit pull remoteRepoName master| apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev \ | |
| libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \ | |
| libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev | |
| cd ~/ffmpeg_sources | |
| wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz | |
| tar xzvf yasm-1.3.0.tar.gz | |
| cd yasm-1.3.0 | |
| ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" |
| #!/bin/sh | |
| SESSION_NAME=Music | |
| STREAMRIPPER="streamripper 'http://www.pulsradio.com/pls/puls-adsl.m3u' -d ~/Downloads/streamripper -s -r 9090 -o larger -M 500" | |
| PLAY="clear && sleep 5s && mpg321 http://localhost:9090" | |
| tmux has-session -t $SESSION_NAME 2>/dev/null | |
| if [ $? -eq 1 ] | |
| # Music session does not exist so create a new one | |
| then |
| read -n 1 -p "Continue: [y/n]?" _continue; if [ "$_continue" = "y" ]; then printf "\nYou choose Y\n"; fi |
| mkfifo /tmp/cmd | |
| omxplayer -ohdmi mymedia.avi < /tmp/cmd | |
| echo . > /tmp/cmd (Start omxplayer running as the command will initial wait for input via the fifo) | |
| echo -n p > /tmp/cmd - Playback is paused | |
| echo -n q > /tmp/cmd - Playback quits |
| brew unlink homebrew/versions/node4-lts | |
| brew link node | |
| brew tap homebrew/versions | |
| brew search node |
| http://blog.wia.io/installing-node-js-v4-0-0-on-a-raspberry-pi/ | |
| wget https://nodejs.org/dist/latest-v5.x/node-v5.5.0-linux-armv6l.tar.gz | |
| tar -xvf node-v5.5.0-linux-armv6l.tar.gz | |
| cd node-v5.5.0-linux-armv6l | |
| sudo cp -R * /usr/local/ |
| sudo apt-get install dosfstools | |
| # How to Format USB Drive in the Terminal | |
| http://www.unixmen.com/how-to-format-usb-drive-in-the-terminal/ | |
| df | |
| lsblk | |
| sudo mkfs.vfat -n 'Cartoons' -I /dev/sda1 | |
| # Erase completelly the disk |
| $cameo_secrect_code = $this->filter('code')->setType('string')->setDefault('')->getArg(Request::GET); | |
| if ($cameo_secrect_code != 'WHATEVER') { | |
| throw new VideoNotFoundException('Cameo secret code missing or not correct.'); | |
| return; | |
| } |
| <? | |
| ... | |
| if(){ | |
| //code | |
| } else { | |
| //code | |
| } | |
| ... |