"Your e-mail is the first I've heard of it," said Joe Crawford, 31, a respiratory therapist who
founded WebSanDiego.org two years ago, and "I think I have a finger on some sliver of the pulse
of the Web community."
MacOS command line to display city and state: curl -s ipinfo.io | jq -r '.city + ", " + .region' San Diego, California
Unixism:htpasswd -c .htpasswd userNametoAdd
Redirect in Perl: #!/usr/bin/perl
print "location: https://www.php.net\n\n";
Reboot a Mac from the command line: sudo shutdown -r now
Flush DNS, Windows 7: ipconfig /flushdns
Flush DNS, MacOS: dscacheutil -flushcache or lookupd -flushcache
Speed up dock show/hide in MacOS: defaults write com.apple.dock autohide-time-modifier -float
0.5;killall Dock (via)
Downsize a bunch of images via command line: for i in $( ls *.jpg); do convert $i -resize
640000@ re_$i; done
Copy file trees under Windows with XCOPY!: xcopy /s/v/s/d/y
C:\Websites\FRED\JCrawford W:\FRED\dev03
xcopy /s/v/s/d/y W:\FRED\dev03 C:\Websites\FRED\JCrawford
Fun fact: Maximum URL length is 2,083 characters in Internet Explorer (reference)
Get a GUID in Sql Server! select NEWID() 3BC5CE49-BAF7-43EF-8ACA-53E419B66615
log stream --predicate 'process == "clouddd" or process == "cloudphotod"'
command to monitor Photos.app updating from iCloud
shrink some big pdf filegs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dBATCH -dColorImageResolution=150
-sOutputFile=output.pdf someBigFile.pdf
Flickr RSS feed pattern:
https://www.flickr.com/services/feeds/photos_public.gne?id=IDNUMBERS@CHARS
where IDNUMBERS@CHARS is the USER ID.
White House code is 202101414@N05. RSS. Find it
in the source for profile photos.
Tumblr RSS feed pattern: add /rss to the the tumblr subdomain. For
artlung.tumblr.com that is
https://artlung.tumblr.com/rss
Mastodon RSS feed pattern: add .rss to the end of the Mastodon handle. For
thisbot.day/@affirmations that is
https://thisbot.day/@affirmations.rss
Substack RSS feed pattern: add /feed to the end of the Substack handle. For
heathercoxrichardson.substack.com that is
https://heathercoxrichardson.substack.com/feed
YouTube RSS feed patterns are based on the channel ID. For example, for
www.youtube.com/channel/UCcYgwQEo9G_pbwJbwd_8p7A the RSS feed is
https://www.youtube.com/feeds/videos.xml?channel_id=UCcYgwQEo9G_pbwJbwd_8p7A
Patreon does not have RSS for all feeds, but does have
audio RSS feeds
, which constitutes a podcast feed. I am not aware of a standard pattern for this, they generally require authentication.
Changes to any Wikipedia article: https://en.wikipedia.org/w/index.php?title=ARTICLENAME&action=history&feed=rss, where ARTICLENAME is the article's url slug.
Not all Squarespace websites have RSS Feeds. And not all kinds of content
on Squarespace can generate feeds of posts.
Finding your RSS feed URL documents the structure.
https://sitename.squarespace.com/pageslug?format=rss is the pattern where
pageslug is a blog, or press release list, etc.
Make JPGs of PNGs: for file in *.png; do magick $file "`basename $file .png`.jpg"; done
Make a GIF from a MOV:
ffmpeg -i INPUT.mov -r 15 -vf scale=250:-1 OUTPUT.gif
Download part of a YouTube video as a file:
yt-dlp https://www.youtube.com/watch?v=7cmfNq_JPYw --downloader ffmpeg --downloader-args
"ffmpeg_i:-ss 1:35:00 -to 1:36:00"
On a Macintosh, command-shift-option-delete to boot from the SCSI chain