Skip to content

Instantly share code, notes, and snippets.

View JayCuthrell's full-sized avatar
☁️
GOTO 10

Jay Cuthrell JayCuthrell

☁️
GOTO 10
View GitHub Profile
@JayCuthrell
JayCuthrell / upgrade_gotosocial.sh
Last active March 14, 2026 17:08
Upgrade GoToSocial to the latest version
#!/bin/bash
# --- Configuration ---
GTS_TARGET="linux_amd64"
INSTALL_DIR="/gotosocial"
BACKUP_DIR="$INSTALL_DIR/backups"
GTS_DB_PATH="/var/lib/gotosocial/gts.db"
# Move into the installation directory
cd "$INSTALL_DIR" || exit 1
"""
Install the Google AI Python SDK
$ pip install google-generativeai
See the getting started guide for more information:
https://ai.google.dev/gemini-api/docs/get-started/python
"""
import os
<!-- via https://www.zachleat.com/web/snow-fall -->
<script defer type="module" src="https://unpkg.com/@zachleat/snow-fall@1.0.1/snow-fall.js"></script>
<script type="module" defer>
const snow = document.createElement('snow-fall');
document.body.prepend(snow)
</script>
{
"basics": {
"name": "William J. Cuthrell (Jay)",
"label": "Corporate Free Safety",
"summary":
"Fractional Executive. 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",
defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding
defaults -currentHost delete -globalDomain NSStatusItemSpacing
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 5
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 5
@JayCuthrell
JayCuthrell / ai-agents-companies.md
Last active May 15, 2024 00:34
A list of A.I. agent companies
@JayCuthrell
JayCuthrell / crontab.sh
Last active December 27, 2023 20:54
crontab for mastodon as of Dec 2023
SHELL=/bin/bash
05 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl accounts prune
15 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl statuses remove --days 1
25 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove --days 1
35 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove --remove-headers --include-follows --days 0
45 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl preview_cards remove --days 1
55 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove-orphans
@JayCuthrell
JayCuthrell / tags.py
Created October 21, 2023 23:45
Create frontmatter tags from a blog post using rake-nltk and stopwords
import re
import sys
import rake_nltk
from rake_nltk import Metric, Rake
def get_text_from_markdown(file_path):
with open(file_path, 'r') as f:
text = f.read()
# Remove markdown tags
@JayCuthrell
JayCuthrell / rehydrateButtondownExport.py
Last active September 4, 2023 02:50
Buttondown offers export of all your emails as a CSV file 'emails.csv' and a folder 'emails' with all your emails. Since you can import to Buttondown, some of those emails might be HTML imports from other newsletter services.
import csv
import os
from markdownify import markdownify
# Define the variables for the columns of the CSV file
id = "id"
secondary_id = "secondary_id"
subject = "subject"
publish_date = "publish_date"
source = "source"
https://goo.gl/psK2wV
https://musiclab.chromeexperiments.com/Song-Maker/song/4973935362048000