... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| # List of all the valid pdf URLs ever posted to the #Clojure IRC channel. | |
| # | |
| # Many of them are interesting CS papers others are not that useful. What I've done: | |
| # | |
| # 1. crawled an IRC history archive for the channel | |
| # 2. extract pdf list in a file with: grep -riIohE 'https?://[^[:space:]]+pdf' * > pdf-links.txt | |
| # 3. remove dupes: cat pdf-links.txt | sort | uniq > pdf-links-uniq.txt | |
| # 4. filter only HTTP 200: cat pdf-links-uniq.txt | xargs curl -o /dev/null --connect-timeout 2 --silent --head --write-out '%{http_code} %{url_effective}\n' | grep "^200" > valid-pdf-links.txt | |
| # | |
| # Now your choice to download them all or not. If you want, use: cat valid-pdf-links.txt | awk '{print $2}' | xargs wget |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769
Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:
$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
| { | |
| "variables": { | |
| "ssh_user": "root", | |
| "ssh_pass": "T@c0_Bu3n0" | |
| }, | |
| "builders": [ | |
| { |
| --- | |
| - connection: local | |
| hosts: 127.0.0.1 | |
| tasks: | |
| - local_action: | |
| description: Kubernetes Security Group | |
| module: ec2_group | |
| name: kubernetes | |
| region: '{{ aws.region }}' | |
| rules: |
This gist is deprecated in favor of https://github.com/ninenines/cowboy/blob/master/doc/src/guide/specs.asciidoc which has a formatted version at https://ninenines.eu/docs/en/cowboy/2.0/guide/specs/
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| #!/bin/bash -e | |
| echo ' | |
| PATH=$HOME/go/bin:$PATH | |
| export GOPATH=$HOME | |
| export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
| export EDITOR=vim | |
| ' >> ~/.profile | |
| sudo apt-get update |