Skip to content

Instantly share code, notes, and snippets.

View ioistired's full-sized avatar

io ioistired

View GitHub Profile
@ioistired
ioistired / charinfo.py
Last active November 21, 2017 18:36
RoboDanny's ?charinfo command as a shell script
#!/usr/bin/env python3.6
# encoding: utf-8
# Copyright 2015 Rapptz
# MIT Licensed
# Original source: https://github.com/Rapptz/RoboDanny/blob/c8fef9f07145cef6c05416dc2421bbe1d05e3d33/cogs/meta.py#L57-72
import unicodedata
def charinfo(characters):
@ioistired
ioistired / npm-acronyms.txt
Last active February 15, 2022 19:54
All the things that "npm" stands for. Taken from https://npmjs.org
Nauseating Pumpkin Mush
Nebulous Pumpkin Moons
Neurotic Pumpkin Murderer
Neutral Pumpkin Mews
Never-ending Pumpkin Mulch
Nice Pumpkin Machete
Nifty Pumpkin Mill
Ninja Pumpkin Mutants
Nitrogen Pumpkin Mulch
Nocturnal Pumpkin Maelstrom
@ioistired
ioistired / tack_h.py
Created August 19, 2017 18:03
Convert bytes to human readable units
#!/usr/bin/env python3
# encoding: utf-8
import math
def human_readable_base2(bytes):
units = ('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB')
return human_readable(bytes, 1024, units)
@ioistired
ioistired / bots.discord.pw-stats.py
Last active August 9, 2017 04:05
Update your bot stats with bots.discord.pw
# for discord.py users
async def update_bot_stats():
"""inform bots.discord.pw of how many guilds the bot is in"""
async with aiohttp.ClientSession() as session:
print('Updating stats.')
print('Server count:', str(len(bot.servers)))
print('Auth token:', bot.discordpw_api_token)
print('Sending', '{{"server_count": {}}}'.format(len(bot.servers)))
async with session.post(

Keybase proof

I hereby claim:

  • I am bmintz on github.
  • I am bmintz (https://keybase.io/bmintz) on keybase.
  • I have a public key ASBgoChtbIICd-BOZN7ZFs7vuk1bdIthmqP3L7JOTiKlvAo

To claim this, I am signing this object:

#!/use/bin/env sh
# http://www.mobileread.com/forums/showthread.php?t=118472
#First, remount root as read/write
mntroot rw
cd /opt
feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable
wget $feed/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_0.99.163-10_arm.ipk ./data.tar.gz | tar -C / -xzvf -
mkdir -p /opt/etc/ipkg
@ioistired
ioistired / copypass.sh
Created November 8, 2015 22:28
Copy a secure password to the clipboard
#!/usr/bin/env bash
# Copies a secure password to the clipboard.
# Licensed under the Expat license:
: <<LICENSE
Copyright (C) 2015 Benjamin Mintz
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
@ioistired
ioistired / jsfuckhello.js
Created February 21, 2015 05:03
JSFuck Hello World
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+
@ioistired
ioistired / sha256sums.txt
Created January 7, 2015 06:29
SHA256sums of my Heimdall packages (because AndroidFileHost is stuck in the past)
c78cdbc82ee18532b2c494c041e98cb5fa518d028ebcc00c6edd79f53a2b30db MDL-ModemOnly.tar.gz
23f11ba10917921208bed1d510b4025ef5d816e16a8f51ec33b5b59ce2f9bbea MF9-ModemOnly.tar.gz
db9f8a179e40d398eafe96f9d58cf009a475fa05c93b3547a6f0cf640d1a635d NG2-ModemOnly.tar.gz
9e3e438523fa8fe047524d566c8b2563945827202025f3cd26535439b18c6ed2 NG2-complete-withBL.tar.gz