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
Small refactorings made to original code:
package main | |
import ( | |
"fmt" | |
"strconv" | |
"unicode" | |
"unicode/utf8" | |
) | |
func skipSpaces(s []byte) []byte { |
#/bin/bash | |
########################################################## | |
### INTRODUCTION | |
########################################################## | |
: ' | |
Install and configure R (Redis) + ELK server from scratch on CentOS 6.5. | |
* Logstash version 1.4.2 | |
* Elasticsearch version 1.3.2 |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
$script = <<SCRIPT | |
echo "-------------------- updating package lists" | |
apt-get update |
A running example of the code from:
Small refactorings made to original code:
createElement.js lets document.createElement use CSS selectors.
This is a pretty useful library for building out DOM elements. The whole thing runs on one regex and a for loop, so it’s plenty fast. The script is 300 bytes when compressed and gzipped. For 524 bytes (advanced), it includes nesting support and can generate entire DOM hierarchies, including text nodes.
document.createElement(); // generates <div />
package main | |
import ( | |
"database/sql" | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"log" | |
) | |
const ( |
access_key_id: xxx | |
secret_access_key: yyy |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
I hereby claim:
To claim this, I am signing this object:
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)golang
)C
Scala