Instantly share code, notes, and snippets.

View main.cpp
#include<cstdio>
#include<cstring>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include<unistd.h>
View image2xp.py
#
# translate an image file into the REXPaint file format
# or plain ascii
#
# requires: python 3+
# requires: pip install Pillow
#
# source: https://gist.github.com/mtvee/5629a2caa34dbf3ece95
# ---------------------------------------------------------------------------------
import os
View txt2xp.py
#
# translate a plain text file into the REXPaint file format
#
# NOTE: seems to come out rotated -90 for some reason
# writing order is off? idk
import struct
INFILE = 'plain_text.txt'
OUTFILE = 'fancy_text.xp'
View gist:a9677eea38312eaa4ead
func! UpdateBundles()
for path in split(&rtp,',')
if isdirectory(path . '/.git')
"echo path
echo system('git -C "' . path . '/" pull')
endif
endfor
endfunc
View fixtard.py
#!/usr/bin/env python2
# Some fucker infected all the php files on the server with by injecting some
# obfuscated bullshit at the start of each file. This script pulls out the
# crap and rewrites the file.
import os
import fnmatch
import re
infection = {}
View fossil.css
/* General settings for the entire page */
body {
margin: 0ex 1ex;
padding: 0px;
background-color: white;
font-family: verdana, ariel, sans-serif;
font-size: 13px;
}
a {