git init
or
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
| # Tested on OSX Yosemite 10.10.4 | |
| # there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b | |
| # XXX TODO | |
| # should I disable com.google.Keystone.Agent ?? | |
| # http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/ | |
| # Stop DS_Store file creation on network connections | |
| # restart Finder afterwards |
| Moved to a proprer repositoy, TSWS is a real boy now! | |
| https://github.com/dfletcher/tsws | |
| PRs welcomed. |
| [Unit] | |
| Description=NSQD | |
| After=network.target | |
| [Service] | |
| WorkingDirectory=/usr/local/nsq | |
| ExecStart=/usr/local/nsq/bin/nsqd -http-address 127.0.0.1:4151 -tcp-address 127.0.0.1:4150 -lookupd-tcp-address 127.0.0.1:4160 | |
| ExecReload=/bin/kill -HUP $MAINPID | |
| Type=simple | |
| KillMode=process |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| from pylab import * | |
| from scipy.stats import uniform, binom, expon, beta | |
| true_gamma = 0.5 | |
| N = 600 | |
| T = 15 | |
| data = zeros((2, N), dtype=float) | |
| event_times = data[0,:] | |
| event_times[:] = uniform(0,15).rvs(N) |
| /* | |
| Parallel processing with ordered output in Go | |
| (you can use this pattern by importing https://github.com/MarianoGappa/parseq) | |
| This example implementation is useful when the following 3 conditions are true: | |
| 1) the rate of input is higher than the rate of output on the system (i.e. it queues up) | |
| 2) the processing of input can be parallelised, and overall throughput increases by doing so | |
| 3) the order of output of the system needs to respect order of input | |
| - if 1 is false, KISS! |
| alias kc='kubectl' | |
| alias kclf='kubectl logs --tail=200 -f' | |
| alias kcgs='kubectl get service -o wide' | |
| alias kcgd='kubectl get deployment -o wide' | |
| alias kcgp='kubectl get pod -o wide' | |
| alias kcgn='kubectl get node -o wide' | |
| alias kcdp='kubectl describe pod' | |
| alias kcds='kubectl describe service' | |
| alias kcdd='kubectl describe deployment' | |
| alias kcdf='kubectl delete -f' |