Skip to content

Instantly share code, notes, and snippets.

View nightsh's full-sized avatar
😱
Nope.

Victor Nițu nightsh

😱
Nope.
View GitHub Profile
@nightsh
nightsh / tmux.md
Created January 13, 2016 18:28 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

require 'mechanize'
base = 'https://graph.facebook.com/v2.3/'
route = 'me/feed?since=06.04.2015'
access_token = {'access_token' => ENV['ACCESS_TOKEN']}
variations = %w(happy bday birthday mulți multi ani trăiești traiesti)
agent = Mechanize.new
response = JSON.parse(agent.get(base + route, access_token).body)
#!/bin/bash
# This script creates a new project (or site) under /var/sites and creates
# new virtual host for that site. With the options a site can also
# install the latest version of Laravel directly.
# This script was originally based on the following script by @Nek from
# Coderwall: https://coderwall.com/p/cqoplg
# Display the usage information of the command.
create-project-usage() {