start new:
tmux
start new with session name:
tmux new -s myname
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file. | |
# | |
# REVISION : 7.3 (16/04/2010) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: https://www.reverse-engineering.net |
require "etc" | |
require "thread" | |
Enumerator.class_eval do | |
# Process an enumerator using a simple thread pool | |
# | |
# `of:` is pool size, defaults to detecting number of CPUs | |
# | |
# Caveat: Enumerator#map may yield results out of order. Work is processed in | |
# order, but apparently #map concatenates the results however it likes. This |
# Ubuntu Upstart service file | |
description "munin-graphite" | |
start on (filesystem and net-device-up) | |
stop on runlevel [!2345] | |
env DAEMON=/usr/local/bin/munin-graphite | |
expect fork | |
respawn |
# file: merger.py | |
# based off: http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/ | |
# by: mastahyeti | |
import xml.etree.ElementTree as etree | |
import shutil | |
import os | |
first = 1 | |
for fileName in os.listdir("."): |
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
#------------------------------------------------------------------------------- | |
# NOTES: | |
#------------------------------------------------------------------------------- | |
# * User @jimklimov (and probably some others called out in the long comment | |
# thread below) have modified this script to make it more robust and keep | |
# up with various changes in the GitHub API and response format at: | |
# https://github.com/jimklimov/github-scripts |
ActiveRecord cheat sheet / EXAMPLES | |
INSTALL | |
======= | |
$ gem install activerecord | |
in GEMFILE: gem ‘activerecord’ | |
REQUIRE | |
======= | |
require ‘active_record’ |
#!/bin/sh | |
## | |
# This is a script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run in interactive mode with: | |
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
# | |
# or run it without prompt questions: |
# install xcode via App Store first! It takes awhile | |
# install the command-line tools as well | |
# install growl from App Store | |
# Used for git config and ssh keygen | |
NAME="First Last" | |
EMAIL="[email protected]" | |
# The main directory where you will keep your code | |
CODE_DIR=~/code |
gem "omniauth-twitter" |