Join us for an evening of IndieWeb personal site demos and discussions!
Liked: https://twitter.com/_upgradefm/status/1196475432993996800
Join us for an evening of IndieWeb personal site demos and discussions!
Homebrew Website Club – Seattle Area [November 13 2019] RSVP: no. I can’t make HWC but @dangerdave can. @timswast @SteveStreza @altsalt @funwhilelost @rrrrrrrix @codynhat @phedhex
This weekβs guest, Ton Zylstra just celebrated his 17th year of blogging. He works as a consultant, assisting governments and private entities in being open by design, as part of a more comprehensive data governance approach. Together with his wife, he organizes a βbirthday unconference,β a un…
CREDITS: Dr. Andreas Kay https://www.youtube.com/user/DrAndreasKay Dr.Kay has captured intimate portraits of many wonderful. All of his photos and footage ar…
Happy 50th birthday internet! Glad to see you’ve gone IndieWeb!
A Shareable macOS Remote Control Shortcut
Requires 2 shortcuts. One parses the JSON at JSON Page shortcuts-simple-remote-commands to generate commands. The other provides selection menus and then runs the selected command on the selected host.
Future:
- use a github repo to host json.
- Display name for selection rather than command.
- Restore option to run a shortcut for more complex commands
- Examination of JSON Fetching Shortcut
Install both shortcuts:
- Fetch JSON File (can be replaced with a shortcut that returns a List of Dictionaries (see JSON).
Fetch https://dougbeal.com/shortcuts-simple-remote-commands/ v1 - Select host and command, then run command on host via SSH.
macOS Remote Automation v1
Then
- Open macOS Remote Automation v1 and modify
LIST
to have your hostnames and theDICTIONARY
to have your username. - Find
SHORTCUTS Run
and select Fetch https://dougbeal.com/shortcuts-simple-remote-commands/ v1
See Remote control your Mac with your iPhone and SSH Key Shortcuts to set up your Mac for remote access.
#NovBaD #NaBloPoMo #challenge4of30 #challenge #automation #shortcuts #iOS #macOS #SSH
What Can I Do With my Mac Over SSH?
- open a livestream in VLC via command line
open -a VLC.app "http://stream.relay.fm:8000/stream"
open -a "Quicktime Player"
may also work (only if stream is currently live)
useful livestream URLs-
Relay FM
http://stream.relay.fm:8000/stream
-
The Incomparabletheincomparable.com
http://www.theincomperable.com:4200/live
- Accidental Tech Podcast
http://marco.org:8001/listen
-
Relay FM
- mute macOS volume via command line
osascript -e 'set volume output muted true'
osascript -e 'set volume output muted false'
- start an iTunes playlist with shuffle on
osascript -e 'tell application "iTunes" to shuffle enabled' -e 'tell application "iTunes" to play playlist named "best"'
osascript -e 'tell application "iTunes" to stop'
- Future ideas
- start/stop Quicktime screen recordings on macOS via iOS shortcuts. Running into saving problems. Also complex enough that AppleScript files will be downloaded to Mac.
- clipboard via SSH. Sometimes Handoff clipboard fails me, would be nice to have a backup. Should be able to go either way
- If there is interest, I might try to package these up more as a sharable shortcut
#NovBaD #NaBloPoMo #challenge3of30 #challenge #automation #shortcuts #iOS #macOS #SSH #AppleScript #Podcasts
Remote control your Mac with your iPhone and SSH Key Shortcuts
macOS Preperation – Enable Remote Login on target Mac
- Open System Preferences
- Find Sharing (or search for “remote”)
- Turn on Remote Login. Enable “All Users” or add just one.
- Note the machine name (dougbeal-mb1.local), you will need it for the shortcut. You can also edit the name here.
Create ssh shortcut on iOS
- Launch Shortcuts application.
- Create a new shortcut.
- Add Action to shortcut.
- Search for
ssh
and selectRun Script Over SSH
. - Tap
Show More
. - In the
Authentication
section, selectSSH Key
. Shortcuts will automatically generate a key for you. - Tap
Script
and swipe above keyboard and tapShortcut Input
. - Tap on
SSH Key
and tap onShare Public Key
. Get the public key to your mac (AirDrop, Handoff Clipboard, Apple Notes will all work). - make sure
.ssh
directory exists - append public key to
authorized_keys
file - Create a new shortcut
- add action
TEXT
with:
pmset displaysleepnow
- add action
Run Shortcut
, choose shortcut from previous section
Install public key on Mac
Assumes public key is on the clipboard.
mkdir -p ~/.ssh
pbpaste >> ~/.ssh/authorized_keys
Create a shortcut to put Mac Display to sleep
Now when you run the shortcut, your display will go to sleep.
#NovBaD #NaBloPoMo #challenge2of30 #challenge #automation #shortcuts #iOS #macOS #SSH