I hereby claim:
- I am aji on github.
- I am aji (https://keybase.io/aji) on keybase.
- I have a public key whose fingerprint is 3508 E751 97F2 22F2 EF44 3603 A06E 97DF 2CF8 2BB5
To claim this, I am signing this object:
// ==UserScript== | |
// @name Amazon.com shortlink | |
// @namespace http://ajitek.net/gm/amazon-shortlink | |
// @description Add <link rel="shortlink" ...> for Amazon.com pages | |
// @include http://amazon.com/*/dp/* | |
// @include http://www.amazon.com/*/dp/* | |
// @include https://amazon.com/*/dp/* | |
// @include https://www.amazon.com/*/dp/* | |
// @include http://amazon.com/*/e/* | |
// @include http://www.amazon.com/*/e/* |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# rcc.sh -- convert a file to a C array of uint16_t's | |
while getopts ":o:h:e:n:v" opt; do | |
case $opt in | |
o) output=$OPTARG | |
;; | |
h) header=$OPTARG | |
;; | |
e) varre=$OPTARG |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <time.h> | |
#define BUFSIZE 2<<15 | |
char buforig[BUFSIZE]; | |
char bufcopy[BUFSIZE]; |
#!/bin/sh | |
# Chromium's default action for files it doesn't understand is to | |
# download them, apparently. Also, it looks like .c and other similar | |
# plaintext files are not something Chromium thinks it can read. | |
# So to save myself from having to constantly copy things to a file | |
# with a .txt extension so I can read them and to keep from having to | |
# make Chromium treat .c files and such differently, I've decided to | |
# write this nifty little script. |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
struct bclass { | |
char *id; | |
char *name; | |
char *brtfile; | |
char *maxfile; | |
}; |
#!/bin/sh | |
# echoes the full path of the newest download | |
# usage: lastdl.sh [NN], where 1<=NN<100 | |
# adjust this appropriately: | |
DOWNLOADS=$HOME/Downloads | |
# this is horrendous | |
back=$1 | |
case $back in |
#!/usr/bin/env python | |
import select | |
import random | |
import string | |
import socket | |
class Killer: | |
def __init__(self, sock): | |
self.sock = sock |
#!/usr/bin/env python | |
import socket | |
import select | |
class AutoJoiner: | |
def __init__(self, server, port, nick, channel, deathmsg): | |
self.sock = socket.socket() | |
self.sock.connect((server, port)) |
#!/usr/bin/python | |
# pinkie.py -- Proof-of-concept IRCd written in Python | |
# [40] alex@theta pinkie $ grep ^class pinkie.py | |
# class Pollable: | |
# class Timer: | |
# class TimerRepeat(Timer): | |
# class AsyncListen(Pollable): | |
# class AsyncLine(Pollable): | |
# class AsyncLoop: |