Skip to content

Instantly share code, notes, and snippets.

@zeratax
zeratax / dabblet.css
Created July 23, 2013 20:56
NeonByte NavBar
/**
* NeonByte NavBar
*/
body{
background-color: #555555;
}
a {
font-size:100%;
vertical-align:baseline;

Keybase proof

I hereby claim:

  • I am zeratax on github.
  • I am zeratax (https://keybase.io/zeratax) on keybase.
  • I have a public key whose fingerprint is 44F7 B797 9D3A 27B1 89E0 841E 8333 735E 784D F9D4

To claim this, I am signing this object:

@zeratax
zeratax / index.html
Last active September 6, 2017 16:21
wallpaper_generator
<div class="background"></div>
<div class="widget">
<div class="center">
<h1>漢字</h1>
<img id="object">
</div>
</div>
<div class="info">
<p>Source:
<a href="https://danbooru.donmai.us/posts/2735908" target="_blank">
@zeratax
zeratax / bitmap2coordinates.py
Last active May 3, 2017 17:49
Converts a line in a bitmap to 2d coordinates
from PIL import Image
from matplotlib import pyplot as plt
import numpy as np
# Edit these values
file = "quecksilber_graphonly.BMP"
line_color = np.array([0, 192, 192])
# colors in rgb
black = np.array([0, 0, 0])
white = np.array([255, 255, 255])
@zeratax
zeratax / gimages.py
Last active December 30, 2022 09:53
get first result from google image search
from bs4 import BeautifulSoup
import requests
def get_google_img(query):
"""
gets a link to the first google image search result
:param query: search query string
:result: url string to first result
"""
@zeratax
zeratax / repeat_messages.py
Created September 24, 2017 20:43
resends deleted discord messages cos some people really over do it...
import discord
import asyncio
from datetime import datetime
import time
client = discord.Client()
@zeratax
zeratax / cantor.pdf
Last active June 19, 2018 14:35
Cantor's diagonal argument
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zeratax
zeratax / bot.py
Last active March 18, 2018 02:25
fancy discord nicks
import discord
import asyncio
import cool_names
client = discord.Client()
invite = "https://discordapp.com/api/oauth2/authorize"
permissions = "201326592"
@client.event
@zeratax
zeratax / synapse-registration.py
Last active April 14, 2018 04:18
api endpoint for token protected registration
from flask import Flask, request, abort, jsonify, request
import hashlib
import hmac
import requests
SERVER_LOCATION = 'https://homeserver.tld/'
SHARED_SECRET = b'registration_shared_secret see homeserver.yaml'
app = Flask(__name__)
@zeratax
zeratax / twiblur.user.js
Last active October 16, 2018 21:08
blurs twitter media by default unless you hover over it, for a more sfw twitter
// ==UserScript==
// @name twiblur
// @namespace mail@zera.tax
// @version 0.2
// @description blur twitter images
// @author ZerataX
// @license Unlicense
// @match https://twitter.com/*
// @grant GM_addStyle
// @run-at document-start