- Press V to toggle the subs on and off
- Press J to cycle languages
- Press # to cycle the audio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==Get Utilities== | |
sudo apt-get install mplayer mencoder mpeg4ip-utils mpeg4ip-server subtitleripper ogmtools mkvtoolnix | |
==Prepare== | |
===Detect Cropping=== | |
mplayer dvd://1 -frames 4 -vf cropdetect -sb 50000000 -nosound -vo null 2>/dev/null | grep CROP | |
[CROP] Crop area: X: 8..719 Y: 0..479 (-vf crop=704:480:12:0). | |
[CROP] Crop area: X: 7..719 Y: 0..479 (-vf crop=704:480:12:0). | |
*Skip first ~50mb, this is the title screen and is often a different size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build multithreaded mplayer so HD x264 videos won't crap out | |
==Dependancies== | |
$ sudo apt-get install build-essential checkinstall | |
===x264=== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision "shell" do |s| | |
s.inline = "VAR1 is $1 and VAR2 is $2" | |
s.args = "#{ENV['VAR1']}, #{ENV['VAR2']}" | |
end |
We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the AngularJS change log.
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
ssh_import_id: [steve-stevebaker] | |
apt_sources: | |
- source: "ppa:steve-stevebaker/heat-cfntools" | |
runcmd: | |
- [ apt-get, heat-cfntools ] |
install daemon, webui, etc
$ sudo aptitude install deluge deluged deluge-web
run it
$ sudo service deluged start
$ screen -fa -d -m -S deluge-web deluge-web
to remove a container that docker doesn't know isn't running:
- take note of the container ID
- service stop docker
- modify the config.json file in /var/lib/docker/containers/$CONTAINER_ID to have "Running":false
- service start docker
- docker rm $CONTAINER_ID
Unfortunately, this makes all the other containers turn into ghosts, so you can only do it when there's only a single container. Plus it's really hacky.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The svendowideit/ambassador Dockerfile | |
The svendowideit/ambassador image is a small busybox image with socat built in. When you start the container, it uses a small sed script to parse out the (possibly multiple) link environment variables to set up the port forwarding. On the remote host, you need to set the variable using the -e command line option. | |
-expose 1234 -e REDIS_PORT_1234_TCP=tcp://192.168.1.52:6379 will forward the local 1234 port to the remote IP and port - in this case 192.168.1.52:6379. | |
# | |
# | |
# first you need to build the docker-ut image using ./contrib/mkimage-unittest.sh | |
# then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install python-software-properties # 12.04 | |
sudo add-apt-repository ppa:duh/golang | |
sudo apt-get update | |
sudo apt-get install golang | |
$ mkdir $HOME/go | |
bashrc |