Skip to content

Instantly share code, notes, and snippets.

View joshdevins's full-sized avatar

Josh Devins joshdevins

View GitHub Profile
[alias]
co = "checkout"
ci = "commit"
unmerge = "reset --hard ORIG_HEAD"
track = "branch --track"
unstage = reset HEAD
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
@mrflip
mrflip / maximum_battery_life.md
Created March 19, 2012 08:32
maximum battery life checklist -- use before a long plane flight

Max Battery Life Checklist

Here is a checklist to follow if you want maximum battery life -- for instance if you're about to get on a long plane flight.

10 hour battery life on a non-SSD Macbook Pro 17"

Low power use checklist

With power connected:

@tsxn26
tsxn26 / native_script_example.txt
Created June 23, 2011 22:12
Using Native Scripts in Elastic Search
1) Extend AbstractFloatSearchScript:
package com.example.elastic;
import org.elasticsearch.script.AbstractFloatSearchScript;
import static java.lang.Math.*;
public class MySearchScript extends AbstractFloatSearchScript {
@Override