Skip to content

Instantly share code, notes, and snippets.

View karstengresch's full-sized avatar
:octocat:
.

Karsten Gresch karstengresch

:octocat:
.
View GitHub Profile
@karstengresch
karstengresch / gist:0d4f8907af2366a3f881
Last active August 29, 2015 14:08 — forked from iandundas/gist:7863c6c248f76e14a3a8
German version, tested
# strip out iBooks citation
sed -E -e 's/^[ ]?[0-9]* //g' | sed -E -e 's/„[ ]?[0-9]?[ ]?//g' | sed -E -e 's/“$//g' | sed -E -e 's/^(Auszug aus).*//g'
import static java.lang.System.out;
import static java.util.Arrays.asList;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
public class ListTests {
public static void main( String[] args ) {
List<String> names = asList( "Ted", "Fred", "Jed", "Ned" );
@karstengresch
karstengresch / gist:1d917d8bc731b8ed3491
Created April 15, 2015 09:43
Onename verification
Verifying that +gresch is my openname (Bitcoin username). https://onename.com/gresch

Keybase proof

I hereby claim:

  • I am karstengresch on github.
  • I am gresch (https://keybase.io/gresch) on keybase.
  • I have a public key whose fingerprint is 7877 9D5F 7A96 A99F 9F08 229D 078D 2DC5 2908 2C04

To claim this, I am signing this object:

@karstengresch
karstengresch / ghakound.rb
Created August 19, 2015 15:11
Primitive Ruby script for checking if a GitHub user login is avalable (you need to have octokit installed). Usage: ruby ghakound.rb <login>, e.g. ruby ghakound.rb defunkt
#!/usr/bin/env ruby
#encoding: utf-8 ​
# Checks if GitHub login is taken. Argument -u => login name
# noinspection RubyResolve
require 'optparse'
require 'octokit'
require 'pp'
options = {}
option_parser = OptionParser.new do |opts|
@karstengresch
karstengresch / post_to_GitHub.py
Last active August 25, 2015 21:16 — forked from MalphasWats/post_to_GitHub.py
Post to GitHub Pages from Editorial
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@karstengresch
karstengresch / get_blog_post.py
Last active August 25, 2015 21:16 — forked from MalphasWats/get_blog_post.py
Get blog post from GitHub Pages site in Editorial
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@karstengresch
karstengresch / whateve.r
Created August 31, 2015 16:02
vagrant VMWare Fusion provider debug output
INFO global: Vagrant version: 1.7.4
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_OLD_ENV_ITERM_SESSION_ID="w0t6p1"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.tVbNNO5RWC/Listeners"
INFO global: VAGRANT_OLD_ENV_LANG="de_DE.UTF-8"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/bin/vagrant"
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="iTerm.app"
@karstengresch
karstengresch / easy-k8s-coreos.md
Last active September 8, 2015 10:07 — forked from soellman/easy-k8s-coreos.md
Easy Kubernetes on CoreOS

Easy Kubernetes Installation on CoreOS

At Timeline Labs, we are continuously looking at new technologies to see what fits our needs. We are especially excited about Kubernetes from Google to manage our services atop Docker and CoreOS.

This process for installing Kubernetes on CoreOS uses Flannel for Kubernetes networking and should be cloud provider agnostic. To deploy the Kubernetes master functionality into the cluster, it uses fleetctl.

Thanks to Kelsey Hightower and his blog posts! They served as a great starting point for this process.

How do I get this running?

Add the cloud config below to your own and bring up your cluster using a CoreOS version with Docker 1.3 (currently v472.0.0 in alpha). During that initial boot, the download-kubernetes and download-flannel units will download binaries from the latest project release and use those.

@karstengresch
karstengresch / multiple_ssh_setting.md
Last active September 8, 2015 19:36 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"