Follow these steps to install graphite on OS X Mavericks.
- Homebrew
- Python 2.7
- Git
# This Ruby script (regardless of where it's located on the file system) recur- | |
# sively lists all duplicate files in the direcotry in which it's executed. | |
require 'digest/md5' | |
hash = {} | |
Dir.glob('**/*', File::FNM_DOTMATCH).each do |f| | |
next if File.directory?(f) | |
key = Digest::MD5.hexdigest(IO.read(f)).to_sym |
vids |
=begin | |
Usage: /bin/hbase shell cellcounter.rb | |
=end | |
import java.text.SimpleDateFormat | |
import java.text.ParsePosition | |
import java.util.Date | |
import org.apache.hadoop.hbase.client.HTable | |
import org.apache.hadoop.hbase.client.Scan |
# Knife Configuration File. | |
# | |
# This is a Ruby DSL to set configuration parameters for Knife's | |
# general options. The default location for this file is | |
# ~/.chef/knife.rb. If multiple Chef repositories are used, | |
# per-repository configuration files can be created. A per repository | |
# configuration file must be .chef/knife.rb in the base directory of | |
# the Chef repository. For example, | |
# | |
# ~/Development/chef-repo/.chef/knife.rb |
require 'socket' | |
require 'timeout' | |
class MCQuery | |
MAGIC_PREFIX = "\xFE\xFD" | |
PACKET_TYPE_CHALLENGE = "\x09" | |
PACKET_TYPE_QUERY = "\x00" | |
ID = "\x00\x00\x00\x00" | |
DEFAULTS = { | |
host: "localhost", |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r |
source 'https://rubygems.org' | |
gem 'rails', '~> 3.2.12' | |
gem "figaro", '~> 0.5.3' | |
gem 'inherited_resources' | |
# Upload | |
gem "paperclip" , '~> 3.4.0' | |
gem 'paperclip-ffmpeg', '~> 0.9.4' | |
gem 'aws-sdk', '~> 1.8.2' |
# http://xael.org/norman/python/python-nmap | |
# lets check for common ports using nmap | |
import nmap | |
nmScan = nmap.PortScanner() | |
nmScan.scan('127.0.0.1', '0-1023') | |
for port in nmScan['127.0.0.1']['tcp']: | |
thisDict = nmScan['127.0.0.1']['tcp'][port] | |
print 'Port ' + str(port) + ': ' + thisDict['product'] + ', v' + thisDict['version'] |