start new:
tmux
start new with session name:
tmux new -s myname
// These two need to be declared outside the try/catch | |
// so that they can be closed in the finally block. | |
HttpURLConnection urlConnection = null; | |
BufferedReader reader = null; | |
// Will contain the raw JSON response as a string. | |
String forecastJsonStr = null; | |
try { | |
// Construct the URL for the OpenWeatherMap query |
# Updated by Siege 2.72, July-07-2012 | |
# Copyright 2000-2007 by Jeffrey Fulmer, et al. | |
# | |
# Siege configuration file -- edit as necessary | |
# For more information about configuring and running | |
# this program, visit: http://www.joedog.org/ | |
# | |
# Variable declarations. You can set variables here | |
# for use in the directives below. Example: |
# zsh | |
EMOJI=(๐ฉ ๐ฆ ๐ ๐ ๐จ ๐ ๐ญ ๐ฝ โ๏ธ ๐ฌ ๐ ๐ท ๐ผ ๐ถ ๐ธ ๐ง ๐ณ ๐ ๐ฃ ๐ป ๐ฎ ๐ฐ ๐ ๐พ ๐ ๐ช ๐ ๐ ๐ ๐ ๐ ) | |
function random_emoji { | |
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]" | |
} | |
PROMPT="$(random_emoji) " | |
RPROMPT='%c' |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/env python | |
import os | |
import shlex | |
import struct | |
import platform | |
import subprocess | |
def get_terminal_size(): | |
""" getTerminalSize() |
#!/bin/bash | |
NAME="hello_app" # Name of the application | |
DJANGODIR=/webapps/hello_django/hello # Django project directory | |
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
USER=michal # the user to run as | |
GROUP=michal # the group to run as | |
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+โง+K | delete line |
Ctrl+โฉ | insert line after |