Skip to content

Instantly share code, notes, and snippets.

View bobpaw's full-sized avatar
💭
Cool

Aiden Woodruff bobpaw

💭
Cool
View GitHub Profile
@bobpaw
bobpaw / chats.txt
Created September 9, 2020 20:42
Good chats
[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 June 25, 2020 02:51
List of Pokemon with regional variants
[
"Rattata",
"Raticate",
"Raichu",
"Sandshrew",
"Sandslash",
"Vulpix",
"Ninetales",
"Diglett",
"Dugtrio",
@bobpaw
bobpaw / get-dex.js
Created June 25, 2020 02:44
Performs an AJAX request for the pokedex page based on dex id
ajax('/dex/details', {id: '054r7'}).success(function (a) {var newWindow = window.open(); newWindow.document.write(a.html)})
@bobpaw
bobpaw / adventure.md
Last active January 30, 2020 01:15
Adventure Paper

Map:

World 1

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

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

@bobpaw
bobpaw / steam_totalhours.user.js
Last active August 28, 2023 14:55
Adds a total hours textbox summing the total gameplay hours for a Steam account.
// ==UserScript==
// @name Steam Total Hours
// @namespace https://gist.github.com/bobpaw
// @version 3.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.githubusercontent.com/bobpaw/0b4ad6cb8070546bdd3aac9b341d2ad3/raw/steam_totalhours.user.js
// @downloadURL https://gist.githubusercontent.com/bobpaw/0b4ad6cb8070546bdd3aac9b341d2ad3/raw/steam_totalhours.user.js
// @match https://steamcommunity.com/id/*/games/*
@bobpaw
bobpaw / TODO.md
Last active July 12, 2020 16:40
Projects and TODOs
@bobpaw
bobpaw / checklist.md
Last active December 8, 2023 20:36
Linux Checklist for Cyberpatriot idk

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

#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 July 15, 2018 04:47
A genetic algorithm to guess strings
import random
import time
import csv
correct_string = 'hello world'
pop_size = 50
mutation_chance = 53
ascii_pool = 'abcdefghijklmnopqrstuvwxyz '
@bobpaw
bobpaw / cards.py
Created July 4, 2018 00:06
Stuff for playing cards
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)