Skip to content

Instantly share code, notes, and snippets.

View strangnet's full-sized avatar
🐶
dogwned

Patrick Strang strangnet

🐶
dogwned
View GitHub Profile
@strangnet
strangnet / netstat_loop.rb
Created July 12, 2012 15:59
Netstat loop to log the udp out to port 1
#!/bin/ruby
while (true)
f = IO.popen('netstat -anp udp')
found = false
while (line = f.gets)
linesplit = line.split
if (/udp/ =~ linesplit[0])
local = linesplit[3]
foreign = linesplit[4]
@strangnet
strangnet / setup.txt
Created September 21, 2012 09:01
Setting up work computer (OS X)
Install Xcode from App Store
- install command line tools from Xcode preferences
Get homebrew: ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
- brew doctor
brew install hg
brew install git
brew install nodejs
brew install rbenv
brew install ruby-build
@strangnet
strangnet / gist:5053050
Created February 28, 2013 00:01
ruby 2 rails 4 install with homebrew
brew install openssl
brew install ruby-build
brew install rbenv
export CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`"
rbenv install 2.0.0-p0
rbenv rehash
rbenv global 2.0.0-p0
gem install bundler
gem install rails -v 4.0.0.beta1 --no-ri --no-rdoc
rbenv rehash
@strangnet
strangnet / install.sh
Last active December 15, 2015 17:20
Setup of VPS, Ubuntu 12.04
locale-gen en_US en_US.UTF-8 sv_SE.UTF-8
dpkg-reconfigure locales
apt-get update
apt-get upgrade
apt-get install curl git-core python-software-properties
#nginx
add-apt-repository ppa:nginx/stable
@strangnet
strangnet / hgflow
Last active December 16, 2015 00:19
Getting ready for hgflow
# Enter your directory of choice
cd ~/src/
# clone hgflow
hg clone ssh://[email protected]/strang/hgflow
# edit your ~/.hgrc by adding
[extensions]
hgflow=~/src/hgflow/src/hgflow.py
# To make sure SourceTree uses the same hgflow
@strangnet
strangnet / gist:6328161
Created August 24, 2013 13:32
Scala 2.10.2 and java 7 in ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
http://www.scala-lang.org/files/archive/scala-2.10.2.tgz
tar zxf scala-2.10.2.tgz
sudo mv scala-2.10.2 /usr/share/scala
sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade
pip-2.7 install numpy
brew install gdal
R
install.packages("plotKML")
q()
R < gpx.r
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd
sudo apt-get install git
@strangnet
strangnet / jubel.txt
Last active February 14, 2017 08:31
10-jubel
XKuG6jnMNK7O0xGCv6d8uQ==
Decrypt using Blowfish, https://www.tools4noobs.com/online_tools/decrypt/
Key is the destination