Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Blum mulbc

  • Berlin, Germany
View GitHub Profile
@mulbc
mulbc / init_secret.sh
Created Sep 25, 2018
oncall.tools deployment on Kubernetes
View init_secret.sh
kubectl create ns oncall
kubectl config set-context (kubectl config current-context) --namespace=oncall
kubectl create secret generic mysql-pass --from-literal=password='1234'
kubectl apply -f oncall_config.yml
kubectl apply -f oncall_depl.yml
@mulbc
mulbc / brew install -debug -verbose ceph-client
Created Jul 14, 2018
Building ceph-client Homebrew tap with ceph mimic branch and PR 23034
View brew install -debug -verbose ceph-client
$ brew reinstall -debug -verbose ceph-client
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ceph-client.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ccache.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew
@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
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))
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: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: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: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 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 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;}} })();