Skip to content

Instantly share code, notes, and snippets.

View hyperreality's full-sized avatar

hyperreality

View GitHub Profile
@hyperreality
hyperreality / SomethingAwfulUnfilter.user.js
Created July 16, 2016 03:10
Greasemonkey script to uncensor the Something Awful forums
// ==UserScript==
// @name Something Awful Unfilter
// @namespace http://localhost
// @description Uncensor Something Awful forums for unregistered guests
// @include http://*somethingawful.com/*
// @include https://*somethingawful.com/*
// @version 1
// @grant none
// ==/UserScript==
@hyperreality
hyperreality / htoi.c
Created September 11, 2014 20:06
Hex to Int (Kernighan & Ritchie 2-3)
#include <stdio.h>
#include <ctype.h>
int htio(char s[])
{
int i,n;
n=0;
for (i=0; isxdigit(s[i]); ++i)
{
n *= 16;
@hyperreality
hyperreality / .bashrc
Last active October 29, 2018 23:13
Esperanto Ĉapelliteroj Bash Alias
alias eo="sed -i -e 's/cx/ĉ/g;s/gx/ĝ/g;s/hx/ĥ/g;s/jx/ĵ/g;s/sx/ŝ/g;s/ux/ŭ/g;s/Cx/Ĉ/g;s/Gx/Ĝ/g;s/Hx/Ĥ/g;s/Jx/Ĵ/g;s/Sx/Ŝ/g;s/Ux/Ŭ/g'"
# Svopas 'Cx' notacion en input dosierojn por ĉapelliterojn 'Ĉ'.
# Ekzemple: eo input.txt