I hereby claim:
- I am timw4mail on github.
- I am timw4mail (https://keybase.io/timw4mail) on keybase.
- I have a public key ASC7SlmqpsRmOuaFxqzF6TVO8jxYqGE-wpkawVHCwgehHgo
To claim this, I am signing this object:
<?php | |
$animals = [ | |
'dog' => '🐶', | |
'cat' => '🐱', | |
'mouse' => '🐭' | |
]; | |
?> | |
<script> | |
let wildAnimals = { |
#!/bin/bash | |
docker pull tootsuite/mastodon:latest; | |
docker-compose down; | |
docker-compose run --rm web bundle exec rake db:migrate; | |
docker-compose run --rm web bundle exec rake assets:precompile; | |
docker-compose up -d; |
I hereby claim:
To claim this, I am signing this object:
<?php declare(strict_types=1); | |
/** | |
* XML <=> PHP Array codec | |
*/ | |
final class XML { | |
/** | |
* XML representation of the data | |
* |
#!/bin/sh | |
make clean; # For those rebuilds | |
phpize; | |
autoreconf --install --force; # Stupid autotools/libtool version incompatibilities | |
./configure; | |
make; | |
sudo make install; |
<?php declare(strict_types=1); | |
function createDataObject (int $min, int $max, array $blacklist = []): array | |
{ | |
$output = []; | |
$index = 0; | |
for ($i = $min; $i <= $max; $i++) | |
{ | |
$n = base_convert((string)$i, 10, 16); |
#!/usr/bin/env bash | |
set -euo pipefail | |
declare threads=`getconf _NPROCESSORS_ONLN` | |
optimise () { | |
declare -a exts=("${!1}") | |
declare msg=$2 | |
for ext in ${exts[@]} |
/** | |
* Pure JS JSON Parser | |
* | |
* @see https://lihautan.com/json-parser-with-javascript/ | |
* @param {string} str | |
*/ | |
function parseJSON(str) { | |
let i = 0; | |
const value = parseValue(); |
#!/bin/bash | |
set -euo pipefail | |
# Adapted from: https://wiki.gentoo.org/wiki/GRUB_on_Open_Firmware_(PowerPC) | |
# Re-generate grub.cfg | |
grub-mkconfig -o /boot/grub/grub.cfg | |
# Make new OF grub img | |
grub-mkimage --prefix=/boot/grub --format=powerpc-ieee1275 --config=/boot/NWBB/grub-initial.cfg --output=/boot/NWBB/grub.img `cat /boot/NWBB/grub_mod-minimal.list` |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Image Viewer</title> | |
<style> | |
* {margin: 0} | |
img { | |
max-width: 100%; | |
<?php if (empty($_GET['zoom'])): ?> | |
max-height: 900px; |