Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
💪
learning things

Andy Piper andypiper

💪
learning things
View GitHub Profile
@andypiper
andypiper / update_wifi.sh
Last active June 18, 2024 09:22
Update TIldagon wifi network settings
#!/bin/bash
# Script to set the WiFi SSID and password on the Tildagon
# Author: Andy Piper
#echo "This script sets the WiFi SSID and password on the Tildagon."
#echo "Usage: $0 [port] [ssid] [password]"
#echo " port : The USB port for the Tildagon (e.g., /dev/ttyUSB0)"
#echo " ssid : The WiFi SSID"
#echo " password : The WiFi password"
@andypiper
andypiper / webfinger
Last active March 18, 2024 23:01 — forked from AaronNGray/webfinger
#!/bin/bash
# webfinger (macOS)
# needs GNU getopt since macOS doesn't support relevant options
# and jq - use `brew install gnu-getopt jq`
if [ ! `which jq` ]
then
echo Installing 'jq'
brew install jq
fi

http "https://api.w3.org/groups?items=1000" | jq '._links.groups[] | .title'

@andypiper
andypiper / 0-Fedi-recipes.md
Last active January 25, 2024 16:01
Fedi recipes

Fedi recipes

A scratchpad of quick and dirty CLI calls to noodle against various #Fediverse-related APIs.

Tools used

I use a lot of curl or httpie and jq.

Variables

@andypiper
andypiper / chrome-tabs.sh
Created October 27, 2023 21:34
Recover suspended tabs
chrome-cli list links | rg suspended\.html > tabs.txt
while read -r line; do tabid=`echo $line | cut -c 2-11`; url=`echo $line | awk -F "uri[=]" '{print $NF}'`; chrome-cli open $url -t $tabid; done < tabs.txt
@andypiper
andypiper / fediwall.json
Last active October 17, 2023 02:05
fediwall-test.json
{
"servers": [
"andypiper.social"
],
"tags": [
"3dprinting"
],
"accounts": [
],
@andypiper
andypiper / ato2023.json
Last active October 17, 2023 16:03
Fediwall for AllThingsOpen2023
{
"servers": [
"fosstodon.org",
"infosec.exchange",
"toot.community",
"universeodon.com",
"mastodon.social",
"hachyderm.io",
"mas.to",
"mstdn.social",
@andypiper
andypiper / bookmarks-ap.csv
Created September 20, 2023 13:57
An example export file from Postmarks for testing
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
"title","url","description","tags","created_at","updated_at"
"My Glitch in Bio links page","https://andypiper.me","A LinkTree-style set of links for my major web and social presences","#links #glitchinbio #bio #andypiper #personal","2023-09-07 22:27:31","2023-09-07 22:27:31"
"OMG Andy Piper LOL","https://andypiper.omg.lol","A quick landing page, including a /now page and basic info. Built on omg.lol","#andypiper #bio #personal #omglol #now","2023-09-07 22:28:46","2023-09-07 22:28:46"
"Mastodon API documentation","https://docs.joinmastodon.org/client/intro/",,"#mastodon #fediverse #activitypub #api #rest #developer #docs #mastodonapi","2023-09-07 22:41:28","2023-09-07 22:41:28"
"Mastodon API client libraries and SDKs","https://docs.joinmastodon.org/client/libraries/",,"#developer #coding #api #rest #mastodon #mastodonapi #sdk #library","2023-09-07 22:42:36","2023-09-07 22:42:36"
"Useful Resources for getting started in DevRel","https://gist.github.com/andypiper/7fdb73f9713b7e1f7e5e7ac373f635cb","Andy Piper's l
@andypiper
andypiper / hashtags.md
Created August 15, 2023 10:12
Get Mastodon followed hashtags
$ curl -s --header "Authorization: Bearer $TOKEN" https://$INSTANCE/api/v1/followed_tags | jq '.[] | .name' 
"mechanicalkeyboards"
"europython2023"
"cricut"
"metaverse"
"playdate"
"Watchy"
"kingstonuponthames"
"hextraction"