Skip to content

Instantly share code, notes, and snippets.

View mreinsch's full-sized avatar

Michael Reinsch mreinsch

View GitHub Profile
@mreinsch
mreinsch / gist:0143cf9c9a91ebfacfeb
Last active October 23, 2015 14:18 — forked from malclocke/gist:943565
delete all remote branches that have already been merged into master
$ git branch -r --merged master |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' |
xargs git push origin --delete
#!/bin/bash
ES_VERSION="1.1.1"
ES_PORT="9333"
PWD=`pwd`
mkdir -p ~/elasticsearch/
cd ~/elasticsearch/
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.zip
require 'net/http'
require 'base64'
require 'cgi'
require 'json'
class CoBot
HEADERS = {
'Accept' => 'application/json',
'Content-Type' => 'application/json; charset=utf-8',
'User-Agent' => 'Harvest Twitter Script' }