Skip to content

Instantly share code, notes, and snippets.

View igable's full-sized avatar

Ian Gable igable

  • Stardog
  • Victoria, Canada
View GitHub Profile
@igable
igable / iptables
Created February 26, 2014 17:28
perfSonar-PS default iptables rules 3.2.2
# perfSONAR Toolkit Firewall Config v1.0
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
# convenience for logging things we want to specifically deny
#-N DENYLOG
#-A DENYLOG -j LOG --log-prefix DENIED_HOST:
@igable
igable / owamp_bwctl.log
Created February 25, 2014 20:35
Excessive logging on perfSonar-PS latency testing host
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
Feb 23 03:37:09 ps-latency powstream[29897]: OWPScheduleContextGenerateNextDelta: Schedule complete
@igable
igable / ndt-3.6.5.2-osx-10.9.patch
Created December 22, 2013 02:14
With the new default secure strlcpy/strlcat functions in 10.9 web100clt no longer builds on 10.9. This patch removes the offending package defined functions.
diff --git a/src/strlutils.c b/src/strlutils.c
index 01e0710..0ec23a6 100644
--- a/src/strlutils.c
+++ b/src/strlutils.c
@@ -19,66 +19,4 @@
#include <sys/types.h>
#include <string.h>
-/*
- * Copy src to string dst of size siz. At most siz-1 characters
@igable
igable / watch.rb
Last active December 31, 2015 16:29
The code below is taken entirely from a post by Brett Terpstra located at: http://brettterpstra.com/2011/03/07/watch-for-file-changes-and-refresh-your-browser-automatically/ This version below is modified to work better with Jekyll (see comment below)
#!/usr/bin/env ruby
# watch.rb by Brett Terpstra, 2011 <http://brettterpstra.com>
# with credit to Carlo Zottmann <https://github.com/carlo/haml-sass-file-watcher>
trap("SIGINT") { exit }
if ARGV.length < 2
puts "Usage: #{$0} watch_folder keyword"
puts "Example: #{$0} . mywebproject"
exit
@igable
igable / web100clt-built-error.log
Created December 9, 2013 22:04
Build error which occurs when trying to build web100clt 3.6.5.2 on OSX 10.9 (Mavericks).
In file included from utils.c:24:
./strlutils.h:31:1: error: expected parameter declarator
strlcpy(char *dst, const char *src, size_t siz);
^
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
@igable
igable / gist:7344884
Created November 6, 2013 22:01
Error message when trying to being up a tagged MTU 9000 (i.e. Jumbo Frame) on Intel X520 10GE card.
[root@ps-bandwidth ~]# ifup eth1.1601
Added VLAN with VID == 1601 to IF -:eth1:-
SIOCSIFMTU: Numerical result out of range
@igable
igable / floodlight_error.txt
Last active December 26, 2015 15:59
Error message received when running the OLiMPS OpenFlow Controller. On Ubuntu 12.04.3 with 'default-jre-headless' installed.
igable@floodlight:~/ofcontroller$ ./ofcontroller.sh
Starting floodlight server ...
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/floodlightcontroller/core/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
@igable
igable / cloudscheduler.log
Created May 24, 2013 05:21
You get the following from grep 'Booting' /var/log/cloudscheduler.log
2013-05-23 14:32:20,430 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184724.0#1369342524 on: Quicksilver
2013-05-23 14:32:33,449 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184724.0#1369342524 on: Quicksilver
2013-05-23 14:32:46,471 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184724.0#1369342524 on: Quicksilver
2013-05-23 14:32:56,485 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184712.0#1369341424 on: nectar
2013-05-23 14:32:59,303 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184725.5#1369342526 on: Hermes
2013-05-23 14:33:02,316 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184710.3#1369341423 on: gridppcl00
2013-05-23 14:33:13,973 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184719.8#1369342159 on: FGHotel
2013-05-23 14:33:17,988 - DEBUG - Scheduler - Booting VM for job condor.heprc.uvic.ca#184718.25#1369341799 on: nectar
2013-05-23 14:33:20,540 - DEBUG - Scheduler - Booting VM for job co
Interval Since Last Panic Report: 178655 sec
Panics Since Last Report: 1
Anonymous UUID: 56B0B6C2-3F91-551A-FD09-49DF719282E4
Tue Apr 30 15:30:41 2013
panic(cpu 2 caller 0xffffff7f86f987f2): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff80f9bdd000 0x0a5480a2, D0, P3/4
Backtrace (CPU 2), Frame : Return Address
0xffffff8014a63220 : 0xffffff800681d626
0xffffff8014a63290 : 0xffffff7f86f987f2
0xffffff8014a63350 : 0xffffff7f870953b9
Interval Since Last Panic Report: 158555 sec
Panics Since Last Report: 2
Anonymous UUID: 56B0B6C2-3F91-551A-FD09-49DF719282E4
Fri Apr 26 11:31:13 2013
panic(cpu 0 caller 0xffffff7f96b987f2): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff8117dda000 0x0a5480a2, D0, P3/4
Backtrace (CPU 0), Frame : Return Address
0xffffff8107253220 : 0xffffff801641d626
0xffffff8107253290 : 0xffffff7f96b987f2
0xffffff8107253350 : 0xffffff7f96c953b9