Skip to content

Instantly share code, notes, and snippets.

View 1fabunicorn's full-sized avatar
🦄

Nova Trauben 1fabunicorn

🦄
View GitHub Profile
/*
Base machine
Choose one option below to define machine size, board, and parameters
Select machine size
*/
//#define MachineEnder2
//#define MachineEnder3
//#define MachineEnder4

Keybase proof

I hereby claim:

  • I am 1fabunicorn on github.
  • I am 1fabunicorn (https://keybase.io/1fabunicorn) on keybase.
  • I have a public key whose fingerprint is E8C2 0934 3604 3EE5 4FC2 225F 52D0 FC58 A950 5445

To claim this, I am signing this object:

@1fabunicorn
1fabunicorn / ecosystem.js
Last active November 16, 2017 15:57
from Eloquent Javascript!
// forEachIn
function forEachIn(object, action) {
for (var property in object) {
if (Object.prototype.hasOwnProperty.call(object, property))
action(property, object[property]);
}
}
// Dictionary type
function Dictionary(startValues) {
@1fabunicorn
1fabunicorn / tictactoe.py
Created February 2, 2017 03:36 — forked from rpip/tictactoe.py
Simple Python implementation of the classic Tic Tac Toe game. Goal : Unbeatable AI.
#!/usr/bin/env python
#--------------------------------------------------------------------------
# Tic Tac Toe game in Python
# Author: Mawuli Adzaku <[email protected]>
# Date: 20-05-2013
# Tested with Python 2.7
# TO RUN:
# sudo chmod a+x tictactoe.py
# ./tictactoe.py
# OR JUST RUN : python tictactoe.py
@1fabunicorn
1fabunicorn / Dashpylib.py
Created January 20, 2017 06:04
A dash tx spammer
import os
from subprocess import check_output
from time import sleep
from json import loads
from shlex import split
#run this module while ./dashd is running
class Dashpylib:
def __init__(self, dir):
@1fabunicorn
1fabunicorn / TestThreading.py
Created December 14, 2016 17:57
Quick playing around with threading on python 2
import threading
from time import sleep
import random
y = random.randint
z = sleep
class testA(threading.Thread):
def run(self):
@1fabunicorn
1fabunicorn / al.py
Created December 4, 2016 18:12
Made for a special someone. I know its nothing to crazy
from time import sleep
cat = " A___A \n A___A |o o|\n ____ / o o \ |='=|\n___/~____ ='= /_____/ |_________\n (______)__m_m_) / ||||\n |___||||]"
def al():
print "Al, you are a wonderfull person"
sleep(4)
print "\nyou bring joy to me, and support.\nyour words feel like a big hug,"
sleep(6)
print "\n\n" + cat
sleep(.5)
print "this is TWO cats if you can't tell"
@1fabunicorn
1fabunicorn / AllyDayMail.html
Created October 18, 2016 02:42
This html email was made for my schools ally day. Sick stuff?
<!DOCTYPE html>
<html>
<head>
<!--
I attemted to clean this up, but it can't be super pretty cause its an html email.
-->
</head>
<body>
<div style="font-family: sans-serif;font-stretch: ultra-expanded;border-style:dashed">
import os
import gnupg
from subprocess import call
directory_use = str(raw_input("Please specify the directory to make the keys in. Please include the full path. This script will delete everything in this directory so please be carfull\n"))
keyring_name = str(raw_input("please specify the file name you woulk like to name the public key\n"))
secret_name = str(raw_input("please specify the file name you woulk like to name the PRIVATE key\n"))
pub_key_type = str(raw_input("please specify what type of key you want the public key to be. RSA or DSA? This is not case sensitive\n").upper())
pub_length = int(raw_input("please specify how big you want the pubic key to be. between 1024 and 2048 Bytes "))
name = str(raw_input("please specify the name you would like to be associated to these keys\n"))
comment = str(raw_input("Make a comment for the key. If left blank, comment will be 'Generated by gnupg.py' "))