This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
#=========================# | |
# # | |
# Style # | |
# # | |
#=========================# | |
# Aliases and functions | |
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stolen | |
#include <stdio.h> | |
#include <usb.h> | |
int main(void) | |
{ | |
struct usb_bus *busses; | |
usb_init(); | |
usb_find_busses(); | |
usb_find_devices(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
def filter_broken_symlinks(files): | |
broken_symlinks = [] | |
for file in files: | |
file = os.path.abspath(file) | |
if os.path.islink(file) and os.path.exists(os.readlink(file)) is False: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import time | |
import wave | |
import pyaudio | |
''' | |
>_ python pyalarm "8:00 PM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer