Skip to content

Instantly share code, notes, and snippets.

The Routine (Emphasizing Triceps, Biceps, and Forearms)
1. Squat: 3 sets of 10 repetitions (weight: 95 lbs.)
2. French Press: 4 sets of 6 repetitions (weight: 64 lbs.)
3. Incline Curl: 4 sets of 6 repetitions (weight: 35lbs.)
4. Concentration Curl: 4 sets of 6 repetitions (weight: 35 lbs.)
5. Push-up: 3 sets of 10 repetitions (weight: 70-80 lbs. placed on the upper back)
6. Two Hand (Barbell) Curl: 3 sets of 8 repetitions (weight: 70-80 lbs.)
7. Triceps Stretch: 3 sets of 6 to 8 repetitions (weight: 3 lbs.)
8. Dumbbell Circle: 4 sets of as many repetitions as possible (weight: 16 lbs.)
┌──────────────────┐
│ Are you focusing │◄──────┐
│ on your breath? │ │
└────────┬─────────┘ │
│ │
│ │
│ │
▼ │
┌───────┐ │
│ No. │ │
10 rem fizzbuzz
20 fori=1to100:
30 i3=i-int(i/3)*3:i5=i-int(i/5)*5
40 ifi3<>0andi5<>0thenprinti:next
50 ifi3=0thenprint"fizz";
60 ifi5=0thenprint"buzz";
70 print"":next
@drproteus
drproteus / keybindings.json
Created January 24, 2023 18:07
keybindings.json
[
{
"key": "cmd+j",
"command": "workbench.action.terminal.focus"
},
{
"key": "cmd+j",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
DEFAULT_HOST="localhost"
DEFAULT_PORT="8080"
try:
host, port = sys.argv[1].split(":")
except Exception:
host, port = DEFAULT_HOST, DEFAULT_PORT
#!python
import sys
MOD_ADLER = 65521
def adler32(s):
a, b = 1, 0
for c in s:
a = (a + ord(c)) % MOD_ADLER
b = (b + a) % MOD_ADLER
[Unit]
Description=rclone-onedrive
AssertPathIsDirectory=/home/jake/onedrive
After=network-online.target
[Service]
User=jake
Group=jake
Type=simple
ExecStart=/usr/bin/rclone mount --config=/home/jake/.rclone.conf --vfs-cache-mode writes onedrive: /home/jake/onedrive
CTRL ALT T
DELAY 500
STRING amixer -D pulse sset Master 100%
ENTER
STRING echo 'for((i=0; ;++i)); do espeak "WARNING: YOU HAVE BEEN COMPROMISED."; sleep 1; espeak "YOUR SOUL IS REQUIRED AS PAYMENT. REMIT AT ONCE."; sleep 1; done' > /tmp/somescript.sh
ENTER
STRING chmod +x /tmp/somescript.sh
ENTER
STRING /tmp/somescript.sh &
ENTER
@drproteus
drproteus / plex_api_demo.py
Last active June 27, 2022 13:51
Plex API Demo
import os
import requests
import random
import xml.etree.ElementTree as ET
from dataclasses import dataclass
PLEX_TOKEN = os.getenv("PLEX_TOKEN")
PLEX_HOST = os.getenv("PLEX_HOST")
@drproteus
drproteus / control-widget-sketches.markdown
Created October 20, 2021 14:33
control widget sketches