Skip to content

Instantly share code, notes, and snippets.

View imnotjames's full-sized avatar
🍏
GRAPPLE

James Ward imnotjames

🍏
GRAPPLE
View GitHub Profile

Installing Arch Linux on the JTS Securebook 5

The Justice Tech Solutions Securebook 5 (known colloquially as the "prisonbook") is a laptop designed for use in correctional facilities and educational institutes. They have a Celeron processor, 4GB of memory, 54WH batteries, and some of them even have wifi. And the case is made of clear plastic.

securebook-5

import time
import board
import neopixel
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=0.2, auto_write=False)
def color_chase(color, wait):
for i in range(10):
pixels[i] = color
time.sleep(wait)
@imnotjames
imnotjames / PKGBUILD
Last active May 30, 2022 01:44
gbdk-2020 binary pkgbuild
pkgname=gbdk-2020-bin
_pkgname=gbdk
pkgver=4.0.6
pkgrel=1
pkgdesc="An updated version of Game Boy Development Kit - including patched SDCC (Binary Version)"
url="https://github.com/gbdk-2020/gbdk-2020"
license=('MIT')
arch=('x86_64')
conflicts=('gbdk' 'gbdk-2020' 'lcc' 'sdcc')
source=("https://github.com/gbdk-2020/gbdk-2020/archive/refs/tags/${pkgver}.tar.gz")
accerciser
ack
acpi
acpica
acroread
adobe-source-code-pro-fonts
aisleriot
alsa-utils
android-apktool
android-tools
### Keybase proof
I hereby claim:
* I am imnotjames on github.
* I am imnotjames (https://keybase.io/imnotjames) on keybase.
* I have a public key whose fingerprint is 1853 ABA2 946A CEF8 9693 6C99 D335 E3AE 3B71 D896
To claim this, I am signing this object:
#!/usr/bin/env bash
DELETE_OLDER_THAN_DAYS="0"
RECYCLE_ROOT_DIRECTORY="./"
RECYCLE_DIRECTORY=".recycle"
VERBOSE=false
# Find all directories within the $RECYCLE_ROOT_DIRECTORY, named $RECYCLE_DIRECTORY.
<?php
public function update()
{
// mysqli object
$db = $this->getDb();
$statement = $db->prepare('CALL some_stored_procedure( ?,?,? )');
if ($statement === false) {
<?php
public function update()
{
$db = $this->getDb();
$statement = $db->prepare('CALL update_myvar_newsitem( ?,?,?,? )');
if ($statement === false) {
throw new \Exception("Error retrieving newsitem rows: " . $db->error);
$context_options = array
(
'http' => array
(
'method' => 'POST',
'header' => self::get_request_header(),
'content' => json_encode(self::get_payload()),
),
'ssl' => array
(
@imnotjames
imnotjames / gist:68b3b26b21f13caf52fb
Last active August 29, 2015 14:02
Some Awful Same Origin Defeater
<?php
/**
* Parse data in the form of:
* Key: Value\r\nKey: Value\r\n
*
* @param string $string
* @return array
*/
function parseRawHeaders($string) {