This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Cleanup docker files: untagged containers and images. | |
# | |
# Use `docker-cleanup -n` for a dry run to see what would be deleted. | |
untagged_containers() { | |
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1. | |
docker ps -a | awk '$2 ~ "[0-9a-f]{12}" {print $'$1'}' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ ls -l /usr/bin/ | grep chefdk | |
lrwxrwxrwx 1 root root 21 apr 16 13:31 berks -> /opt/chefdk/bin/berks | |
lrwxrwxrwx 1 root root 20 apr 16 13:31 chef -> /opt/chefdk/bin/chef | |
lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-apply -> /opt/chefdk/bin/chef-apply | |
lrwxrwxrwx 1 root root 27 apr 16 13:31 chef-client -> /opt/chefdk/bin/chef-client | |
lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-shell -> /opt/chefdk/bin/chef-shell | |
lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-solo -> /opt/chefdk/bin/chef-solo | |
lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-zero -> /opt/chefdk/bin/chef-zero | |
lrwxrwxrwx 1 root root 23 apr 16 13:31 fauxhai -> /opt/chefdk/bin/fauxhai | |
lrwxrwxrwx 1 root root 26 apr 16 13:31 foodcritic -> /opt/chefdk/bin/foodcritic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ ls -l /usr/bin/ | grep chefdk | |
lrwxrwxrwx 1 root root 21 apr 16 13:31 berks -> /opt/chefdk/bin/berks | |
lrwxrwxrwx 1 root root 20 apr 16 13:31 chef -> /opt/chefdk/bin/chef | |
lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-apply -> /opt/chefdk/bin/chef-apply | |
lrwxrwxrwx 1 root root 27 apr 16 13:31 chef-client -> /opt/chefdk/bin/chef-client | |
lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-shell -> /opt/chefdk/bin/chef-shell | |
lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-solo -> /opt/chefdk/bin/chef-solo | |
lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-zero -> /opt/chefdk/bin/chef-zero | |
lrwxrwxrwx 1 root root 23 apr 16 13:31 fauxhai -> /opt/chefdk/bin/fauxhai | |
lrwxrwxrwx 1 root root 26 apr 16 13:31 foodcritic -> /opt/chefdk/bin/foodcritic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = espada.jorge@gmail.com | |
name = Jorge Espada | |
[push] | |
default = current | |
[color] | |
ui = auto | |
branch = auto | |
diff = auto | |
interactive = auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var self = this; | |
this.clickFocusable = true; | |
this.el.dblclick(function() { | |
if (self.clickFocusable) { | |
self.focus(); | |
} | |
}); | |
}; | |
types.View = View; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import rg | |
class Robot: | |
def act(self, game): | |
# if we're in the center, stay put | |
if self.location == rg.CENTER_POINT: | |
return ['guard'] | |
# if there are enemies around, attack them | |
for loc, bot in game.robots.iteritems(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- xmonad example config file. | |
-- https://github.com/ckoch786/Xmonad | |
-- A template showing all available configuration hooks, | |
-- and how to override the defaults in your own xmonad.hs conf file. | |
-- | |
-- Normally, you'd only override those defaults you care about. | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
timeout connect 5s | |
timeout client 50s | |
timeout server 50s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Sensu | |
- As a nagios replacement basically, plus the extra goodies tha sensu has itself | |
(mutators, events filters , handlers, API, etc). | |
* Riemann | |
- When state tracking is needed, cause of the powerful stream processing language, | |
I'm planning to aggregate events from client agents running on riak nodes, | |
erlang queue size grow, cassandra, others, to track trends and report | |
on events, the idea is to report posible problems before they became critical. |