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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accerciser | |
ack | |
acpi | |
acpica | |
acroread | |
adobe-source-code-pro-fonts | |
aisleriot | |
alsa-utils | |
android-apktool | |
android-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function update() | |
{ | |
// mysqli object | |
$db = $this->getDb(); | |
$statement = $db->prepare('CALL some_stored_procedure( ?,?,? )'); | |
if ($statement === false) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$context_options = array | |
( | |
'http' => array | |
( | |
'method' => 'POST', | |
'header' => self::get_request_header(), | |
'content' => json_encode(self::get_payload()), | |
), | |
'ssl' => array | |
( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Parse data in the form of: | |
* Key: Value\r\nKey: Value\r\n | |
* | |
* @param string $string | |
* @return array | |
*/ | |
function parseRawHeaders($string) { |