Skip to content

Instantly share code, notes, and snippets.

@kevdougful
kevdougful / words.ipynb
Last active February 5, 2022 18:56
Wordle Letter Analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevdougful
kevdougful / scraper.py
Created January 26, 2022 01:56
ABC Ballpark Schedule Scraper
import attr
from bs4 import BeautifulSoup
from datetime import datetime, date, timedelta
import httpx
from icalendar import Calendar, Event
from uuid import uuid4
@attr.s(auto_attribs=True)
class Game:
time: datetime
@kevdougful
kevdougful / Schedule.py
Created September 8, 2021 14:37
ABC Ballpark iCal
@attr.s(auto_attribs=True)
class Schedule:
division: int = 1
team: str = ""
games: list = None
def fetch(self):
req = httpx.post(
url="http://www.abcballpark.com/eventschedule/index.php",
data={
@kevdougful
kevdougful / raspios.sh
Created August 19, 2021 19:33
Get Latest Raspberry Pi OS image
#!/bin/bash
# Downloads, checks and unzips the latest image file for RaspiOS Lite
# Get the download URL for the latest version
dlurl=https://downloads.raspberrypi.org/raspios_lite_armhf_latest
url=$(curl -ILs -w %{url_effective} $dlurl | tail -1)
expect=$(curl -s "$url.sha256" | cut -d" " -f1) # checksum
curl -sL -o raspios.zip $url
# Check the downloaded file
@kevdougful
kevdougful / haproxy.cfg
Created January 19, 2021 15:17
OctoPrint USB WebCam Setup
# /etc/haproxy/haproxy.cfg
global
maxconn 4096
user haproxy
group haproxy
daemon
log 127.0.0.1 local0 debug
defaults
@kevdougful
kevdougful / calabasas
Last active November 13, 2019 15:49
Kanye Madness
1. jesus walks \
1. jesus walks \
16 cudi montage / |
1. jesus walks \
8. hey mama \ | |
9. roses / |
9. roses / |
4. monster \
5. flashing lights \ | |
12. real friends \ | |
@kevdougful
kevdougful / RStudio
Created February 14, 2019 19:29
Snippets
snippet test
test_that("${1}", {
${0}
})
@kevdougful
kevdougful / To You.txt
Last active November 4, 2018 20:41
HAPPY BIRTHDAY!
. . .
* . . .
. . . *
. .
. . + .
. . .
. + . * +
.* . . . . . .
. . ,`', .
@kevdougful
kevdougful / dataframe.js
Created February 16, 2018 22:24
NodeJS Dataframe
// Go from this:
const data = [
{
id: 1,
response: 'weight',
value: 34.2
},
{
id: 1,
response: 'height',

Keybase proof

I hereby claim:

  • I am kevdougful on github.
  • I am kevdougful (https://keybase.io/kevdougful) on keybase.
  • I have a public key ASBCdllEEB_kHM0_CNjz_KYh5hVwdgupJc20N6uQNfIdqgo

To claim this, I am signing this object: