Skip to content

Instantly share code, notes, and snippets.

View mulbc's full-sized avatar

Chris Blum mulbc

  • IBM
  • Berlin, Germany
  • 03:29 (UTC +02:00)
View GitHub Profile

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:

#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
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;}} })();
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
-----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
/// 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];
/// 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];
<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>
@mulbc
mulbc / gist:5403043
Created April 17, 2013 09:37
Sqwiggle
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 July 13, 2018 09:47
ceph client library CLI tools for OSX
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