Skip to content

Instantly share code, notes, and snippets.

James Dunn protolif

Block or report user

Report or block protolif

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
@protolif
protolif / ff_roam.bat
Last active Feb 28, 2017
Batch script to enable Firefox roaming profile - MACL
View ff_roam.bat
@echo off
:: PURPOSE: Launches Firefox with a roaming profile so you can save cookies, bookmarks, and passwords again.
:: SETUP: Browse to \\maclsp\user\ and locate the folder with your username. If not found, right click an empty space
:: and create the folder with your MACL username. Save this file to your Desktop on MACL1-3 and/or in startup
:: scripts under Start > Programs > Startup to run it automatically on login.
echo Launching Firefox with roaming profile...
"\\maclprofiles\thinapps\firefox\Mozilla Firefox.exe" -profile \\maclsp\user\%USERNAME%\%USERNAME%.ffp -url http://maclinterface:8081/login.html
exit
@protolif
protolif / cw_refreshment.meta.js
Last active Feb 6, 2017
Charlie's Whiskey Refreshment
View cw_refreshment.meta.js
// ==UserScript==
// @name Charlie's Whiskey Refreshment
// @description Refreshes ConnectWise every 10 minutes. Take a drink or go back 3 spaces.
// @version 1.0.1
// @author James Dunn
// @namespace jdunn.netfor.com
// @grant none
// @include https://na.myconnectwise.net/*
// @icon https://pbs.twimg.com/profile_images/1176286377/scotch-glass.png
// @updateURL https://gist.github.com/protolif/b08caa1fa564e6b29cec322be0c4894b/raw/cw_refreshment.meta.js
View portalSkin.meta.js
// ==UserScript==
// @name Portal Skin
// @description Minimalist theme for Netfor SMP
// @version 1.2.1
// @author James Dunn
// @namespace jdunn.netfor.com
// @grant none
// @include https://intranet.netfor.net/*
// @include http://intranet.netfor.net/*
// @updateURL https://gist.githubusercontent.com/protolif/0f9bd5daf64307b7696647563d554e46/raw/portalSkin.meta.js
@protolif
protolif / autorun.bat
Created Aug 26, 2015
Make Windows XP command prompt mimic a *NIX shell
View autorun.bat
@echo off
REM INSTALL: Add the full path string of this file via regedit to:
REM \HKCU\Software\Microsoft\Command Processor\AutoRun
REM Set up aliases to mimic BASH/*NIX environment
doskey ls=dir /X /Q /TW /OG /P $*
doskey ll=dir $*
doskey cat=type $*
doskey ..=cd..
doskey grep=find "$1" $2
doskey mv=ren $*
@protolif
protolif / userContent.css
Last active Apr 21, 2016
Portal skin for Firefox
View userContent.css
/*
The MIT License (MIT)
Portal Lite Skin for Firefox v1.2
Copyright (c) 2015 - 2016 James Dunn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@protolif
protolif / Nuking-hard-drives-the-UNIX-way.sh
Created Aug 1, 2013
This shell script will fill your hard drive with random bits, and then zeros. It will do this seven times. It works on UNIX, Linux, and Mac. Make sure to change /dev/sda1 to your desired drive. For the extra paranoid, run truecrypt afterwards and burn the password. Cheers!
View Nuking-hard-drives-the-UNIX-way.sh
#!/bin/bash
echo "Beginning wipe"
for i in {1..7}
do
echo "Starting pass $i..."
dd if=/dev/urandom of=/sda1 bs=1M
dd if=/dev/zero of=/sda1 bs=1M
echo "Pass $i complete."
done
echo "Wipe complete."
@protolif
protolif / jewel_thief.rb
Created Oct 24, 2012
Trying to figure out the path to the images directory
View jewel_thief.rb
require "jewel_thief/version"
require "rubygems"
require "rubygame"
require "jewel_thief/game"
require "jewel_thief/player"
module JewelThief
Game.new
end
@protolif
protolif / picard-facepalm-ascii.txt
Created May 22, 2012
Captain Picard Facepalm ASCII
View picard-facepalm-ascii.txt
............................................________
....................................,.-'"...................``~.,
.............................,.-"..................................."-.,
.........................,/...............................................":,
.....................,?......................................................,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:"........./
..............?.....__.........................................:`.........../
............./__.(....."~-,_..............................,:`........../
View unexpected_do_block.txt
Morgan:scribblr proto$ which ruby
/usr/local/bin/ruby
Morgan:scribblr proto$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.2.0]
Morgan:scribblr proto$ bin/rake test
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require': /usr/local/src/scribblr/app/controllers/signature_controller.rb:3: syntax error, unexpected '\n', expecting tASSOC (SyntaxError)
/usr/local/src/scribblr/app/controllers/signature_controller.rb:45: syntax error, unexpected keyword_do_block, expecting keyword_end
company.users.each do |user|
^
/usr/local/src/scribblr/app/controllers/signature_controller.rb:53: syntax error, unexpected keyword_end, expecting $end
You can’t perform that action at this time.