This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding | |
defaults -currentHost delete -globalDomain NSStatusItemSpacing | |
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 5 | |
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
NewerOlder