Skip to content

Instantly share code, notes, and snippets.

View dotsam's full-sized avatar
👨‍💻

Sam Edwards dotsam

👨‍💻
View GitHub Profile
@dotsam
dotsam / index.php
Created March 18, 2024 20:23
Quick and Dirty iCloud shared album-to-RSS feed
<?php
function getPhotosFromPhotoStream($strId, $streamHost = 'p01-sharedstreams.icloud.com')
{
$objCurl = curl_init(
"https://{$streamHost}/{$strId}/sharedstreams/webstream"
);
curl_setopt($objCurl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($objCurl, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($objCurl, CURLOPT_POST, 1);
!WOWOW!
!Wowow!
'Akka
'Alala
'Ar'ara
'Arura
'Azza
'Ele'ele
'Ili'ili
'ihi'ihi
@dotsam
dotsam / .htaccess
Created February 9, 2023 23:35
Mastodon Webfinger Redirect/Alias
RewriteCond %{REQUEST_URI} ^/\.well-known\/webfinger$ [NC]
RewriteCond %{QUERY_STRING} .*resource=acct:sam@samedwards\.ca.* [OR,NC]
RewriteCond %{QUERY_STRING} .*resource=acct%3Asam%40samedwards\.ca.* [OR,NC]
RewriteCond %{QUERY_STRING} .*resource=acct:sam@samedwards\.info.* [OR,NC]
RewriteCond %{QUERY_STRING} .*resource=acct%3Asam%40samedwards\.info.* [NC]
RewriteRule ^(.*)$ https://mastodon.social/.well-known/webfinger?resource=acct:samedwards@mastodon.social [R=307,L]
@dotsam
dotsam / vaxcard_shared.md
Last active September 9, 2021 04:41
BC Vaccine Card iOS Shortcut (Updated)

BC Vaccine Card iOS Shortcut (Updated)

This updated version now has you import a pre-made Shortcut that pulls from an album. This is hopefully faster/easier for most people, but does involve jumping through some hoops with opening/running a Shortcut and enabling Untrusted Shortcuts first.

So, your government launched a vaccine card, but there's no app to store it (only one to verify cards), and all they give you is a PDF designed to be printed, and a website you'd have to keep logging in to. So you do the smart thing and take a screenshot of that website. But then what? You've got to dig in to your photos and find that screenshot every time? There has to be a better way!

Well thanks to some built-in iOS features that you might not even know about, there is. We're going to use a "Shortcut" that will pull up an image of your card when double-tapping on the back of your phone.

Note: The "Back Tap" feature is only supported on iPhone 8 and newer. For older phones, adding a the Shortcut as an icon to

@dotsam
dotsam / vaxcard.md
Last active December 19, 2022 03:04
BC Vaccine Card iOS Shortcut

BC Vaccine Card iOS Shortcut

Update

While this version works fine for most people, I've got an updated one that does use a shared Shortcut and does a few more fancy tricky like max out and then reset your phone's brightness, and also pulls from a named album, which can be a lot faster for people with a ton of photos on their phone. Check it out here!

So, your government launched a vaccine card, but there's no app to store it (only one to verify cards), and all they give you is a PDF designed to be printed, and a website you'd have to keep logging in to. So you do the smart thing and take a screenshot of that website. But then what? You've got to dig in to your photos and find that screenshot every time? There has to be a better way!

Well thanks to some built-in iOS features that you might not even know about, there is. We're going to make a "Shortcut" that will pull up an image of your card when double-tapping on the back of your p

@dotsam
dotsam / custom.ini
Last active November 10, 2022 22:06
Dev Apache Config
[PHP]
memory_limit = 2048M
max_input_time = -1
max_input_vars = 3000
;max_execution_time = 0
output_buffering = 0
post_max_size = 200M
upload_max_filesize = 200M
short_open_tag = On
sendmail_path = /opt/homebrew/bin/MailHog sendmail
@dotsam
dotsam / trunk-recorder-crest-all.json
Created May 16, 2019 19:44
Trunk-Recorder CREST Config w/ 3 SDRs, P25 and SmartNet
{
"sources": [
{
"center": 141626000,
"rate": 2048000,
"error": 100,
"gain": 40,
"squelch": -35,
"digitalRecorders": 6,
"modulation": "fsk4",
@dotsam
dotsam / ca.samedwards.gpg-agent.plist
Last active February 16, 2020 06:45
launchd gpg-agent wrapper
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ca.samedwards.gpg-agent</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/gpg-agent-wrapper</string>
<string>/usr/local/bin/gpg-agent</string>
@dotsam
dotsam / gist:db096168d197201c6ee1a242ecfc2b09
Created November 30, 2016 21:08
MacBook Loss of Audio Fix
alias fixaudio='sudo kextunload /System/Library/Extensions/AppleHDA.kext;sudo kextload /System/Library/Extensions/AppleHDA.kext'
Verifying that +samedwards is my blockchain ID. https://onename.com/samedwards