Skip to content

Instantly share code, notes, and snippets.

Thomas Rooney ThomasRooney

Block or report user

Report or block ThomasRooney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ThomasRooney
ThomasRooney / discover-chromecast.sh
Last active Sep 29, 2016
Discover Chromecast with devicename via mDNS
View discover-chromecast.sh
#! /bin/sh
if ! which dns-sd > /dev/null
then
echo "Requires dns-sd"
exit
fi
if (( $# < 1 )) ; then
echo "Requires devicename as an argument"
View keybase.md

Keybase proof

I hereby claim:

  • I am thomasrooney on github.
  • I am thomasrooney (https://keybase.io/thomasrooney) on keybase.
  • I have a public key ASBoX6Ce4RakCSUXiabeT0cTZCZmOvo8-NGuhm68-Y8lbQo

To claim this, I am signing this object:

View gist:9233098
impssh() {
shellServerIndex=$((RANDOM%4+1))
username="tr111"
shellServer=shell$shellServerIndex.doc.ic.ac.uk
if (( $# >= 1 )) ; then
ssh -t $username@$shellServer "ssh $1"
View BLOCKS-README.md

How to run the blocks project

Building

from the root of the repository (installs packages/databases as per requirement, recommend doing on a VM)

sudo ./deployment/provisioning/common.sh ./deployment/puppet/gamenode/
@ThomasRooney
ThomasRooney / rubyserve-oneline
Created Jan 8, 2014
ruby http serve oneliner
View rubyserve-oneline
ruby -rsocket -e "require 'webrick';include WEBrick;s = HTTPServer.new(:Port => 80, :DocumentRoot => Dir::pwd);trap(\"INT\"){ s.shutdown };s.start;"
ruby -rsocket -e "require 'webrick';include WEBrick;s = HTTPServer.new(:Port => 8080, :DocumentRoot => \"/opt/blocks/client/bin\");trap(\"INT\"){ s.shutdown };s.start;"
146.169.44.231
You can’t perform that action at this time.