Skip to content

Instantly share code, notes, and snippets.

View mongrelion's full-sized avatar

Carlos León mongrelion

View GitHub Profile
@dcu
dcu / tunnel
Created July 28, 2012 23:30
ssh reverse tunneling for rails/padrino
#!/usr/bin/env ruby
require 'net/ssh'
require 'yaml'
=begin
To make this work just add "GatewayPorts yes" to /etc/sshd_config in your server
Also, make sure that config['remote_port'] is open in your server.
the config file (config/tunnel.yml) looks like this:
@piksel
piksel / raspi-motd.sh
Created June 30, 2012 12:15
Script for setting a nice raspberry pi logo as MOTD on debian.
#!/bin/bash
logo="$(tput setaf 2)
.~~. .~~.
'. \ ' ' / .'$(tput setaf 1)
.~ .~~~..~. $(tput sgr0) _ _ $(tput setaf 1)
: .~.'~'.~. : $(tput sgr0) ___ ___ ___ ___| |_ ___ ___ ___ _ _ ___|_|$(tput setaf 1)
~ ( ) ( ) ~ $(tput sgr0) | _| .'|_ -| . | . | -_| _| _| | | | . | |$(tput setaf 1)
( : '~'.~.'~' : ) $(tput sgr0) |_| |__,|___| _|___|___|_| |_| |_ | | _|_|$(tput setaf 1)
~ .~ ( ) ~. ~ $(tput sgr0) |_| |___| |_| $(tput setaf 1)
@jbenet
jbenet / simple-git-branching-model.md
Last active April 9, 2024 03:31
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.