Put flip
somewhere in your $PATH
and chmod a+x
it.
Copy fuck
into ~/.bashrc
.
import pygtk | |
pygtk.require("2.0") | |
import gobject | |
import gtk | |
from gtk import gdk | |
class EntryMultiCompletion(gtk.Entry): | |
def init(self): | |
gtk.Entry.init(self) |
// valac --thread --pkg json-glib-1.0 json.vala | |
using Json; | |
int main(string[] args) { | |
size_t length; | |
string json; | |
string[] std_fields = { | |
"param1", "param2", "param3", | |
"param4", "param5", "param6" |
#!/bin/sh | |
# Do elasticsearch optimize on logstash previous day index | |
# if $1 = all then optimize all indicies | |
esindex="/opt/elasticsearch/data/elasticsearch/nodes/0/indices" | |
# Grab yesterday's values | |
D=`date +%d -d yesterday` | |
M=`date +%m -d yesterday` | |
Y=`date +%Y -d yesterday` |
#!/usr/bin/env python2 | |
from gi.repository import Gtk | |
class Grid(Gtk.Window): | |
widget_list = [] | |
WIDGET_SIZE = 140 | |
COLS = 1 | |
NUM = 100 | |
def calcule_columns(self, scroll, grid): |
## Setup java | |
if [ `uname -m` == 'x86_64' ]; then | |
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/" | |
else | |
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle/" | |
fi |
// HELPER: #key_value | |
// | |
// Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}} | |
// | |
// Iterate over an object, setting 'key' and 'value' for each property in | |
// the object. | |
Handlebars.registerHelper("key_value", function(obj, fn) { | |
var buffer = "", | |
key; |
/* | |
* Copyright (c) 2010 Tobias Schneider | |
* This script is freely distributable under the terms of the MIT license. | |
*/ | |
(function(){ | |
var UPC_SET = { | |
"3211": '0', | |
"2221": '1', | |
"2122": '2', |