Examples how to build Docker images with private repository dependencies without adding credentials inside the resulting image.
- keybase.io/errnoh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just letting you know that it's me. | |
23092016 |
I hereby claim:
- I am errnoh on github.
- I am errnoh (https://keybase.io/errnoh) on keybase.
- I have a public key ASCvKY-cX9UbwBywI6r0DOybWMdRF2mEKAtmoob_2ag1AQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 256 Color palette: http://upload.wikimedia.org/wikipedia/commons/9/95/Xterm_color_chart.png | |
# Powerline fonts: https://github.com/Lokaltog/powerline-fonts | codepoints: https://powerline.readthedocs.org/en/latest/fontpatching.html | | |
# Make it use C-a, similar to screen.. | |
set-option -g prefix C-a | |
unbind C-b | |
bind-key C-a last-window | |
# Bind vertically with | and horizontally with - | |
unbind % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"net/http" | |
"runtime" | |
"strconv" | |
) | |
type MessageStruct struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package reverse | |
type intslice []int | |
func (slice intslice) swap(i, j int) { | |
slice[i], slice[j] = slice[j], slice[i] | |
} | |
func (slice intslice) len() int { | |
return len(slice) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func appendlast(s []int, v int) []int { | |
return append(s, v) | |
} | |
func appendfirst(s []int, v int) []int { | |
return append([]int{v}, s...) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/rc | |
# get the position from the image input | |
fn winpos { | |
dd -bs 1 -skip 20 -count 40 -quiet 1 | |
} | |
# get just width and height | |
fn winsize { | |
winpos | awk '{print ($3-$1),($4-$2)}' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -bench=. | |
testing: warning: no tests to run | |
PASS | |
BenchmarkConcat 50000 35181 ns/op | |
BenchmarkPlusConcat 500000 4998 ns/op | |
BenchmarkJoin 200000 7727 ns/op | |
BenchmarkBuffer 200000 8456 ns/op | |
BenchmarkByteWrite 500000 5225 ns/op | |
ok self/dotnames 10.739s |
NewerOlder