create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
[email protected] /var/lib/jenkins/workspace/shark | |
├─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ └── UNMET DEPENDENCY formidable 1.0.x | |
│ ├── [email protected] | |
│ └── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ └── [email protected] | |
├── [email protected] |
var cluster = require('cluster'); | |
if (cluster.isWorker) { | |
console.log('Worker ' + process.pid + ' has started.'); | |
// Send message to master process. | |
process.send({msgFromWorker: 'This is from worker ' + process.pid + '.'}) | |
// Receive messages from the master process. |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:
In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):
#!/bin/bash | |
set -e | |
SECRETFILE=~/.digitalocean | |
if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then | |
if [ -e $SECRETFILE ]; then | |
. $SECRETFILE | |
fi | |
fi |
angular.module('d3AngularApp', ['d3']) | |
.directive('d3Bars', ['$window', '$timeout', 'd3Service', | |
function($window, $timeout, d3Service) { | |
return { | |
restrict: 'A', | |
scope: { | |
data: '=', | |
label: '@', | |
onClick: '&' | |
}, |
#!/bin/bash -e | |
# Script for installing Robomongo on Ubuntu. | |
# Copyright 2013 Binary Birch Tree | |
# http://www.binarybirchtree.com | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
A "choose your own adventure" story
JavaScript is has both object-oriented and functional heritage, thanks to its two parents: Scheme and Self.
It provides first class functions and makes it simple to compose these function objects into bundles of awesome. Even though I'm an OO "true believer" at heart, I find myself composing my code using functional concepts, and use the OO approach where there's a clear benefit or where I feel that it's the best way to communicate the interface.
Object-oriented software design is by no means the only way to do software design, but it's been an immensely successful model for a very long time now, and provides a clear and well-understood mental model for thinking and communicating about software. Lots of good ideas like encapsulation, delegation, traits and composition fit well into OO design.
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
# this script expects $DOTOKEN variable with your digital ocean token | |
# this script gets or creates smallest DO droplet and remotely executes script on it | |
# afterwards, droplet is destroyed | |
DROPLETNAME=example.com | |
DOHOME="https://api.digitalocean.com/v2" | |
cat <<EOF > .curlargs | |
-s | |
-H "Authorization: Bearer $DOTOKEN" |