Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️
GOTO 10

Jay Cuthrell JayCuthrell

☁️
GOTO 10
View GitHub Profile
@JayCuthrell
JayCuthrell / revue_rss_to_substack_markdown.py
Last active Jun 21, 2022
Pull my old Revue RSS feed before/after migration to Substack and replace with the proper vanity domain until it's gone
View revue_rss_to_substack_markdown.py
#!/usr/bin/python3
import feedparser
import time
# before...
# feed = feedparser.parse('https://sunday.fudge.org/?format=rss')
# after...
feed = feedparser.parse('https://sunday.fudge.org/feed')
for pub_date in feed.entries:
link = pub_date.link
# just in case...
View gone-fishing.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install wget
wget --mirror --page-requisites --adjust-extension --span-hosts --convert-links --domains sunday.fudge.org --no-parent --no-clobber https://jaycuthrell.com/newsletter/
@JayCuthrell
JayCuthrell / feedparser2markdown.py
Created Sep 12, 2020
Use python feedparser and time to parse an RSS feed and output a simple markdown unordered list of links
View feedparser2markdown.py
import feedparser
import time
# grab the feed
feed = feedparser.parse('https://fudge.org/rss.xml')
# for each entry print a markdown unordered list item of links using using title, link, and the parsed publishing time
for pub_date in feed.entries:
View stream_to_twitch.sh
v4l2rtspserver-master -W640 -H360 -E MP3:16000:44100 -r 2 -F 25 -P 8554
avconv -rtsp_transport tcp -y -i rtsp://192.168.1.XXX:8554/unicast -c:v copy -profile:v high -coder 1 -pix_fmt yuv420p -g 30 -bf 2 -c:a copy -strict experimental -aspect 16:9 -f flv "rtmp://live-ams.twitch.tv/app/live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
View rt-sanity.py
#!/usr/bin/env python3
from __future__ import print_function
import sys
import twitter
from keys import ACCESS_TOKEN_KEY, ACCESS_TOKEN_SECRET, CONSUMER_KEY, CONSUMER_SECRET
api = twitter.Api(
CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN_KEY, ACCESS_TOKEN_SECRET
)
View xps13_9350_ubuntu_suspend.txt
$ grep -v "^#" /etc/systemd/logind.conf
[Login]
HandleHibernateKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend
LidSwitchIgnoreInhibited=yes
$ grep -v "^#" /etc/systemd/sleep.conf
[Sleep]
View resume.json
{
"basics": {
"name": "William J. Cuthrell (Jay)",
"label": "Corporate Free Safety",
"summary":
"I am a proud team member of a business that grew from zero to multi-billion dollar run rates by enabling digital transformation. It is my mission to delight customers, deliver sustainable sales growth, and provide innovative servant leadership.",
"website": "https://jaycuthrell.com",
"email": "jay@cuthrell.com",
"location": {
"city": "Beaufort, NC",
View Google Song Maker
https://goo.gl/psK2wV
https://musiclab.chromeexperiments.com/Song-Maker/song/4973935362048000
View keybase.md

Keybase proof

I hereby claim:

  • I am jaycuthrell on github.
  • I am jaycuthrell (https://keybase.io/jaycuthrell) on keybase.
  • I have a public key whose fingerprint is 4407 D373 7F4D CDFE 90DD 89F4 4462 E55C BE13 D9C6

To claim this, I am signing this object: