Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| See my DASH-IF presentation from October, 2014: | |
| https://s3.amazonaws.com/misc.meltymedia/dash-if-reveal/index.html#/ | |
| 1. encode multiple bitrates with keyframe alignment: | |
| ffmpeg -i ~/Movies/5D2_Portrait.MOV -s 1280x720 -c:v libx264 -b:v 1450k -bf 2 \ | |
| -g 90 -sc_threshold 0 -c:a aac -strict experimental -b:a 96k -ar 32000 out.mp4 | |
| My input was 30 fps = 3000 ms. If it were 29.97, then a GOP size of 90 frames will yield a base segment | |
| size of 3003 milliseconds. You can make the segment size some multiple of this, e.g.: 6006, 9009, 12012. |
| # Add the Oracle JDK Repos | |
| UBUNTU_VERSION=precise | |
| echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu ${UBUNTU_VERSION} main" | tee /etc/apt/sources.list.d/webupd8team-java.list | |
| echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu ${UBUNTU_VERSION} main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
| DEBIAN_FRONTEND="noninteractive" apt-get update | |
| # Accept the Oracle License | |
| echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" > /tmp/oracle-license-debconf | |
| /usr/bin/debconf-set-selections /tmp/oracle-license-debconf |
| %% Imported from https://upload.wikimedia.org/wikipedia/commons/3/32/Blank_US_Map.svg | |
| %% Translated to TikZ using Inkscape 0.48 | |
| \tikzset{USA map/.cd, | |
| state/.style={fill, draw=white, ultra thick}, | |
| HI/.style={}, AK/.style={}, FL/.style={}, NH/.style={}, MI/.style={}, MI/.style={}, VT/.style={}, ME/.style={}, RI/.style={}, NY/.style={}, PA/.style={}, NJ/.style={}, DE/.style={}, MD/.style={}, VA/.style={}, WV/.style={}, OH/.style={}, IN/.style={}, IL/.style={}, CT/.style={}, WI/.style={}, NC/.style={}, DC/.style={}, MA/.style={}, TN/.style={}, AR/.style={}, MO/.style={}, GA/.style={}, SC/.style={}, KY/.style={}, AL/.style={}, LA/.style={}, MS/.style={}, IA/.style={}, MN/.style={}, OK/.style={}, TX/.style={}, NM/.style={}, KS/.style={}, NE/.style={}, SD/.style={}, ND/.style={}, WY/.style={}, MT/.style={}, CO/.style={}, ID/.style={}, UT/.style={}, AZ/.style={}, NV/.style={}, OR/.style={}, WA/.style={}, CA/.style={}} | |
| \tikzset{ | |
| every state/.style={USA map/state/.style={#1}}, | |
| HI/.style={USA map/HI/.style={#1}}, AK/. |
| http://code.tutsplus.com/tutorials/easily-deploy-redis-backed-web-apps-with-docker--cms-20405 | |
| vagrant box add ubuntu12 http://files.vagrantup.com/precise64.box | |
| vagrant box init ubuntu12 | |
| vagrant box up | |
| vagrant ssh | |
| sudo apt-get update | |
| sudo apt-get install -y curl | |
| curl -s https://get.docker.io/ubuntu/ | sudo sh |
| var jump=function(e){ | |
| //prevent the "normal" behaviour which would be a "hard" jump | |
| e.preventDefault(); | |
| //Get the target | |
| var target = $(this).attr("href"); | |
| //perform animated scrolling | |
| if(target =='#home' || target=='#about'|| target=='#portfolio' || target=='#contact'){ | |
| $('html,body').animate( | |
| { | |
| //get top-position of target-element and set it as scroll target |
| #ifndef __dbg_h__ | |
| #define __dbg_h__ | |
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #ifdef NDEBUG | |
| #define debug(M, ...) | |
| #else |
| #!/bin/sh | |
| NAME="" | |
| PACKAGE_PATH="" | |
| SCALA_VERSION="2.11.0" | |
| SCALATEST_VERSION="2.1.3" | |
| DIR=`pwd` | |
| usage() { | |
| cat << __EOT__ |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| sudo cp ./nginx.repo /etc/yum.repod.d/ | |
| sudo yum install nginx | |
| sudo chkconfig nginx off | |
| # add 'daemon off' to /etc/nginx/nginx.conf | |
| sudo cp ./nginx.ini /etc/supervisord.d/ | |
| sudo supervisorctl add nginx |
| #!/bin/sh | |
| version="2.6.3" | |
| priority="20603" | |
| sudo mkdir -p /var/redis /var/log/redis | |
| curl -sL http://redis.googlecode.com/files/redis-${version}.tar.gz | tar zx | |
| cd redis-${version}/ | |
| make | |
| sudo make PREFIX=/usr/local/redis/${version} install |