start new:
tmux
start new with session name:
tmux new -s myname
| worker_processes 2; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| } |
| #!/bin/sh | |
| # Amazon Linux AMI startup script for a supervisor instance | |
| # | |
| # chkconfig: 2345 80 20 | |
| # description: Autostarts supervisord. | |
| # Source function library. | |
| . /etc/rc.d/init.d/functions | |
| supervisorctl="/usr/bin/supervisorctl" |
| // | |
| // yield(self) pattern implemented using objective-C blocks | |
| // (not as pretty as Ruby...) | |
| // | |
| // compile: | |
| // llvm-gcc-4.2 -o yield-self -framework Foundation yield-self.m | |
| #import <Foundation/Foundation.h> | |
| @class MyClass; |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <Data> | |
| <Series> | |
| <id>83462</id> | |
| <Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors> | |
| <Airs_DayOfWeek>Monday</Airs_DayOfWeek> | |
| <Airs_Time>10:00 PM</Airs_Time> | |
| <ContentRating>TV-PG</ContentRating> | |
| <FirstAired>2009-03-09</FirstAired> | |
| <Genre>|Drama|</Genre> |
| config.json | |
| reading-image.png |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "code.google.com/p/go.crypto/ssh" | |
| "code.google.com/p/go.crypto/ssh/terminal" |
| # Makefile for a go project | |
| # | |
| # Author: Jon Eisen | |
| # site: joneisen.me | |
| # | |
| # Targets: | |
| # all: Builds the code | |
| # build: Builds the code | |
| # fmt: Formats the source files | |
| # clean: cleans the code |
| #! /usr/bin/env sh | |
| firstTag=$(git tag | sort -r | head -1) | |
| secondTag=$(git tag | sort -r | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}') | |
| echo "Changes between ${secondTag} and ${firstTag}\n" | |
| git log --pretty=format:' * %s' ${secondTag}..${firstTag} |
| #!/bin/bash | |
| # For Ubuntu. Probably works elsewhere too. | |
| # This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf | |
| # It also chroots you into the directory, so you can act as a Raspbian user. | |
| # This was all taken from here: http://superpiadventures.com/2012/07/development-environment/ | |
| mkdir -p ~/rpi | |
| cd ~/rpi |