file directory layout:
|- index.html
|- manifest.appcache
|- static/
| |- 00786df954089f14eaca25061f454957.svg
| `- bb796e8931c52593d86ec07a0246e1e6.css
|_ polyfiller/
`- shims/
filetype plugin indent on | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
syntax on | |
set backspace=indent,eol,start |
file directory layout:
|- index.html
|- manifest.appcache
|- static/
| |- 00786df954089f14eaca25061f454957.svg
| `- bb796e8931c52593d86ec07a0246e1e6.css
|_ polyfiller/
`- shims/
find /path -name "*.mkv" -exec bash -c 'mkvextract tracks "{}" 3:"$(dirname "{}")/$(basename "{}" .mkv).srt"' \; |
var exec = require('child_process').exec; | |
function execute(command, callback){ | |
exec(command, function(error, stdout, stderr){ callback(stdout); }); | |
}; | |
module.exports.getUser = function(callback){ | |
execute("whoami", function(name){ | |
callback({ name: name.replace("\n", "") }); | |
}); | |
}; |
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
yum groupinstall Desktop -y
yum install finger cmake patch gcc make autoconf libtool automake pkgconfig openssl-devel gettext file pam-devel libX11-devel libXfixes-devel libjpeg-devel
yum install flex bison gcc-c++ libxslt perl-libxml-perl xorg-x11-font-utils tigervnc-server git -y
reboot
git clone git://github.com/FreeRDP/xrdp.git
Usage:
ruby aws.rb launch [--region region --aws-key aws_key --aws-secret aws_secret --security-group security_group --key-pair key_pair --key-path key_path --ami-id ami_id--flavor-id flavor_id ]
ruby aws.rb terminate [--region region --aws-key aws_key --aws-secret aws_secret] --instance-id instance_id
ruby aws.rb attach [--region region --aws-key aws_key --aws-secret aws_secret] --instance-id instance_id --volume-id volume_id
No arguments provided
#!/usr/bin/env bash | |
function usage { | |
echo "usage: configure_repo.sh [local_repo local_branch remote_repo remote_branch]" | |
} | |
local_repo=$1 | |
local_branch=$2 | |
remote_repo=$3 | |
remote_branch=$4 |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'sinatra' | |
require 'etherpad-lite' | |
ETHERPAD_URL = "http://ether.example.com" | |
client = EtherpadLite.connect(ETHERPAD_URL, 'api_key', '1.2.1') |