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 | |
# I use local VMs on Mac for all our development in | |
# Docker. And our choice of VM technology is VMWare. | |
# And those VMs are Ubuntu Server based. One issue, | |
# VMWare Tools fails to install, and I've never seen | |
# it succeed once with years of use. | |
# That said, VMWare is far superior to VirtualBox. | |
# For VirtualBox, we find the Docker and Kinematic |
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
def get_globals | |
hash = {} | |
global_variables.sort.map do |symbol| | |
begin | |
value = eval ("#{symbol}") | |
hash[symbol] = value unless value.nil? | |
rescue | |
nil | |
end | |
end |
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
require 'rubygems' | |
require 'eventmachine' | |
require 'sinatra/base' | |
EM.next_tick do | |
EventMachine.add_periodic_timer(1) do | |
puts "hello" | |
end | |
end |
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
require 'rubygems' | |
require 'eventmachine' | |
require 'sinatra/base' | |
require 'sinatra' | |
EM.run { | |
EventMachine.add_periodic_timer(1) { | |
puts "hello" | |
} | |
my_app = Sinatra.new { get('/') { "hi" } } |
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
Finding conflicting information on the web I decided to write a Gist on the topic. | |
First open Terminal, then select Terminal, Preferences, Settings. | |
For the Home and End keys set 'send string to shell', and in the text box enter Control-A for Home and Control-E for End. |
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
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz | |
( | |
cd rrdtool-1.4.5 | |
./configure --prefix=/opt/rrdtool | |
make | |
sudo make install | |
) | |
wget http://collectd.org/files/collectd-5.0.1.tar.gz | |
tar xzvf collectd-5.0.1.tar.gz |