Skip to content

Instantly share code, notes, and snippets.

View syndrill's full-sized avatar
🎯
Focusing

Syndril Cullwyn syndrill

🎯
Focusing
View GitHub Profile
@syndrill
syndrill / pomfload
Last active February 25, 2020 20:39 — forked from shizmob/pomfload
simple pomf (lolisafe) uploader
#!/bin/sh
downpomf="https://a.safe.moe/"
uppomf="https://safe.moe/api/upload"
token="CHANGE_TOKEN"
if test $# -lt 1 ; then
echo "Usage: `basename $0` FILE [FILE...]"
exit 1
fi
@syndrill
syndrill / xxtea.py
Last active December 8, 2019 21:55 — forked from shuax/xxtea.py
cocos2d-x implementation of XXTEA
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import struct
_DELTA = 0x9E3779B9
def _long2str(v, w):
n = (len(v) - 1) << 2
if w: