... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
namespace: athens | |
name: athens-app | |
labels: | |
app: athens | |
spec: | |
replicas: 1 | |
selector: |
#!/usr/bin/python | |
#Get json output from status service web page | |
import urllib, json, sys | |
from socket import gethostname, getfqdn | |
import subprocess | |
# this require presence of xmltodict rpm package ! | |
sys.path.append('/usr/local/lib/python2.7/dist-packages') | |
import xmltodict |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"golang.org/x/crypto/ssh" | |
kh "golang.org/x/crypto/ssh/knownhosts" |
package main | |
import "fmt" | |
type WalkFunc func(a *complex128) | |
func main() { | |
coord := 0 + 0i; | |
up := func(a *complex128) { *a += (1+0i) } |
#!/usr/bin/env ruby | |
require 'octokit' | |
require 'logger' | |
@logger = Logger.new("output.log") | |
def update_fork(repo) | |
repo_name = repo.name | |
# clone the repository -- octokit doesn't provide this feature as it's a github api library |
#!/bin/bash | |
temp=`basename $0` | |
TMPFILE=`mktemp /tmp/${temp}.XXXXXX` || exit 1 | |
API_CALL="/user/repos?type=owner+fork=true" | |
function rest_call { | |
curl -u skarlso:$GIT_TOKEN -s $1 >> $TMPFILE | |
} |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
#!/usr/bin/env zsh | |
help() { | |
echo ' | |
Define somewhere in your secrets: | |
export JENKINS_SERVER='' | |
export JENKINS_USERNAME='' | |
export JENKINS_PASSWORD='' -- token located under your users settings | |
Usage: |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |