Skip to content

Instantly share code, notes, and snippets.

@Epicyon
Epicyon / Castle.xml
Last active September 15, 2015 15:40 — forked from kwmt/Castle.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>
@Epicyon
Epicyon / makeapp.sh
Last active August 29, 2015 14:24 — forked from demonbane/makeapp.sh
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
# Clone rbenv into ~/.rbenv
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv
# Add rbenv to your PATH
# NOTE: rbenv is *NOT* compatible with rvm, so you'll need to
# remove rvm from your profile if it's present. (This is because
# rvm overrides the `gem` command.)
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile
exec $SHELL
require 'net/netconf/jnpr'
require 'junos-ez/stdlib'
require 'junos-ez/srx'
login = { :target => 'vsrx', :username => 'jeremy', :password => 'jeremy1', }
### open a NETCONF session to the SRX device
ndev = Netconf::SSH.new( login )
@Epicyon
Epicyon / shared.patch
Created January 2, 2013 20:20
Patch for shared.c to build dynamic library on OSX.
26c26
< EXPORT int export_crypto_sign_edwards25519sha512batch_(unsigned char * a,unsigned long long * b,const unsigned char * c,unsigned long long d,const unsigned char * e) { return crypto_sign_edwards25519sha512batch(a,b,c,d,e); }
---
> EXPORT int export_crypto_sign_edwards25519sha512batch(unsigned char * a,unsigned long long * b,const unsigned char * c,unsigned long long d,const unsigned char * e) { return crypto_sign_edwards25519sha512batch(a,b,c,d,e); }
@Epicyon
Epicyon / naclsharedlib.txt
Created January 2, 2013 20:14
Build shared NaCL (Crypto) on OSX 10.8.2
# Building NaCL shared library on OSX 10.8.2
# Pulled mostly from the NaCL shared library page: http://wiki.ucis.nl/NaCl/Shared
# Download and extract the NaCl sourcecode:
wget -O- http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2 | bunzip2 | tar -xf -
cd nacl-20110221
# Remove some implementations that do not want to be relocatable (it will fall back to another implementation)
rm -r crypto_onetimeauth/poly1305/amd64
# Patch the compiler commands to create relocatable code
# (OS X) be sure to use gnu sed ( brew install gnu-sed ). Apple sed complained incessantly.
gsed -i "s/$/ -fPIC/" okcompilers/c
@Epicyon
Epicyon / gist:3827512
Created October 3, 2012 15:18
NET: RPM Probe
set services rpm probe probe-name test site probe-type tcp-ping
set services rpm probe probe-name test site target address 10.10.10.10
set services rpm probe probe-name test site probe-interval 30
set services rpm probe probe-name test site test-interval 180
set services rpm probe probe-name test site source-address 10.10.1.1
set services rpm probe probe-name test site routing-instance INSTANCE
set services rpm probe probe-name test site data-size 65507