Skip to content

Instantly share code, notes, and snippets.

@sammyd
sammyd / gist:2578982
Created May 2, 2012 18:28
Install / Update rtmpdump from source
you need to update your rtmp.
I stole this code from LAGMonkey
I highly recomend that you login via SSH.
first remove any previous packages
Code:
sudo apt-get purge rtmpdump
@sammyd
sammyd / operation
Created May 2, 2012 11:38
Push existing git repo to SVN
You can now sync from svn -> git, using the following commands:
git svn fetch
git rebase trunk
And to sync from git -> svn, use:
git svn dcommit
@sammyd
sammyd / enter-password.js
Created April 11, 2012 11:50 — forked from isaacs/enter-password.js
Password collection from the console for node.js
var get_pass = function(callback) {
console.info("Enter password:")
var stdin = process.openStdin()
stdin.setEncoding('utf8')
var tty = require('tty')
tty.setRawMode(true)
var password = ""
stdin.on("data", function (c) {
@sammyd
sammyd / git_svn_bash_prompt.sh
Created August 14, 2011 07:46 — forked from edgar/git_svn_bash_prompt.sh
Set color bash prompt according to ruby version and git/svn branch, and return status of last command
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the ruby version
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#