ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
def spiral(h, w, r, c) | |
spiral = [] | |
step_counts = (1..Float::INFINITY).lazy.flat_map { |n| [n, n] } | |
directions = [:up, :left, :down, :right].cycle | |
while spiral.length < h * w | |
spiral << (r - 1) * w + c if r.between?(1, h) && c.between?(1, w) | |
if (current_step_count ||= 0).zero? |
This demonstrates how to make client side certificates with go | |
First generate the certificates with | |
./makecert.sh [email protected] | |
Run the server in one terminal | |
go run server.go |
################################################################# | |
# = This script transfers bash history to zsh history | |
# = Change bash and zsh history files, if you don't use defaults | |
# | |
# = Usage: ruby bash_to_zsh_history.rb | |
# | |
# = Author: Ankit Goyal | |
################################################################# | |
# change if you don't use default values |
// | |
// JAZMusician.h | |
// JazzyApp | |
// | |
#import <Foundation/Foundation.h> | |
/** | |
JAZMusician models, you guessed it... Jazz Musicians! | |
From Ellington to Marsalis, this class has you covered. |
This is a document full of notes of all the things that have hung me up getting into Python's new asyncio library. I mostly use it for tools that schlep data around between file systems, databases, and search engines for work. So lots of io. Usually I use gevent and python 2.7. But recently I've been trying to get more into asyncio and here I'm going to document all the things that I felt important to know or that tripped me up.
The first thing you need to do is write some coroutines without asyncio. This means understanding the yield
keyword and how it can be used to create generators. Then next the protocol for sending/receiving from generator objects.
Recall generators are a special kind of iterator. When you specify a generator like so, you can use it in a for loop:
def generator()
for i in range(0, 5):
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"io" | |
"net/http" | |
"github.com/golang/glog" | |
"golang.org/x/net/websocket" |
1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.