Skip to content

Instantly share code, notes, and snippets.

@dforsyth
dforsyth / java.env
Last active April 29, 2022 09:25 — forked from logic/java.env
ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
ZOO_LOG_DIR="/var/log/zookeeper/"
@dforsyth
dforsyth / gist:3997746
Created November 2, 2012 00:07 — forked from msluyter/gist:1925069
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
hi dforsyth
hellooooooooooooo world
asdfasdfasd
bleep
@dforsyth
dforsyth / gist:2392783
Created April 15, 2012 13:26 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@dforsyth
dforsyth / hack.sh
Created March 31, 2012 17:18 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@dforsyth
dforsyth / gist:1227569
Created September 19, 2011 20:49 — forked from anonymous/gist:1227536
all instances of String "name" and int "secondDenom": local variable name may not have been initialized
import java.util.Scanner;
public class Money {
public static void main (String args[]) {
Scanner sc= new Scanner(System.in);
String name, secondName; //Name is for the first branch, etc.
int nameOrDenom, firstDenom, secondDenom; //firstDenom is for the first branch, etc.
System.out.print("Type 1 to enter a last name, 2 to enter a denomination: ");