Skip to content

Instantly share code, notes, and snippets.

@xntrik
xntrik / gist:2258712
Created March 31, 2012 02:22
BeEF installer for Amazon's Linux Image on EC2
Create your Amazon Linux EC2 Instance.
SSH in.
$ bash < <(curl -s https://raw.github.com/xntrik/beefcloud/master/beef-installer)
$ source ~/.bash_profile
$ cd beef
@xntrik
xntrik / gist:2886285
Created June 7, 2012 03:03
Example beef config with extension override
#
# Copyright 2012 Wade Alcorn [email protected]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@xntrik
xntrik / fuckppt.sh
Created June 28, 2012 13:40
cat content | ./fuckppt.sh | more
font="standard"
while read line
do
if [ "${line:0:2}" = "# " ]
then
font=`echo $line | awk '{print $2 }'`
else
missing=`echo $line | figlet -f $font | wc -l`
oneither=`echo $[24-missing]/2 | bc`
@xntrik
xntrik / gist:3114937
Created July 15, 2012 04:08
Ruxmon Perth July
When: Friday, July 20th, 2012
Where: ECU Bowls Club, Mt Lawley 2 Stancliffe St, Mt Lawley (http://labs.asteriskinfosec.com.au/ruxmonjulymap.jpg)
Time: 6:00PM
Registrations: No registrations required
Presentation 1:
Lloyd Mckie on Biosecurity
Biology has a role to play in security, the bacteria can do our encryption. Will this happen? There is a new necessity for this with the approaching concerns of oil depletion and reducing coal power production. Moore's law is reaching the physical limitations of our world with regard to recognising the magnetic signature of each transistor coupled with the potential new qbit processor we may see the silicon replaced by atoms.
@xntrik
xntrik / gist:3214492
Created July 31, 2012 07:24
Bunch o shit I went to try and get circos (and GD) working on my system
http://code.google.com/p/google-desktop-for-linux-mirror/downloads/detail?name=gd-2.0.35.tar.gz&can=2&q=
http://kempwire.com/tips/installing-gd-graphics-library-on-mac-os-x.html
https://groups.google.com/forum/#!topic/circos-data-visualization/6HzMnXbyf18
http://www.ifrankie.com/wp-uploads/installing_gd2_on_os_x_server.pdf
http://www.sharedproteomics.com/forum/showthread.php?325-Installing-GD-on-Mac-OSX-10.6 <-- I think this is what worked .. with some help from somewhere else
@xntrik
xntrik / gist:3214752
Created July 31, 2012 08:01
Getting Circos samples to work on Ulysses
cd ~/circos/circos-tools-0.16/tools/tableviewer
cat samples/table-02a.txt | bin/parse-table -conf samples/parse-table-02a.conf | bin/make-conf -dir data
#This populates the data dir
../../../circos-0.62-1/bin/circos -conf etc/circos.conf -outputfile test2.png
#This drops test2.png and .svg into the img/ folder.. PHEW
@xntrik
xntrik / gist:3366173
Created August 16, 2012 03:16
Working with Hex in Ruby
#!/usr/bin/env ruby
start = ARGV[0].to_s.hex
len = ARGV[0].to_s.length
count = 0
until count == ARGV[1].to_i
puts "%0#{len.to_s}x" % start
zeros = ""
@xntrik
xntrik / gist:3967940
Created October 28, 2012 07:07
Adding files to iTunes w/ Powershell
$iTunes = New-Object -comObject iTunes.Application
$iTunesLibrary = $iTunes.LibraryPlaylist
$iTunesLibrary.AddFile('C:\filename.m4v')
@xntrik
xntrik / gist:4143694
Created November 25, 2012 14:13
How I got CDN going with Rails 3.2 on Heroku
http://stackoverflow.com/questions/9907512/why-heroku-dont-use-the-good-manifest-yml
so i placed:
config.assets.initialize_on_precompile = false
in
config/application.rb
after i push, i then run:
heroku run rake assets:precompile
AND, for good measure:
@xntrik
xntrik / Intro
Created December 2, 2012 11:06
Batch job for Windows Powershell Movies/TV Shows via Handbrake into iTunes autoMAGICALLY
So I run a peculiar setup, ATV2 with my media coming from iTunes on a desktop, Windows 7 PC I never really touch
anymore. I know I could JB the ATV, or I could replace the PC with a NAS or some shit .. anyway, I'm lazy.
...
But not so lazy not to figure out how to make a crappy powershell script, hook it up in task scheduler under hstart
(http://www.ntwind.com/software/hstart.html), run it every 5 minutes against my TV / Movie folders, looking for new
files, then automatically converting them (with Handbrake) into the right format, and then automatically
adding them to iTunes.