Skip to content

Instantly share code, notes, and snippets.

View flippingbits's full-sized avatar

Stefan Sprenger flippingbits

View GitHub Profile
import json
import random
import requests
API_URI = "https://api.github.com/repos/DataCater/datacater/stargazers?page="
INTERNAL_STARGAZERS = ["flippingbits", "olis1996", "ChrisRousey", "HknLof", "dkd-dobberkau"]
NUM_WINNERS = 3
# Get all stargazers from the DataCater/datacater repository
stargazers = []
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
stepping : 2
microcode : 0xc
cpu MHz : 1600.000
cache size : 12288 KB
physical id : 0
@flippingbits
flippingbits / gist:e073fa49b8920519cb27
Created December 11, 2014 10:27
thesis build script
pdflatex thesis.tex
bibtex thesis
pdflatex thesis.tex
rm *.aux
rm *.log
open thesis.pdf
@flippingbits
flippingbits / gist:5262856
Created March 28, 2013 12:49
Index queue configuration for tx_cal_event
plugin.tx_solr {
index.queue {
events = 1
events {
table = tx_cal_event
fields {
start_date_dateS = TEXT
start_date_dateS.cObject = COA
start_date_dateS.cObject {
10 = TEXT
set nocompatible
filetype on " set filetype stuff to on
filetype plugin on
filetype indent on
set number " show line numbers
set ruler " show the cursor position all the time
set tabstop=2 " a tab is two spaces
set expandtab " insert space characters whenever the tab key is pressed
set backspace=indent,eol,start " allow backspacing over everything in insert mode
dkd-sprenger@hadoop-master-1:/opt/cassandra-0.7.0-beta3/contrib/pig$ bin/pig_cassandra example-script.pig
10/11/15 17:38:26 INFO pig.Main: Logging error messages to: /opt/cassandra-0.7.0-beta3/contrib/pig/pig_1289839106859.log
2010-11-15 17:38:27,809 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://hadoop-master-1.dkd.lan:8020
2010-11-15 17:38:29,756 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: hadoop-master-1.dkd.lan:8021
2010-11-15 17:38:32,753 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - (Name: Store(hdfs://hadoop-master-1.dkd.lan/tmp/temp657556636/tmp-375431593:org.apache.pig.builtin.BinStorage) - 1-82 Operator Key: 1-82)
2010-11-15 17:38:32,960 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.CombinerOptimizer - Choosing to move algebraic foreach to combiner
2010-11-15 17:38:33,100 [main] INFO org.apac
@flippingbits
flippingbits / gist:631997
Created October 18, 2010 10:06
RSpec Macro for testing, if a controller is only available for signed in users
module RSpec::Core
class ExampleGroup
class << self
#
# This macro is available inside of each controller spec:
#
# describe UsersController do
# describe "/users" do
alias firefox="open /Applications/Firefox.app"
alias mail="open /Applications/Mail.app"
alias safari="open /Applications/Safari.app"