Skip to content

Instantly share code, notes, and snippets.

View rossdylan's full-sized avatar

Ross Delinger rossdylan

View GitHub Profile
@rossdylan
rossdylan / vm.sh
Last active August 29, 2015 14:27
# Welcome to Episkopos!
# Now, I know you are all wondering what madness has crawled out of my twisted
# mind and into your computer. This is a register based virtual machine...
# written completely in bash.
# Don't look at me like that, its a great idea.
# Think of a world where bash is compiled to bash and run on bash. Its an endless
# recursive cycle. The name comes from discordianism, which I often turn to
# when I'm writing something particularlly nutty.
declare -A general_reg=(["r0"]=0 ["r1"]=0 ["r2"]=0 ["r3"]=0 ["r4"]=0 ["r5"]=0 ["ze"]=0 ["tr"]=1)

Keybase proof

I hereby claim:

  • I am rossdylan on github.
  • I am rossdylan (https://keybase.io/rossdylan) on keybase.
  • I have a public key whose fingerprint is 7070 AD98 0B17 2B1C 8825 DB7D E554 03F6 D4EC 1873

To claim this, I am signing this object:

@rossdylan
rossdylan / emoji.swift
Last active January 10, 2021 05:38
wat
func sleep_cry_pumpkin_snake(horse_ghost_cd_camcorder: [[String]]) -> Void {
var whale_cat_mailbox_flag_symbols = [Int](count: horse_ghost_cd_camcorder.count, repeatedValue: 0)
var shooting_star = 0
ambulance_horse(horse_ghost_cd_camcorder, whale_cat_mailbox_flag_symbols)
while true {
if shooting_star >= horse_ghost_cd_camcorder.count {
return
} else if whale_cat_mailbox_flag_symbols[shooting_star] < horse_ghost_cd_camcorder[shooting_star].count - 1 {
ant_pigsnout_penguin_monkey(&whale_cat_mailbox_flag_symbols, shooting_star)
whale_cat_mailbox_flag_symbols[shooting_star] += 1
@rossdylan
rossdylan / vote-trees.md
Created October 2, 2014 14:09
Vaux: Voting Trees

Malicous Files and Vaux

One of the key tenets of the VauxIo project is the inability to delete files. However since anyone can upload files to a vaux node there needs to be a way to prevent the spread of malicious files. An example of such a file is a massive file filled with random data. The server will be unable to tell if its junk or, encrypted data we care about. I've been thinking about how to fix this for the last few days and this blog post is me trying to figure out how I want to implement this.

Possible Solution: Voting

The first thing I thought of was a voting system. Users on each node can flag a file as malicious. The node then tells the

@rossdylan
rossdylan / starrs.py
Created September 23, 2014 02:50
starrs
import psycopg2
import getpass
class STARRS(object):
def __init__(self, dbname, user, host, password):
self.conn = psycopg2.connect("dbname={0} user={1} host={2} password={3}".format(dbname, user, host, password))
self.cursor = self.conn.cursor()
self.cursor.execute("select * from api.initialize('root')")
@rossdylan
rossdylan / keybase.md
Created August 30, 2014 02:30
keybase.md

Keybase proof

I hereby claim:

  • I am rossdylan on github.
  • I am rossdylan (https://keybase.io/rossdylan) on keybase.
  • I have a public key whose fingerprint is AB27 D997 65CC 1617 A542 79E3 96AC 57BF 8593 A1A9

To claim this, I am signing this object:

@rossdylan
rossdylan / graph.js
Created August 14, 2014 19:33
Kinda working d3.js force layout of current network connections
var width = 1060;
var height = 600;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var force = d3.layout.force()
.gravity(0.5)
.distance(200)
package main
import "strings"
import "fmt"
var lol string
type g_func func(...string) g_func
func (gf g_func) String() string {
@rossdylan
rossdylan / fedmsg.hs
Created July 12, 2014 00:04
simple fedmsg haskell thingy
module Main where
import System.ZMQ
import Control.Monad (replicateM, forever)
import qualified Data.ByteString
import Text.Printf
type Topics = [String]
type MessageHandler = (Data.ByteString.ByteString -> IO ())
subscribeTopics :: SubsType a => Topics -> Socket a -> IO ()
import pygit2
import requests
from collections import namedtuple
import os
GitObj = namedtuple("GitObj", "fname prefix hash")
def hash_gen(index):