Skip to content

Instantly share code, notes, and snippets.

Christian Nicolai cmur2

Block or report user

Report or block cmur2

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
View my-npt-dhcp6c-script
#!/bin/bash
INSIDE_PREFIX="fdxx::/64"
OUTSIDE_INTERFACE="eth2"
DUMMY_INTERFACE="dummypd0"
OUTSIDE_PREFIX_FILE="/var/run/my-npt-outside-prefix"
logger -p info -t my-npt "my-npt-dhcp6c-script invoked"
OLD_OUTSIDE_PREFIX=""
View trafficMtr.sh
#!/usr/bin/expect
set timeout 20
set name [lindex $argv 0]
set user [lindex $argv 1]
set password [lindex $argv 2]
spawn telnet $name
expect "login: "
send "$user\n"
@cmur2
cmur2 / gist:4356018
Created Dec 21, 2012
anti-NoScript XSS entry for printfriendly.com
View gist:4356018
^http://pdf\.printfriendly\.com/pdfs/make
@cmur2
cmur2 / material_renamer.rb
Created Aug 25, 2012
Sketchup MaterialRenamer
View material_renamer.rb
# License: 2-clause BSD
require 'sketchup.rb'
class MaterialRenamer
def initialize
am = Sketchup.active_model
sel_faces = am.selection.select { |e| e.typename == 'Face' }
sel_materials = sel_faces.collect { |f| f.material }.uniq
@cmur2
cmur2 / point2coords.rb
Created Aug 25, 2012
Sketchup PointCoordinates tool
View point2coords.rb
# License: 2-clause BSD
require 'sketchup.rb'
class PointCoordinatesTool
def initialize
end
def activate
@last_pos = Sketchup::InputPoint.new
@cmur2
cmur2 / diff.rb
Created Oct 9, 2011
Ruby command line diff based on Diff::LCS
View diff.rb
#!/usr/bin/ruby -Ku
DEBUG = false
require 'rubygems'
require 'diff/lcs'
class OO
def green; "\e[42m\e[1;37m" end
def red; "\e[41m\e[1;37m" end
@cmur2
cmur2 / options.md
Created Oct 4, 2011
Firefox options
View options.md

browser.urlbar.formatting.enabled = false

browser.urlbar.maxRichResults

browser.urlbar.trimURLs = false

gfx.font_rendering.cleartype_params.rendering_mode = 0

0 = default, 1 = aliased, 2 = GDI Classic, 3 = GDI Natural, 4 = Natural, 5 = Natural Symmetric
You can’t perform that action at this time.