View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
View CL_PROTEUS_LNX.sh
#!/usr/bin/env bash
#
##################################################################
# Script para aplicar baseline da Proteus #
# 12 Jan 2016 - Wendel Amix - v1.0 #
##################################################################
#
# Historico / Atualizacoes
#
# Data: 17/Jan/2017 - Wendel
View README.md

Docker Machine OSX Autostart

This is a simple launchd config that will start your default docker-machine on startup. You can customize the machine that is started by updating lines 11 and 16 with the correct machine name.

Install

  1. Copy the file com.docker.machine.default.plist below to ~/Library/LaunchAgents/com.docker.machine.default.plist.
  2. Run the following in a terminal: launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
  3. Profit!
View str_pad.sh
#!/usr/bin/env bash
function str_pad() {
local pad_length="$1" pad_string="$2" pad_type="$3"
local pad length llength offset rlength
pad="$(eval "printf '%0.${#pad_string}s' '${pad_string}'{1..$pad_length}")"
pad="${pad:0:$pad_length}"
View fwhois
#!/usr/bin/env php
<?php
function get(&$map, $pkeys, $default = '') {
$keys = explode('|', $pkeys);
foreach ($keys as $key) {
if (isset($map[$key])) {
return $map[$key];
}
}
View mocha-behavior.js
describe('Behavior mocha', function () {
before(function () {
console.log('++++> before');
});
after(function () {
console.log('++++> after');
});