Skip to content

Instantly share code, notes, and snippets.

View LandonPowell's full-sized avatar
🏴
Nestor Makhno's Ghost 2020

Landon J. Powell LandonPowell

🏴
Nestor Makhno's Ghost 2020
View GitHub Profile
@LandonPowell
LandonPowell / 8bitKeyboard.py
Created April 2, 2018 12:07
Never take your tippy typers off the home row again! ASDFJKL; are now mod keys! Hold 'em down then press spacebar.
# 8 mod keys and one real key.
# Minimalist typing scheme.
# Never move your hands off the home row.
# Requires https://pypi.python.org/pypi/keyboard/
# EXAMPLE :
# For the letter 'A', the binary is 0100 0001
# Hold down 's' and semicolon, and then press Space.
@LandonPowell
LandonPowell / xmonad.hs
Created July 3, 2017 12:28
My `~/.xmonad/xmonad.hs` configuration file for xmonad.
import XMonad
import XMonad.Layout.Spacing
import XMonad.Layout.Gaps
import qualified Data.Map as M
import qualified XMonad.StackSet as W
myLayoutHook = gaps [(U,30), (R,30), (D,30), (L,30)] $ spacing 20 $ Tall 1 (3/100) (1/2)
myKeys conf@XConfig {XMonad.modMask = modMask} = M.fromList $ [
((0, 0x1008FF11), spawn "amixer set Master 2-"),
@LandonPowell
LandonPowell / visualize.py
Created June 30, 2017 15:17
Very simple, very shitty, Python Audio Visualizer PROOF OF CONCEPT.
import pygame, sys, random, colorsys
from pygame import gfxdraw
from pygame.locals import *
pygame.init()
canvas = pygame.display.set_mode((750, 750))
center = canvas.get_rect().center
pygame.display.set_caption("Visualization")
def hsv2rgb(h, s, v):
@LandonPowell
LandonPowell / HackerTyper.py
Last active May 31, 2017 04:04
Basically I made hackertyper.net but now you can run it in a terminal with whatever file you want and look even more hacker than usual.
import curses
import curses.ascii
from sys import argv
def main(screen):
global termsize
# Startup.
screen.clear()
curses.start_color()
curses.use_default_colors()
@LandonPowell
LandonPowell / not_a_vuln.js
Created February 20, 2017 00:47
Chrome Said This Was Okay
/*
Using these three functions, start in chrome://settings/passwords
*/
function listSites() {
var listOfSites = document.getElementById("saved-passwords-list").children;
var list = [];
for (var i = 0; i < listOfSites.length; i++) {
if (listOfSites[i].className != "spacer")
list.push(listOfSites[i].children[0].children[0].title);
@LandonPowell
LandonPowell / The_Face_of_True_Terror.php
Last active January 29, 2017 23:00
THE MOTHER OF ALL PHP PROGRAMS. TRULY A HORRIFYING SITE TO BEHOLD!
<?php
/*
One script to rule them all.
*/
/* Simple FizzBuzz */
for ($x = 1; $x <= 100; $x++) {
if ($x%3 == 0) echo "Fizz";
if ($x%5 == 0) echo "Buzz";
@LandonPowell
LandonPowell / polbot.py
Last active January 16, 2017 20:45
Stop browsing /pol/, start running this python script from your terminal instead.
import random
vocabulary = {
"[negative_noun]" : ["whiteknight", "cuck", "jew", "anti-white", "ahmed", "shill"]
}
templates = [
"you're a [negative_noun]",
"fuck off [negative_noun]",
"nice try [negative_noun]",
<(\w*) *(?:(\w*)(?:=("[^"]*"|[^"]*) *)?)*>([^<]*)<\/\1>
@LandonPowell
LandonPowell / asshole.html
Created September 20, 2016 01:53
Very Small Asshole XSS
<script>for(;;)alert()</script>
@LandonPowell
LandonPowell / FizzGen.py
Last active August 10, 2016 14:00
Someone on 4chan's /g/ board posted bad code so I sperged out and wrote this.
from sys import argv
def generatePrimes(words):
limit = len(words) ** 2
notPrimes = []
for a in range(3, limit):
for b in range(a * 2, limit, a):
notPrimes += [b]
notPrimes = set(notPrimes)