Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Cool

Aiden Woodruff bobpaw

💭
Cool
View GitHub Profile
View chats.txt
[15:03:52] Seneschal Zintaus: The actual weed, not the green funny bacco.
[16:08:49] Dangerous Pizzas: Do you know how to stay warm in a cold room?
[16:09:00] Dastardly bobpaw: a space heater
[16:09:05] Dangerous Pizzas: no
[16:09:22] Dangerous Pizzas: go to the corner, it's always 90 degrees
[14:17:08] Sometimes youwin: gonna elope, that's so dope
[14:19:12] Dastardly bobpaw: gotta have hope, gotta walk the rope / go for broke without being a dope
[14:21:22] Sometimes youwin: don't sit and mope, you gotta cope, go shit in the woods with the pope
@bobpaw
bobpaw / variants.json
Last active Jun 25, 2020
List of Pokemon with regional variants
View variants.json
[
"Rattata",
"Raticate",
"Raichu",
"Sandshrew",
"Sandslash",
"Vulpix",
"Ninetales",
"Diglett",
"Dugtrio",
@bobpaw
bobpaw / get-dex.js
Created Jun 25, 2020
Performs an AJAX request for the pokedex page based on dex id
View get-dex.js
ajax('/dex/details', {id: '054r7'}).success(function (a) {var newWindow = window.open(); newWindow.document.write(a.html)})
@bobpaw
bobpaw / adventure.md
Last active Jan 30, 2020
Adventure Paper
View adventure.md

Map:

World 1

######################
###############/  >>P#
##s#s#x####  \//z#####
##===#o#### #\/#######
##=#=# #   ?##/=Op####
S  #   | ## #//#######

####### ### /########

@bobpaw
bobpaw / steam_totalhours.user.js
Last active Apr 26, 2021
Adds a total hours textbox summing the total gameplay hours for a Steam account.
View steam_totalhours.user.js
// ==UserScript==
// @name Steam Total Hours
// @namespace https://gist.github.com/bobpaw
// @version 2.0.2
// @author Aiden Woodruff
// @description Adds a total hours textbox summing the total gameplay hours for a Steam account.
// @source https://gist.github.com/bobpaw/0b4ad6cb8070546bdd3aac9b341d2ad3
// @updateURL https://gist.github.com/bobpaw/0b4ad6cb8070546bdd3aac9b341d2ad3/raw/0723bcbd6c319caa20726bc8ae2ace19b49fc1cc/steam_totalhours.user.js
// @downloadURL https://gist.github.com/bobpaw/0b4ad6cb8070546bdd3aac9b341d2ad3/raw/0723bcbd6c319caa20726bc8ae2ace19b49fc1cc/steam_totalhours.user.js
// @match https://steamcommunity.com/id/*/games/*
@bobpaw
bobpaw / TODO.md
Last active Jul 12, 2020
Projects and TODOs
View TODO.md
@bobpaw
bobpaw / checklist.md
Last active Sep 1, 2022
Linux Checklist for Cyberpatriot idk
View checklist.md

Install updates (Covered)

apt-get update && apt-get upgrade && apt-get dist-upgrade

Automatic updates in GUI (Not covered)

Firewall (Covered)

apt-get install ufw && ufw enable

SSH settings

Turn off root in sshd_config (Covered)

if grep -qF 'PermitRootLogin' /etc/ssh/sshd_config; then sed -i 's/^.*PermitRootLogin.*$/PermitRootLogin no/' /etc/ssh/sshd_config; else echo 'PermitRootLogin no' >> /etc/ssh/sshd_config; fi

PermitRootLogin no

View interpret.cc
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
class hold {
private:
std::vector<hold> children;
std::string::size_type begin, end;
std::string quotes;
@bobpaw
bobpaw / genetic.py
Created Jul 15, 2018
A genetic algorithm to guess strings
View genetic.py
import random
import time
import csv
correct_string = 'hello world'
pop_size = 50
mutation_chance = 53
ascii_pool = 'abcdefghijklmnopqrstuvwxyz '
@bobpaw
bobpaw / cards.py
Created Jul 4, 2018
Stuff for playing cards
View cards.py
from random import choice
class Deck:
"""Card deck"""
def __init__(self, deck=None):
"""Initializes the default deck, or use whatever list is given"""
self._deck = deck or [str((["Ace"]+list(range(2,11))+["Jack","Queen","King"])[i-1])+" of "+s+"s" for s in ["Spade","Heart","Club","Diamond"] for i in range(1,14)]
def output(self):
"""Return copy of internal list"""
return list(self._deck)