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
logger -p info -t my-npt "my-npt-dhcp6c-script invoked"
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 / gist:4356018
Created Dec 21, 2012
anti-NoScript XSS entry for
View gist:4356018
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 = { |e| e.typename == 'Face' }
sel_materials = sel_faces.collect { |f| f.material }.uniq
cmur2 / point2coords.rb
Created Aug 25, 2012
Sketchup PointCoordinates tool
View point2coords.rb
# License: 2-clause BSD
require 'sketchup.rb'
class PointCoordinatesTool
def initialize
def activate
@last_pos =
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 /
Created Oct 4, 2011
Firefox options

browser.urlbar.formatting.enabled = false


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.