Skip to content

Instantly share code, notes, and snippets.

Tor Røttum torrottum

Block or report user

Report or block torrottum

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
torrottum /
Created Feb 11, 2014
EOS Utility installer for OS X since Canon only allows to update exisiting installs
set -o pipefail
if [[ -z $1 ]]; then
echo "Missing EOS Updater Utility dmg argument";
echo "Usage: "
echo "$0 path-to-eos-utility.dmg"
echo "For example: "
echo "./ eu2.13.40x-updater.dmg"
torrottum / ItsLearning_saveasdraft_fix.css
Last active Jan 4, 2016
Userstyle: It's Learning "Save as draft" button fix
View ItsLearning_saveasdraft_fix.css
Userstyle to "fix" the annoying save as draft button on It's Learning.
Why make it red and move it to the right?
So I don't click the stupid button unless I absolutely want to.
(It was placed where the submit button was,
and my muscle memory clicks it when I want to deliver assignments)
#AnswerCtrl_FormButtons_submitbutton {
torrottum /
Created Jul 7, 2016
Remove uploads from WordPress that doesn't exist in the database
#!/usr/bin/env python3
from subprocess import Popen,PIPE,STDOUT
import sys
import os
Removes all WordPress attachments that doesn't exist in the database
You need to be inside your uploads folder
RUN AT YOUR OWN RISK! (You should probably take a backup of the uploads dir)
View INFO283-ebook-navigation.js
// ==UserScript==
// @name AI: Foundations of Computational Agents key navigation
// @namespace
// @version 0.1
// @description Allows you to use arrow keys or vi-style (hkl) keys to navigate the Artificial Intelligence: Foundations of Computational Agents book
// @author Tor Røttum
// @match*
// @grant none
// ==/UserScript==
You can’t perform that action at this time.