Skip to content

Instantly share code, notes, and snippets.

@pomeo
pomeo / gist:74b27961092867fd1294
Created March 11, 2016 13:46 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
# Initialize Mechanize Agent
agent = Mechanize.new
# Visit a web page
agent.get 'http://localhost:3000/'
# get the url of the current page
agent.page.uri #=> http://localhost:3000
# agent remembers the scheme + host, so no need to supply it when navigating somewhere else
@pomeo
pomeo / README.md
Created August 14, 2014 13:58 — forked from schickling/README.md

Preconditions

  • You need to have TUN/TAP enabled

Install dependencies

$ apt-get install openvpn easy-rsa
# To check if this is up-to-date with the tax rates go to
# http://www.expatax.nl/tax-rates-2014.php and see if there's anything
# newer there.
use strict;
use warnings;
use Text::TabularDisplay;
use List::Util qw(sum);
my $start = 30_000 || $ARGV[0];
my $end = 100_000 || $ARGV[1];
/**
* @overview
*
* @author Caesar Chi
* @blog clonn.blogspot.com
* @version 2012/02/27
@pomeo
pomeo / gist:4354215
Created December 21, 2012 17:21
vlc 3d -> 2d
cvlc --video-splitter=wall --wall-cols=1 --wall-rows=2 --wall-element-aspect=16:10 --wall-active=1 --monitor-par=2:1 ./video.mkv
@pomeo
pomeo / screencast.sh
Created September 4, 2011 14:54
script to make screencasts on Linux
#!/bin/bash
# list of programs we depend on
progs="xdpyinfo grep head sed ffmpeg pacat parec sox"
# check for programs we depend on
result=0
for prog in $progs
do
type -p $prog > /dev/null