Skip to content

Instantly share code, notes, and snippets.

@lfaoro
lfaoro / tmux_cheatsheet.markdown
Created September 29, 2019 13:32 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@lfaoro
lfaoro / mux_routes.go
Created March 11, 2019 11:29 — forked from elico/mux_routes.go
A trial to use gorilla mux router Walk function
package main
import (
"fmt"
"github.com/gorilla/mux"
"net/http"
)
func signupHandler(w http.ResponseWriter, request *http.Request) {
@lfaoro
lfaoro / EmacsKeyBinding.dict
Created December 9, 2018 13:58 — forked from jwreagor/EmacsKeyBinding.dict
Global Emacs Key Bindings for OS X
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
@lfaoro
lfaoro / bump-version.sh
Created May 17, 2018 10:34 — forked from mareksuscak/bump-version.sh
Bump version shell script.
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"
@lfaoro
lfaoro / git-php-webhook.php
Created December 10, 2015 20:00 — forked from marcelosomers/git-php-webhook.php
A basic webhook for deploying updates to repos on Github to your local server
<?php
/**
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below).
*
* Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/
*
* INSTRUCTIONS:
* 1. Edit the variables below
* 2. Upload this script to your server somewhere it can be publicly accessed
@lfaoro
lfaoro / Twitch.py
Created January 24, 2014 14:15 — forked from sms151/Twitch.py
import requests
import subprocess
import json
import sys
import threading
import time
from Queue import Queue
numberOfViewers = int(sys.argv[1])
builderThreads = int(sys.argv[2])