As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
<?php | |
/* | |
* Script: DataTables server-side script for PHP and MySQL | |
* Copyright: 2012 - John Becker, Beckersoft, Inc. | |
* Copyright: 2010 - Allan Jardine | |
* License: GPL v2 or BSD (3-point) | |
*/ | |
class TableData { |
// phantomjs code to log in to Amazon | |
// based on the code from this Stackoverflow answer: http://stackoverflow.com/questions/9246438/how-to-submit-a-form-using-phantomjs | |
// I'm injecting jQuery so this assumes you have jquery in your project directory | |
var page = new WebPage(), testindex = 0, loadInProgress = false; | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); | |
}; |
rsync (Everyone seems to like -z, but it is much slower for me)
<!DOCTYPE html> | |
<!-- By Jan Wrobel. See it working at: | |
http://mixedbit.org/blog/2013/02/10/random_walk_illustrated_with_d3.html | |
--> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Random walk</title> |
import requests | |
class HoverException(Exception): | |
pass | |
class HoverAPI(object): | |
def __init__(self, username, password): | |
params = {"username": username, "password": password} | |
r = requests.post("https://www.hover.com/api/login", params=params) |
## ELinks 0.11.7 configuration file | |
## This is ELinks configuration file. You can edit it manually, | |
## if you wish so; this file is edited by ELinks when you save | |
## options through UI, however only option values will be altered | |
## and missing options will be added at the end of file; if option | |
## is not written in this file, but in some file included from it, | |
## it is NOT counted as missing. Note that all your formatting, | |
## own comments and so on will be kept as-is. | |
## |
###Deploy SSH key to ansible inventory### | |
for server in $(ansible --list-hosts all); do ssh-copy-id -i ~/.ssh/id_rsa.pub $server; done |
r := mux.NewRouter() | |
// Single handler | |
r.HandleFunc("/form", use(http.HandlerFunc(formHandler), csrf, logging) | |
// All handlers | |
http.Handle("/", recovery(r)) | |
// Sub-routers | |
apiMiddleware := []func(http.Handler) http.Handler{logging, apiAuth, json} |