Currently a developer's professional profile is made up two components:
- Github
LinkedIn shows your work history, and Github shows your craft. There is a missing gap between LinkedIn and Github. Punchcard.io is designed to bridge that gap.
Host *.compute.amazonaws.com | |
IdentityFile ~/.ec2/your-key.pem | |
User root | |
StrictHostKeyChecking no | |
UserKnownHostsFile /dev/null |
Currently a developer's professional profile is made up two components:
LinkedIn shows your work history, and Github shows your craft. There is a missing gap between LinkedIn and Github. Punchcard.io is designed to bridge that gap.
It is generally desirable to group all the hosts for a specific service into a single dashboard view. For example, all the web servers are in single view while all the database servers are in another view.
This is usually not an issue when you are sending custom metrics using Riemann client. However, there are cases where you are using something that you do not control how the metrics are being sent. i.e., Riemann-tools.
Since Riemann-tools scripts are application agnostic, in order for the dashboard view to group hosts, we must inject some application specific information into the tags field. Tags is a collection of arbitrary strings. In the case of Riemann-tools scripts you can pass in arbitrary strings on the command line.
riemann-health --host 127.0.0.1 --tag "prod" --tag "webserver"
ERROR [2013-01-23 00:58:51,186] New I/O server worker #2-3 - aleph.netty - Unhandled error in Netty pipeline. java.io.IOException: Connection timed out at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:218) at sun.nio.ch.IOUtil.read(IOUtil.java:186) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:315) at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194)
require 'formula' | |
class Tsocks < Formula | |
# The original is http://tsocks.sourceforge.net/ | |
# This GitHub repo is a maintained fork with OSX support | |
homepage 'http://github.com/pc/tsocks' | |
head 'https://github.com/pc/tsocks.git' | |
depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3 |
ps aux | grep ngin[x] | tr -s ' ' | echo -n `cut -d' ' -f2` | tr ' ' ',' | xargs -I pid sh -c "ls -alh /proc/{pid}/fd" | grep socket | wc -l |
docker run -lxc-conf="lxc.pivotdir = lxc_putold" -v /mnt/data:/mnt/data ubuntu touch /mnt/data/hello |
─➤ vagrant provision 1 ↵ | |
[default] The cookbook path '/Users/aaron.feng/code/artifact-cookbook-good/fixtures/databags' doesn't exist. Ignoring... | |
[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant. | |
[Berkshelf] You should check for a newer version of vagrant-berkshelf. | |
[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues | |
[Berkshelf] You can also join the discussion in #berkshelf on Freenode. | |
[Berkshelf] Updating Vagrant's berkshelf: '/Users/aaron.feng/.berkshelf/default/vagrant/berkshelf-20131029-50324-z5k7zn-default' | |
[Berkshelf] Using artifact (1.10.3) | |
[Berkshelf] Using artifact_test (0.1.0) at './fixtures/artifact_test' | |
[Berkshelf] Using windows (1.8.10) |
#!/bin/bash | |
# remember original ruby location | |
export CURRENT_RUBY=$(which ruby) | |
alias ruby="ruby_wrapper" | |
# call bundle exec if there's a Gemfile.lock | |
function ruby_wrapper() { | |
# unalias it to get the real ruby version |