Skip to content

Instantly share code, notes, and snippets.

🌆
Cyberpunk dystopia

Kevin F beardog108

🌆
Cyberpunk dystopia
View GitHub Profile
@beardog108
beardog108 / ants.py
Last active Jun 7, 2019
langton style ants
View ants.py
#!/usr/bin/env python3
import time, sys, random, os
GRID_SIZE = (50, 70)
BLACKS = []
ANTS = []
delay = 0.5
ant_number = None
def clear():
@beardog108
beardog108 / torserver.py
Created Sep 5, 2018
Tor Onion Service Echo Server In Python
View torserver.py
from stem.control import Controller
import selectors
import socket
sel = selectors.DefaultSelector()
def accept(sock, mask):
conn, addr = sock.accept() # Should be ready
print('accepted', conn, 'from', addr)
conn.send(b"Welcome!\n")
@beardog108
beardog108 / hash-list.py
Last active May 29, 2018
sha256sums generator
View hash-list.py
#!/usr/bin/env python3
'''
Public domain
This file generates a sha256sums file of all files in a directory. Does not recalculate file names already in the file
'''
import os, glob, sys
FILE = 'sha256sums'
hashList = ''
View playlist.py
#!/usr/bin/env/ python3
# This is a simple hack/script I wrote to automate my own playlist, maybe you will find it useful, but this is for me so if you want to make changes, just fork it.
# Public domain
import os, sys
files = []
folders = []
playlist = open('/home/beardog/playlist.m3u', 'r').readlines()
@beardog108
beardog108 / ChaosWebs.java
Created Dec 13, 2016 — forked from Arinerron/ChaosWebs.java
Detect when a new post is made on @beardog108's blog (https://chaoswebs.net/blog/).
View ChaosWebs.java
import java.util.*;
import java.util.regex.Pattern;
import java.net.*;
import java.io.*;
public class ChaosWebs {
public static double time = 6 * 60 * 60 * 1000;
public static String filename = ".last_post.txt";
public static void main(String[] args) {
View fingerprint.sh
#!/bin/sh
# This simple shell script checks a https website's certificate fingerprint (sha256) first directly, and then through Tor.
# This is a way to check if your end of a connection with a https website is being attacked
# If the fingerprints do not match, there is a chance you are being attacked
# This requires 'openssl', 'tor', and 'torify' to be installed.
openssl s_client -servername "$1" -connect "$1":443 | openssl x509 -fingerprint -sha256 -noout
You can’t perform that action at this time.