Skip to content

Instantly share code, notes, and snippets.

Yannick Koechlin yannick

Block or report user

Report or block yannick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View redeploy.sh
#!/usr/bin/env bash
kubectl patch deployment $1 -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(date +%s)\"}}}}}"
kg deployment $1 -o yaml
View s3upload.go
package main
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"os"
"github.com/aws/aws-sdk-go/aws"
View swiss_zips.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1000;1000;Lausanne;Lausanne;VD;100060
1000;1000;Lausanne 1 Dépôt;Lausanne 1 Dépôt;VD;100060
1000;1000;Lausanne 2;Lausanne 2;VD;100200
1000;1000;Lausanne 3;Lausanne 3;VD;100060
1000;1000;Lausanne Ouchy;Lausanne Ouchy;VD;100060
1000;1000;Lausanne 7;Lausanne 7;VD;100060
1000;1000;Lausanne 8;Lausanne 8;VD;100060
1000;1000;Lausanne 12;Lausanne 12;VD;100012
1000;1000;Lausanne 14;Lausanne 14;VD;100014
1000;1000;Lausanne 16;Lausanne 16;VD;100016
View swiss_zips.csv
1000;1000;Lausanne;Lausanne;VD;100060
1000;1000;Lausanne 1 D�p�t;Lausanne 1 D�p�t;VD;100060
1000;1000;Lausanne 2;Lausanne 2;VD;100200
1000;1000;Lausanne 3;Lausanne 3;VD;100060
1000;1000;Lausanne Ouchy;Lausanne Ouchy;VD;100060
1000;1000;Lausanne 7;Lausanne 7;VD;100060
1000;1000;Lausanne 8;Lausanne 8;VD;100060
1000;1000;Lausanne 12;Lausanne 12;VD;100012
1000;1000;Lausanne 14;Lausanne 14;VD;100014
1000;1000;Lausanne 16;Lausanne 16;VD;100016
View ch-street-numbers.txt
z
y
xx
x2401
x
w
unbekannt
talstation15
t
reservoir
View com.googlecode.iterm2.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<true/>
<key>AnimateDimming</key>
<false/>
View iterm.profiles.json
{
"Profiles": [
{
"Ansi 7 Color" : {
"Red Component" : 0.74901962280273438,
"Color Space" : "Calibrated",
"Blue Component" : 0.74901962280273438,
"Alpha Component" : 1,
"Green Component" : 0.74901962280273438
},
View daemon.conf
default-sample-format = float32le
default-sample-rate = 192000
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
resample-method = src-sinc-best-quality
;soxr-vhq
enable-lfe-remixing = no
View pavu.log
[1455572.738] -> wl_display@1.get_registry(new id wl_registry@2)
[1455572.785] -> wl_display@1.sync(new id wl_callback@3)
[1455572.738] -> wl_display@1.get_registry(new id wl_registry@2)
[1455572.785] -> wl_display@1.sync(new id wl_callback@3)
[1455578.062] wl_display@1.delete_id(3)
[1455578.098] wl_registry@2.global(1, "wl_shm", 1)
[1455578.113] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[1455578.220] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 10, 2304)
[1455578.416] -> wl_shm_pool@5.resize(6912)
[1455580.320] -> wl_shm_pool@5.resize(16128)
View all_channels.rb.sh
#!/usr/bin/sh
ruby -n -e 'c= $_.split("\t")[2].to_s.match( /^(?<channel>#(\S*))\((?<users>\d*)\): (?<title>.*)/); puts
[c[:users], c[:channel], c[:title]].join("\t") rescue nil '
You can’t perform that action at this time.