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 / 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 / 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 / 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 / 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 / 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 / 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:
#!/usr/bin/env bash
#
# This script installs shoal onto SL6 and configures
# it to connect to the production shoal instance used
# by the ATLAS Cloud group.
#
#
curl http://shoal.heprc.uvic.ca/repo/shoal.repo -o /etc/yum.repos.d/shoal.repo
@igable
igable / discover_external_address.log
Created March 25, 2014 15:48
perfSonar PS external address log
14/01/14 20:43:55 (1288) INFO> discover_external_address:253 main:: - No primary address found
2014/01/14 20:43:55 (1288) INFO> discover_external_address:260 main:: - No primary ipv4 address found
2014/01/14 20:43:55 (1288) INFO> discover_external_address:267 main:: - No primary ipv6 address found
2014/01/29 17:37:09 (1236) INFO> discover_external_address:147 main:: - 132.206.245.252 is ipv4
2014/01/29 17:37:09 (1236) INFO> discover_external_address:149 main:: - 132.206.245.252 has a DNS name: ps-latency.clumeq.mcgill.ca
2014/01/29 17:37:09 (1236) INFO> discover_external_address:151 main:: - 132.206.245.252 isn't private or we're okay with private addresses
2014/01/29 17:37:09 (1236) INFO> discover_external_address:249 main:: - Selected em2/ps-latency.clumeq.mcgill.ca as the primary address
2014/01/29 17:37:09 (1236) INFO> discover_external_address:256 main:: - Selected em2/ps-latency.clumeq.mcgill.ca as the primary ipv4 address
2014/01/29 17:37:09 (1236) INFO> discover_external_address:267 main:: - No primar
2014/03/25 11:53:16 (1510) ERROR> RegularTesting.pm:249 perfSONAR_PS::NPToolkit::Config::RegularTesting::reset_state - Failed to load landmarks file: Failed to parse XML :<pingertopo:topology xmlns:pingertopo="http://ogf.org/ns/nmwg/tools/pinger/landmarks/1.0/" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/" xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070707/" xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070707/"><pingertopo:domain id="urn:ogf:network:domain=mesh_agent_WLCG_sites-0"><nmtb:comments>Ping Test Between WLCG Latency Hosts</nmtb:comments><pingertopo:node id="urn:ogf:network:domain=mesh_agent_WLCG_sites-0:node=ps.lhcopn-ps.sara.nl"><nmtb:description>NL-T1 Latency Host</nmtb:description><nmtb:hostName>ps.lhcopn-ps.sara.nl</nmtb:hostName><nmwg:parameters><nmwg:parameter name="packetSize">1000</nmwg:parameter><nmwg:parameter name="count">10</nmwg:parameter><nmwg:parameter name="packetInterval">1</nmwg:parameter><nmwg:parameter name="ttl" /><nmwg:parameter name="measurementPerio
This file has been truncated, but you can view the full file.
2014/01/14 20:43:55 (1288) INFO> discover_external_address:253 main:: - No primary address found
2014/01/14 20:43:55 (1288) INFO> discover_external_address:260 main:: - No primary ipv4 address found
2014/01/14 20:43:55 (1288) INFO> discover_external_address:267 main:: - No primary ipv6 address found
2014/01/29 17:37:09 (1236) INFO> discover_external_address:147 main:: - 132.206.245.252 is ipv4
2014/01/29 17:37:09 (1236) INFO> discover_external_address:149 main:: - 132.206.245.252 has a DNS name: ps-latency.clumeq.mcgill.ca
2014/01/29 17:37:09 (1236) INFO> discover_external_address:151 main:: - 132.206.245.252 isn't private or we're okay with private addresses
2014/01/29 17:37:09 (1236) INFO> discover_external_address:249 main:: - Selected em2/ps-latency.clumeq.mcgill.ca as the primary address
2014/01/29 17:37:09 (1236) INFO> discover_external_address:256 main:: - Selected em2/ps-latency.clumeq.mcgill.ca as the primary ipv4 address
2014/01/29 17:37:09 (1236) INFO> discover_external_address:267 main:: - No prim