Simple and easy, just:
mkdir apt-cacher-ng && cd apt-cacher-ng
curl -LO https://raw.github.com/gist/1747868/Vagrantfile
vagrant up
Tail the logs perhaps?
git clone https://github.com/fabiofalci/export-docker.git | |
cd export-docker/ | |
sudo curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
sudo python get-pip.py | |
pip install configparser | |
vi export-container.py | |
./export-container.py eaa5715913ef mynginx | |
#!/usr/bin/env bash | |
set -e -x | |
# Shutdown the dataloop agent. | |
sudo service dataloop-agent stop || true | |
# Kill stragglers in the even that the service control didn't work right. | |
agentPids=$(ps -ef | grep 'dataloop-lin-agent' | grep -v 'grep' | sed 's/ \+/ /g' | cut -d' ' -f2) | |
test -n "${agentPids}" && sudo kill -9 ${agentPids} |
# [Tue Jun 21 12:05:39 2011] Protocol: http, Server: 192.168.5.103:9200 | |
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d ' | |
{ | |
"mappings" : { | |
"contact" : { | |
"properties" : { | |
"twitter" : { | |
"type" : "object", | |
"properties" : { | |
"profile" : { |
package PlayParameterReader | |
/** | |
* @author Jay Taylor <outtatime@gmail.com> | |
* | |
* @date 2011-05-23 | |
*/ | |
import scala.collection.JavaConversions._ |
# Make it use C-a, similar to screen.. | |
unbind C-b | |
unbind l | |
set -g prefix C-a | |
bind-key C-a last-window | |
# Reload key | |
bind r source-file ~/.tmux.conf | |
set -g default-terminal "screen-256color" |
" Paste this into your .vimrc to make tab/shift-tab work on blocks of text just like in a fancy GUI IDE | |
map <Tab> >gb | |
map <S-Tab> v<gv<ESC>0I<ESC>l | |
imap <S-Tab> <ESC>v<gv<ESC>0I | |
vnoremap <Tab> >gv | |
vnoremap <S-Tab> <gv |
#!upstart | |
description "gitbucket" | |
env USER=ubuntu | |
env PID=/var/run/gitbucket.pid | |
env STDOUT=/var/log/gitbucket/gitbucket.log | |
env STDERR=/var/log/gitbucket/gitbucket.err | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on [!12345] |
case object transaction { | |
import java.sql.Connection | |
def apply[T](query: => T):Option[T] = { | |
val conn:Connection = play.db.DB.getConnection | |
val auto:Boolean = conn.getAutoCommit | |
try { | |
conn.setAutoCommit(false) | |
Some(query) | |
} catch { |
import java.util.zip.ZipFile | |
import java.io.FileInputStream | |
import java.io.FileOutputStream | |
import scala.collection.JavaConversions._ | |
import java.util.zip.ZipEntry | |
import java.io.InputStream | |
import java.io.OutputStream | |
import java.io.File | |
class ZipArchive { |