Skip to content

Instantly share code, notes, and snippets.

View ronbee's full-sized avatar

Ron B(ee) ronbee

View GitHub Profile
@ronbee
ronbee / load_dotenv.sh
Created December 21, 2023 03:06 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
@ronbee
ronbee / gist:e0a88029640eb990c74a
Created May 15, 2014 14:39
git multiple keys configuration

edit ssh config

$ cd ~/.ssh/
$ touch config
$ vim config

and add the multiple keys to config:

# aaa account
@ronbee
ronbee / gitted-file.rb
Last active January 3, 2016 02:29
a poor man's (REST'ful service) monitoring
require 'json'
require 'net/http'
class Service_Status_Monitor
TEST_SERVICES = [ 'http://111.111.111.111:8001/status' ] # this IS our config file..
def run outf
out = File.new( "#{File.dirname(__FILE__)}/#{outf}", "w" )
out.puts "1..#{TEST_SERVICES.size}"