- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
# Sprinkle setup script for our CI server (Ruby 1.9/Git/PostgreSQL/nginx reverse proxy) | |
# | |
package :build_essential do | |
description 'Build tools' | |
apt 'build-essential' do | |
# Update the sources and upgrade the lists before we build essentials | |
pre :install, ['aptitude update', 'aptitude safe-upgrade', 'aptitude full-upgrade'] | |
end | |
end |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
var dgram = require('dgram'); | |
sendUDPMessage("10.1.2.3", 1234, Buffer("Release The Kraken!")); | |
function sendUDPMessage(targetIP, targetPORT, message){ | |
var client = dgram.createSocket("udp4"); | |
client.on('error', function(e) { | |
throw e; |
echo '[{"key": 1}, {"key": 2}, {"key": 1}]' | jq 'group_by (.key)[] | {key: .[0].key, length: length}' |