git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
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/bash | |
mkdir -p kubecon_files | |
DAYS=("2017-12-06" "2017-12-07" "2017-12-08") | |
for DAY in "${DAYS[@]}"; do | |
#Super shitty pipefest because of grep matched groups sadness | |
LINKS=($(curl https://kccncna17.sched.com/${DAY}/overview | grep -oEi "f='(.*)' cl" | cut -d\' -f 2 | tr '\n' ' ')) | |
for LINK in "${LINKS[@]}"; do | |
echo "Requesting https://kccncna17.sched.com/${LINK}" |
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
1. screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
2. when done use CTRL-A CTRL-\ and then y (for yes) to exit | |
Alternative method: | |
1. docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh | |
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
<source> | |
type in_tail | |
# ... | |
tag raw.eventlog | |
</source> | |
<match raw.**> | |
type forward | |
log_level "#{ENV['DEBUG'] ? 'debug' : 'info'}" |
A running example of the code from:
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang
- http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
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 ( | |
"net/http" | |
"time" | |
"log" | |
) | |
func main() { | |
dh := DispatchHandler{} |
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
tsd.core.auto_create_metrics=true | |
tsd.core.meta.enable_realtime_ts=false | |
tsd.core.meta.enable_realtime_uid=false | |
tsd.core.meta.enable_tsuid_incrementing=false | |
tsd.core.meta.enable_tracking=false | |
tsd.core.plugin_path= | |
tsd.core.tree.enable_processing=false | |
tsd.http.cachedir=/tmp/tsd | |
tsd.http.request.cors_domains=* | |
tsd.http.request.enable_chunked=true |
- 日時
2017-03-14
- 作
時雨堂
- バージョン
2.4.2
- URL
言語