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/bash | |
: ${LIBRATO_EMAIL:?"Need to set LIBRATO_EMAIL"} | |
: ${LIBRATO_TOKEN:?"Need to set LIBRATO_TOKEN"} | |
LIBRATO_CREDS="$LIBRATO_EMAIL:$LIBRATO_TOKEN" | |
LIBRATO_URL="https://metrics-api.librato.com/v1/metrics" | |
PAGE=$1 | |
SENSOR=${2:-$HOSTNAME} |
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
# but this at /etc/profile.d/rbenv.sh | |
# rbenv setup - only add RBENV PATH variables if no single user install found | |
if [[ ! -d "${HOME}/.rbenv" ]]; then | |
export RBENV_ROOT=/opt/rbenv | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
eval "$(rbenv init -)" | |
fi |
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 | |
# | |
# puma - this script starts and stops the puma daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Description \ | |
# goes here... | |
# processname: puma | |
# config: /etc/puma.conf | |
# pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid |
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
# starts all unicorns listed in /etc/unicorn/*.conf | |
# lives under /etc/unicorn/rpcm.conf | |
ENV=production | |
APP_ROOT=/opt/rpcm |
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
#!/usr/bin/env ruby | |
# dlspeed.rb - niwo 2011 | |
# test speed of http downloads: partial (tail, head) and full download | |
# Output is csv to stdout | |
################################################# | |
require 'optparse' |
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
#!/usr/bin/env ruby | |
# A simple Ruby script to update Chromium from dev build. | |
# Currently only works on Mac and Win32. | |
# If you want progress bar, sudo gem install ruby-progressbar | |
# Read more about progress bar here: http://github.com/nex3/ruby-progressbar/tree/master | |
# Usage: | |
# ruby chromium_updater.rb | |
require 'fileutils' |
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/bash | |
### Settings | |
svn_wk='/srv/tftp/data/' | |
svn_user='user' | |
svn_passwd='passwd' | |
### Variables | |
date=`date +"%F %T"` | |
svn='/usr/bin/svn' |