start new:
tmux
start new with session name:
tmux new -s myname
| sub, sup { | |
| /* Specified in % so that the sup/sup is the | |
| right size relative to the surrounding text */ | |
| font-size: 75%; | |
| /* Zero out the line-height so that it doesn't | |
| interfere with the positioning that follows */ | |
| line-height: 0; | |
| /* Where the magic happens: makes all browsers position | 
| package net.toutantic.jgit; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.util.Collection; | |
| import java.util.Iterator; | 
| // convert 0..255 R,G,B values to binary string | |
| RGBToBin = function(r,g,b){ | |
| var bin = r << 16 | g << 8 | b; | |
| return (function(h){ | |
| return new Array(25-h.length).join("0")+h | |
| })(bin.toString(2)) | |
| } | |
| // convert 0..255 R,G,B values to a hexidecimal color string | |
| RGBToHex = function(r,g,b){ | 
| { | |
| "Version":"2008-10-17", | |
| "Id":"http referer policy example", | |
| "Statement":[ | |
| { | |
| "Sid":"Allow get requests referred by www.mysite.com and mysite.com", | |
| "Effect":"Allow", | |
| "Principal":"*", | |
| "Action":"s3:GetObject", | |
| "Resource":"arn:aws:s3:::YOUR_S3_BUCKET_NAME/*", | 
| component { | |
| env = createObject("java", "java.lang.System").getenv(); | |
| this.name = "heroku-demo-app"; | |
| this.sessionManagement = true; | |
| this.datasources.default = { | |
| class: env.get("DB_DRIVER") | |
| ,connectionString: env.get("DB_URL") | 
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import sublime | |
| import sublime_plugin | |
| ''' | |
| __ __ __ __ | |
| | \/ |_ _| \/ | | |
| | |\/| | '_| |\/| |_ | |
| |_| |_|_| |_| |_(_) | |
| Project: Examples of using custom dialog and messages in Sublime 2 | 
| #### this is the main config file for nginx, to specify it from the command line, use the -c switch, e.g | |
| #### nginx.exe -c nginx-railo.conf | |
| ##** if connecting to Tomcat, use Tomcat's RemoteIpValve to resolve CGI.REMOTE_ADDR, CGI.SERVER_NAME, and CGI.SERVER_PORT_SECURE | |
| ##** <Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto" remoteIpHeader="X-Forwarded-For" protocolHeaderHttpsValue="https" /> | |
| #user nobody; | |
| #pid logs/nginx.pid; | 
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\