Skip to content

Instantly share code, notes, and snippets.

View innateessence's full-sized avatar

Brenden Rice innateessence

View GitHub Profile
@innateessence
innateessence / uniq.py
Last active July 24, 2018 23:36
uniq.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Demonstration of how simple it can be to recreate
core functionality of various tools within python
'''
from sys import stdin, stdout, argv
@innateessence
innateessence / Style.zsh
Last active October 20, 2023 16:48
Zshrc - Style/Aliases/Exports/Functions
#!/bin/zsh
#=========================#
# #
# Style #
# #
#=========================#
# Aliases and functions
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
@innateessence
innateessence / autoclick.c
Last active July 24, 2018 23:36
autoclick.c
// Stolen
// Written by Pioz.
// Compile with: gcc -o autoclick autoclick.c -lX11
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
// Simulate mouse click
void
@innateessence
innateessence / usb_reset.c
Last active July 24, 2018 23:36
usb_reset.c
// stolen
#include <stdio.h>
#include <usb.h>
int main(void)
{
struct usb_bus *busses;
usb_init();
usb_find_busses();
usb_find_devices();
@innateessence
innateessence / define.py
Last active February 15, 2020 07:29
cli tool to define a word
#!/usr/bin/env python
import requests
from bs4 import BeautifulSoup
from argparse import ArgumentParser
def get_args():
parser = ArgumentParser()
parser.add_argument('query', default=None, type=str, help="lookup query")
@innateessence
innateessence / pulse-audioswitch.py
Created March 17, 2020 19:56
toggle pulse audio output device
#!/usr/bin/env python3
'''
dependencies = pactl
'''
from sh import pactl
def parse_pactl(cmd):
''' >_ pactl $cmd -> array '''
array = [i.split('\t') for i in pactl(cmd).splitlines()]
@innateessence
innateessence / alarm.py
Created March 24, 2020 02:29
A simple alarm script
#!/usr/bin/env python
import sys
import time
import wave
import pyaudio
'''
>_ python pyalarm "8:00 PM"
@innateessence
innateessence / Freerice.js
Created April 28, 2020 23:40
A freerice bot written in Javascript using puppeteer
#!/usr/bin/env node
const puppeteer = require("puppeteer");
function parse_args(args){
let headless = false;
let proxy = null
while (args.length != 0){
switch (args[0]) {
case '--headless':
@innateessence
innateessence / brainfuck.py
Last active April 25, 2024 21:20
Esoteric Language Interpreter [brainfuck language] [naive implementation]
#!/usr/bin/env python
'''
author: JackofSpades
I watched a 33 second video on the brainfuck
language, which originally looked like a horrid
abomination, however after learning how it works
It's still an abomination, but it's kind of cute