(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| <?php | |
| define('PROXY', 'proxy'); | |
| define('PORT', 8080); | |
| if (!function_exists('getallheaders')) | |
| { | |
| function getallheaders() | |
| { | |
| $headers = []; |
| #!/usr/bin/python | |
| import flac.encoder as encoder | |
| import pyaudio | |
| import sys | |
| import requests | |
| import random | |
| from threading import Thread | |
| from Queue import Queue, Empty |
| var loadQueue = function() { | |
| var q = queue(), | |
| defer = q.defer, | |
| dispatch = d3.dispatch("progress", "complete"), | |
| requests = []; | |
| q.defer = function(load, url) { | |
| return defer(function(callback) { | |
| var req = load(url, function(error, data) { | |
| req.loaded = req.total; |
Add the following chunk to your existing ISC dhcpd.conf file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
| # Configure colors, if available. | |
| if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
| c_reset='\[\e[0m\]' | |
| c_user='\[\e[0;32m\]' | |
| c_path='\[\e[1;34m\]' | |
| c_git_clean='\[\e[0;37m\]' | |
| c_git_staged='\[\e[0;32m\]' | |
| c_git_unstaged='\[\e[0;31m\]' | |
| else | |
| c_reset= |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'redis' | |
| # To use, simply start your Redis server and boot this | |
| # example app with: | |
| # ruby example_note_keeping_app.rb | |
| # | |
| # Point your browser to http://localhost:4567 and enjoy! | |
| # |