Skip to content

Instantly share code, notes, and snippets.

💣
'); DROP TABLE statuses; --

Ian Littman iansltx

💣
'); DROP TABLE statuses; --
Block or report user

Report or block iansltx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am iansltx on github.
  • I am iansltx (https://keybase.io/iansltx) on keybase.
  • I have a public key whose fingerprint is E573 8C97 94FB 9EB7 5BBB D66B A837 4166 D3C2 1523

To claim this, I am signing this object:

@iansltx
iansltx / README.md
Last active Nov 15, 2017
Build a Bot - php[world] 2017
View README.md
@iansltx
iansltx / README.md
Last active Sep 7, 2017
Build a Bot - PNWPHP 2017
View README.md
@iansltx
iansltx / asns201704152300.json
Last active Apr 16, 2017
Mastodon Instance ASN Lookup
View asns201704152300.json
{
"mastodon.social": {
"asn": "12876",
"desc": "AS12876, FR"
},
"mastodon.xyz": {
"asn": "16276",
"desc": "OVH, FR"
},
"awoo.space": {
View GDP per state
If each state got one electoral college vote per 50B in GDP, rounded to the nearest 50B
CA - 48
TX - 33
NY - 29
FL - 18
IL - 15
PA - 14
OH - 12
NJ - 12
@iansltx
iansltx / ting.php
Last active Sep 23, 2016
Ting CSV parser
View ting.php
<?php
if ($argc < 4) {
die("Usage: php ting.php minutesXXX.csv messagesXXX.csv megabytesXXX.csv\n");
}
$people = [];
$voice = fopen($argv[1], 'r');
$sms = fopen($argv[2], 'r');
View chromium-os-docker.md

Chromium OS ft. Docker

Chromium OS is cool. Chromium OS with crouton is cooler. Chromium OS with Docker is even cooler. This is specifically a guide for the HP Chromebook 13 G1 (aka HP Spyder Chromebook), but I can't think of any reason it wouldn't work with other devices. The Chromebook Pixel 2 (2015), for example...as you'll notice, the guide this was forked from assumed that machine.

  1. Create a build environment
  2. Customize the kernel
  3. Build Chromium OS
  4. Flash Chromium OS to USB
  5. Install Chromium OS
@iansltx
iansltx / gen.php
Last active Jul 14, 2016
Generator Scratchpad
View gen.php
<?php
function gen($arg1) {
var_dump($b = yield $arg1 + 1);
var_dump($d = yield $b + 2);
$ret = $d + 2;
var_dump($ret);
return $ret;
}
View gitlab_archive.php
<?php
if ($argc < 3) {
error_log("Usage: php gitlab_archive.php <private_token> <namespaced path> <optional-branch-or-commit-sha> > archive.tar.gz"); die();
}
$token = $argv[1];
$path = $argv[2];
$ref = isset($argv[3]) ? $argv[3] : null;
@iansltx
iansltx / Dockerfile
Created Mar 1, 2016
runit + php7 dev server + better ctrl-c response Docker
View Dockerfile
FROM alpine:3.3
# install packages
RUN echo "@testing http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk add --update php7-common@testing php7-pdo_mysql@testing \
php7-pcntl@testing php7-json@testing php7-opcache@testing \
php7-mbstring@testing php7-fpm@testing php7@testing nginx runit@testing
# set up app
RUN mkdir /var/app
You can’t perform that action at this time.