Skip to content

Instantly share code, notes, and snippets.

View yannick's full-sized avatar
🏗️

Yannick Koechlin yannick

🏗️
View GitHub Profile
#!/usr/bin/env bash
kubectl patch deployment $1 -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(date +%s)\"}}}}}"
kg deployment $1 -o yaml
package main
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"os"
"github.com/aws/aws-sdk-go/aws"
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
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
z
y
xx
x2401
x
w
unbekannt
talstation15
t
reservoir
<?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/>
{
"Profiles": [
{
"Ansi 7 Color" : {
"Red Component" : 0.74901962280273438,
"Color Space" : "Calibrated",
"Blue Component" : 0.74901962280273438,
"Alpha Component" : 1,
"Green Component" : 0.74901962280273438
},
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
[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)
#!/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 '