I hereby claim:
- I am rjzak on github.
- I am rjzak (https://keybase.io/rjzak) on keybase.
- I have a public key whose fingerprint is 0B12 C074 CFEE 5EC2 F2A7 37D4 FF07 22A6 B38E 9F42
To claim this, I am signing this object:
#!/usr/bin/python | |
from __future__ import print_function | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import sys | |
# Modeled after: http://matplotlib.org/1.3.0/examples/pylab_examples/legend_demo.html | |
if len(sys.argv) < 2: |
CFLAGS+=-std=c99 -DMYDEFINE -g -O0 | |
LDFLAGS+=-lm | |
DEPS = Makefile | |
all: myproj | |
%.o: %.c %.h $(DEPS) | |
$(CC) -fPIC -c -o $@ $< $(CFLAGS) | |
myproj: file.o main.o |
import random | |
def randomKey(start=None, bytes=16): | |
if start is None: | |
part = "%02x" % random.randint(0,255) | |
return randomKey(part, bytes) | |
elif len(start.split(" ")) == bytes: | |
return start | |
else: | |
part = "%s %02x" % (start, random.randint(0,255)) | |
return randomKey(part, bytes) |
#!/usr/bin/python | |
import os | |
import json | |
import time | |
import hashlib | |
import httplib | |
class Result: |
#!/usr/bin/python | |
import sys, os, subprocess | |
def fileType(filePath): | |
return subprocess.Popen("""/usr/bin/file "%s" """ % filePath, shell=True, stdout=subprocess.PIPE).communicate()[0].split(":")[1].strip() | |
def idMSFile(filePath): | |
if os.path.isdir(filePath): | |
for fileInDir in os.listdir(filePath): |
#include <security/pam_appl.h> | |
#include <security/pam_misc.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
/** | |
* Code adapted from: | |
* PAM: http://www.makelinux.net/alp/084 |
from django.utils.decorators import decorator_from_middleware, available_attrs | |
from functools import wraps | |
import time | |
class PageLoadTimerMiddleware: | |
def __init__(self): | |
self.initTime = time.clock() | |
self.disabled = False | |
def process_request(self, request): |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(int argc, char* argv[] ) { | |
if (argc != 3) { | |
printf("Error, you must provide a destination file and number of iterations\n"); | |
return -1; | |
} | |
FILE *fp; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
if [ $# -eq 2 ] | |
then | |
mkdir $1 | |
mount -t tmpfs -o size=$2 tmpfs $1 | |
else | |
echo "Proper use: $0 <RAMDISK_DIR> <RAMDISK_SIZE>" | |
echo "Example: $0 /mnt/ramdisk 4096m" | |
fi |