Skip to content

Instantly share code, notes, and snippets.

@kevdougful
kevdougful / FIRE.sh
Last active March 29, 2016 13:16
ALWAYS commit your changes...no matter what.
#!/bin/bash
echo AAAH FIRE!!! RUN AWAY!!!
git commit -a -m "FIRE!!!"
git push
sudo shutdown -h now
@kevdougful
kevdougful / 0xF77C43102BAD4C22.asc.txt
Last active March 29, 2016 13:24
My PGP for signing stuff at work
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP Universal 2.9.1 (Build 347)
mQINBFXTaycBEADMrU46+UGP1Duf5RUea+FkKEr4v8pMHhs3NUUpWhn8V5GzfNGO
LPn7k76e0gl200cxSA2ZENcTCbxf3kDL/zq29JyNQmW4zdGzUxcJZ31RogbbtlTi
x2+K/Sax0T/6Ev7gsg3WIHs+fzO96Anq2+GoNJ7XS2Sbb2XyTwhuArUdVbMJ+f7n
JylkUx390KyD/qCti5isYrJEjV/SQWHSK0Xo4leyJFC66hJZOCU0eYaZZ2HTvjPj
y02PRPDdoLawONGd5o3o9/V+VnuW5Q3lW7eS6HuKuRFae1Lkr0eKNWCX0KUEdPOd
r/zRGd4QyrRvxLGnMALY+Z+O1LLfLJ+OahjEzyUvD4jPKz7Lp8pGlgzTSazFXllM
DNYm6oqQQqslkhXj2+rAfmfA6ibcDzmMBo/oQACH132TtMGxjhxJKIaXB12Ohzq6

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:

@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',
@kevdougful
kevdougful / To You.txt
Last active November 4, 2018 20:41
HAPPY BIRTHDAY!
. . .
* . . .
. . . *
. .
. . + .
. . .
. + . * +
.* . . . . . .
. . ,`', .
@kevdougful
kevdougful / RStudio
Created February 14, 2019 19:29
Snippets
snippet test
test_that("${1}", {
${0}
})
@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 / 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 / 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 / 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={