Skip to content

Instantly share code, notes, and snippets.

View hausdorff's full-sized avatar
🔜
Soon.

Alex Clemmer hausdorff

🔜
Soon.
View GitHub Profile
\begin{itemize}
\item[] {\Large\bfseries Thursday, June 13, 2013}\\\vspace{1.5ex}
\vspace{1ex}
\item[18:30--20:30] {\bfseries Session PLN1: *SEM Opening Reception and STS Poster Session (All SemEval attendees are invited)}
\item[] {\Large\bfseries Friday, June 14, 2013}\\\vspace{1.5ex}
\vspace{1ex}
@hausdorff
hausdorff / math.asm
Last active December 3, 2023 19:00
mod and div implemented in 6502 asm
; load some data up
LDA #$7
STA $00 ; memory addr A
LDA #$05
STA $01 ; memory addr B
JMP Divide
;modulus, returns in register A
Mod:
LDA $00 ; memory addr A
@hausdorff
hausdorff / .vimrc
Last active December 22, 2015 07:29
" For tabs instead of spaces
:set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
" For spaces instead of tabs
":set shiftwidth=4 tabstop=4 expandtab
:set number
:set wrap
:set showbreak=------>
:set autoindent
let mapleader = ","
[user]
name = Alex Clemmer
email = clemmer.alexander@gmail.com
[github]
user = Hausdorff
#token = 9970ddf523092ff97bdbf398e9db2bb1
[core]
editor = vim
excludesfile = /Users/alex/.gitignore_global
autocrlf = true
@hausdorff
hausdorff / mu.c
Last active January 1, 2016 11:59
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
void convert_both_ways();
int main(int argc, char **argv)
SYSCALL(args) = return
open(".\0", 0x0, 0x1) = 3 0
fstat64(0x3, 0x7FFF6AFE1260, 0x0) = 0 0
fcntl(0x3, 0x32, 0x7FFF6AFE14E0) = 0 0
close(0x3) = 0 0
stat64("/Users/alex/Desktop/fun/scratch/locks\0", 0x7FFF6AFE11D0, 0x0) = 0 0
issetugid(0x7FFF6B01D530, 0x7FFF6AFE1A30, 0x7FFF6B01D530) = 0 0
csops(0x0, 0x0, 0x7FFF6AFE14BC) = 0 0
shared_region_check_np(0x7FFF6AFDF408, 0x2, 0x55) = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF6AFE05D0, 0x7FFF6AFE14C0) = 0 0
;; This is a brief example of how introspective and intercessory functionality
;; can be encapsulated in a method combination without changing method
;; definitions or client code. Different implementations of the same method are
;; chosen randomly at runtime and the method combination profiles them to learn
;; which ones are more efficient and starts to call them more often than the
;; others.
(defgeneric sleep-and-stuff ()
(:method-combination adaptive-optimizer
# Problem Statement:
# You have mulitple copies (or clones) of upstream repositories in your local drive.
# Your local cloned repos need to be updated against the upstream master repos on a regular basis.
# Here's one solution that uses the IPython notebook.
# Open up your IPython notebook browser in your working directory and then paste the following into a code cell.
# Press SHIFT+ENTER to run the code cell.
# Create a list of projects located in the working directory.
list_of_projects = ["django", "ipython", "oh-mainline"]
@hausdorff
hausdorff / akamiopenssl.patch
Created April 12, 2014 20:13
Akamai OpenSSL patch
diff -uNr -x'*.[oas]' openssl-1.0.1g.orig/crypto/Makefile openssl-1.0.1g/crypto/Makefile
--- openssl-1.0.1g.orig/crypto/Makefile 2014-04-10 13:11:56.000000000 -0400
+++ openssl-1.0.1g/crypto/Makefile 2014-04-10 13:02:39.000000000 -0400
@@ -35,14 +35,16 @@
LIB= $(TOP)/libcrypto.a
SHARED_LIB= libcrypto$(SHLIB_EXT)
LIBSRC= cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c \
- ebcdic.c uid.c o_time.c o_str.c o_dir.c o_fips.c o_init.c fips_ers.c
+ ebcdic.c uid.c o_time.c o_str.c o_dir.c o_fips.c o_init.c fips_ers.c \
+ secure_malloc.c buddy_allocator.c
#!/bin/bash
# Add the repository
rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
echo "--- ---"
echo "--- Installing Mesos and ZooKeeper packages ---"
echo "--- ---"
yum -y install mesos marathon
yum -y install mesosphere-zookeeper