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 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[@]} |
#!/bin/sh | |
make clean; # For those rebuilds | |
phpize; | |
autoreconf --install --force; # Stupid autotools/libtool version incompatibilities | |
./configure; | |
make; | |
sudo make install; |
<?php | |
function Zip($source, $destination) | |
{ | |
if (extension_loaded('zip') === true) | |
{ | |
if (file_exists($source) === true) | |
{ | |
$zip = new ZipArchive(); |
<?php | |
define('SAFE', 1); | |
define('EXTREME', 2); | |
define('EXTREME_SAVE_COMMENTS', 4); | |
define('EXTREME_SAVE_PRE', 3); | |
function minify($html, $level=2) | |
{ | |
switch((int)$level) |
<?php | |
include("kana.php"); | |
if(isset($_GET['in']) && isset($_GET['action'])) | |
{ | |
$in = $_GET['in']; | |
if($_GET['action'] == "to_hira") | |
{ | |
$out = Kana::to_hiragana($in); |
<?php declare(strict_types=1); | |
/** | |
* XML <=> PHP Array codec | |
*/ | |
final class XML { | |
/** | |
* XML representation of the data | |
* |
I hereby claim:
To claim this, I am signing this object:
#!/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; |
<?php | |
/** | |
* Creates directories based on the array given | |
* | |
* @param array $structure | |
* @param string $path | |
* @return void | |
*/ | |
function make_dir_tree($structure, $path=__DIR__) |