DO NOT SKIP THIS STEP We have already bricked a few laptops by switching from hybrid to discreet graphics mode before updating the BIOS.
After this I switched to discreet mode for installation. I don't know if that was necessary.
#!/bin/bash | |
# ocr-script.sh | |
# | |
# Useage: set this file as the post-processing script in the simple-scan preferences. No extra arguments needed. | |
# | |
# Requirements: | |
# - simple-scan | |
# - ocrmypdf | |
# | |
# For reference, at the time of writing the arguments from simple-scan are: |
DO NOT SKIP THIS STEP We have already bricked a few laptops by switching from hybrid to discreet graphics mode before updating the BIOS.
After this I switched to discreet mode for installation. I don't know if that was necessary.
At the time of writing, orientation locking is experimental and doesn't work in most cases. Recent versions of Chrome on Android succeed, and Firefox on Android may work in fullscreen mode. This code attempts to cover the various implementations and wrap them into one function, returning a Promise that is resolved on success and rejected on failure.
See:
#!/usr/bin/python | |
import os, time | |
import usb.core | |
import usb.util | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
from sys import exit | |
import math |
#!/usr/bin/ruby | |
# | |
# Backup script by Jack Senechal | |
# configuration variables | |
@source = "/home/jack" | |
@destination = "/media/Elements/Backups" | |
@end_of_week = "Friday" | |
@rsync_command = "rsync -av --delete" | |
@tar_command = "tar -cjvf" |
/* Called on document.ready */ | |
$(function () { | |
$("body *").replaceText(/\b([A-z]{4,})\b/g, scramble_inner ); | |
}); | |
/* Scramble the inner characters of a word */ | |
function scramble_inner(word) { | |
return word[0] | |
+ force_shuffle(word.slice(1, word.length - 1)) | |
+ word[word.length - 1]; | |
} |
#!/usr/bin/ruby | |
# | |
# Copyright (C) 2011 by Jack Senechal | |
# | |
# 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 | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
CmdUtils.makeSearchCommand({ | |
name: "Wolfram|Alpha", | |
synonyms: ["wolfram", "compute"], | |
icon: "http://www62.wolframalpha.com/favicon_calculate.png", | |
url: "http://www.wolframalpha.com/input/?i={QUERY}", | |
}); | |