-
Install docker-manger.conf and docker-instance.conf in /etc/init
-
Create a containers file in /etc/docker/ with the following format
name: image cmd
The name must be unique.
-
sudo service docker-manager start
This file contains 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
" Vim plugin to highlight variables in Perl. | |
" I now created a repository from this: https://github.com/mannih/vim-perl-variable-highlighter | |
function! s:hlvar() | |
if ( exists( "w:current_match" ) ) | |
call matchdelete( w:current_match ) | |
unlet w:current_match | |
endif | |
let l:old_iskeyword = &iskeyword |
This file contains 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
:map <F9> :w<cr>:! PERL5LIB="" /usr/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR> | |
:imap <F9> <ESC>:w<cr>:! PERL5LIB="" /usr/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR> | |
:map <F10> :w<cr>:! PERL5LIB="" /opt/plack/perl/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR> | |
:imap <F10> <ESC>:w<cr>:! PERL5LIB="" /opt/plack/perl/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR> | |
function! RunFennecLine() | |
let cur_line = line(".") | |
exe "!FENNEC_TEST='" . cur_line . "' prove -v -Ilib -I. -I/home/cgranum/ndn/perl %" | |
endfunction |
This file contains 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 | |
apt_update: false | |
apt_upgrade: true | |
packages: | |
- pwgen | |
- pastebinit | |
- byobu | |
- build-essential | |
- bison |
This file contains 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
#!/bin/bash | |
# starman - this script starts and stops the starman daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Starman | |
# processname: starman | |
# pidfile : /var/run/starman.pid | |
# www file: /var/www/myapp |
This file contains 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
$ brightbox-servers create --user-data="#include https://gist.githubusercontent.com/johnl/3129203/raw/d4b591546f1987803771bbc8c303c62cbca93538/puppet-git-receiver-install" img-9h5cv | |
Creating a nano (typ-4nssg) server with image Ubuntu Precise 12.04 LTS server (img-9h5cv) with 0.10k of user data | |
id status type zone created_on image_id cloud_ip_ids name | |
----------------------------------------------------------------------------- | |
srv-3te8u creating nano gb1-a 2012-07-17 img-9h5cv | |
----------------------------------------------------------------------------- | |
$ git init |
This file contains 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
sub add_vota : Chained('start') | |
POST PathPart('vota') Args(0) | |
{ | |
my ($self, $ctx) = @_; | |
my $params = $self->parse_json_body($ctx->req->body); | |
my $result = (my $form = Vota::Web::NewVotumForm->new) | |
->run($params); | |
if($result->validated) { |
This file contains 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
#!/usr/bin/env ruby | |
require "optparse" | |
require "json" | |
require "findi" | |
def report device, mode=:text | |
name = device.name |
This file contains 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
" Drop this into .vim/plugin.vawa.vim | |
" if you already have vawa.vim, rename appropriately | |
" automatically highlights variables under cursor, allowing you to easily see the data flow. | |
" Vawa Plugin for VIM > 7.3 version 1.00 | |
" Maintainer: Sandeep.c.r<sandeepcr2@gmail.com> | |
" Hacked for Perl by Curtis "Ovid" Poe <ovid@allaroundtheworld.fr> | |
function! s:vawa() | |
call clearmatches() |
This file contains 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
diff a/configure.ac b/configure.ac | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -478,8 +478,18 @@ if test "$fips" = "auto"; then | |
]) | |
fi | |
+# Check for systemd support for socket activation. | |
+AC_CHECK_LIB(systemd-daemon, sd_notify, SYSTEMD_LIBS="-lsystemd-daemon") | |
+AC_CHECK_HEADERS(systemd/sd-daemon.h) |
OlderNewer