Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Blum mulbc

  • Berlin, Germany
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am zeichenanonym on github.
  • I am chrisnblum (https://keybase.io/chrisnblum) on keybase.
  • I have a public key whose fingerprint is 536F 2CCA CC87 1421 DC69 84A1 FE67 A71B 6BDE BDA8

To claim this, I am signing this object:

View RubyRSSReader.rb
#Source from http://snippets.dzone.com/posts/show/4713
require 'rss/1.0'
require 'rss/2.0'
require 'open-uri'
require 'open-uri'
class Rssreader
def initialize(url)
source = url # url or local file
View GDocs Magic ResImprove Bookmark
javascript:(function(){var k,x,t,w,h;for(k=0; x=document.images[k]; k++){if (x.src.indexOf("cht=tx") != -1){w = x.width;h = x.height;x.src = x.src.replace("cht=tx", "chs=" + w*3 + "x" + h*3 + "&cht=tx");x.width = w;x.height = h;}} })();
View arp -a
amadeus-137-226-248-182.nn.RWTH-Aachen.DE (137.226.248.182) at 00:23:8B:4C:64:DD [ether] on BRIDGE00
amadeus-137-226-248-169.nn.RWTH-Aachen.DE (137.226.248.169) at 00:26:22:34:44:0A [ether] on BRIDGE00
248-095.amadeus.RWTH-Aachen.DE (137.226.248.95) at 00:50:8D:B2:99:25 [ether] on BRIDGE00
amadeus-137-226-248-69.nn.RWTH-Aachen.DE (137.226.248.69) at 54:42:49:08:55:F1 [ether] on BRIDGE00
amadeus-137-226-248-177.nn.RWTH-Aachen.DE (137.226.248.177) at 00:16:41:58:BE:48 [ether] on BRIDGE00
amadeus-137-226-248-149.nn.RWTH-Aachen.DE (137.226.248.149) at 00:1B:FC:E0:38:9E [ether] on BRIDGE00
amadeus-137-226-248-158.nn.RWTH-Aachen.DE (137.226.248.158) at 00:1B:38:EE:F8:68 [ether] on BRIDGE00
amadeus-137-226-248-234.nn.RWTH-Aachen.DE (137.226.248.234) at 00:23:8B:C1:82:9B [ether] on BRIDGE00
amadeus-137-226-248-114.nn.RWTH-Aachen.DE (137.226.248.114) at 00:14:6C:A5:B3:F6 [ether] on BRIDGE00
amadeus-137-226-248-127.nn.RWTH-Aachen.DE (137.226.248.127) at 00:1F:16:04:B2:42 [ether] on BRIDGE00
View gist:714210
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
In the header of the mailing list you have this line:
List
Unsubscribe:<mailto:sympa@lists.cacert.org?subject=unsubscribe%20cacert>
Then just click on the link or create a new message from your email
address to sympa@lists.cacert.org with in the subject:unsubscribe cacert
View gist:1194684
/// pgnString returns an NSString representing the entire game as PGN.
- (NSString *)pgnString {
NSMutableString *string = [NSMutableString stringWithCapacity: 2000];
[string appendFormat: @"[Event \"%@\"]\n", event];
[string appendFormat: @"[Site \"%@\"]\n", site];
[string appendFormat: @"[Date \"%@\"]\n", date];
[string appendFormat: @"[Round \"%@\"]\n", round];
[string appendFormat: @"[White \"%@\"]\n", whitePlayer];
[string appendFormat: @"[Black \"%@\"]\n", blackPlayer];
View gist:1194889
/// pgnString returns an NSString representing the entire game as PGN.
- (NSString *)pgnString {
NSMutableString *string = [NSMutableString stringWithCapacity: 2000];
[string appendFormat: @"[Event \"%@\"]\n", event];
[string appendFormat: @"[Site \"%@\"]\n", site];
[string appendFormat: @"[Date \"%@\"]\n", date];
[string appendFormat: @"[Round \"%@\"]\n", round];
[string appendFormat: @"[White \"%@\"]\n", whitePlayer];
[string appendFormat: @"[Black \"%@\"]\n", blackPlayer];
View gist:4529835
<string>af</string>
<string>ax</string>
<string>al</string>
<string>dz</string>
<string>as</string>
<string>ad</string>
<string>ao</string>
<string>ai</string>
<string>aq</string>
<string>ag</string>
View gist:5403043
package main
import "fmt"
func fact(n int) int {
if n == 0 {
return 1
}
return n * fact(n-1)
}
func main() {
fmt.Println(fact(7))
@mulbc
mulbc / ceph-client.rb
Created Jul 13, 2018
ceph client library CLI tools for OSX
View ceph-client.rb
class CephClient < Formula
desc "Rados and RBD CLIs and libraries of the Ceph project"
homepage "https://ceph.com"
url "git@github.com:ceph/ceph.git", :using => :git, :tag => "v13.2.0"
sha256 "9469c2af0a997a27ddfced71cef3fd55483ab0e34cc36a07a46ccf0d886a2d91"
depends_on :python if MacOS.version <= :snow_leopard
depends_on :osxfuse
depends_on "openssl" => :build