Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
🧳
Gearing up for FOSDEM.

Andy Piper andypiper

🧳
Gearing up for FOSDEM.
View GitHub Profile
@andypiper
andypiper / plugins.txt
Created January 5, 2025 21:09
My Joplin plugins to install
Auto show active note in sidebar
Automatic Backlinks to note
Combine notes
Convert Text To New Note
Copy link to active note
Csv Import
Cursor Sync
Emoji
Favorites
GitHub Theme
@andypiper
andypiper / Rw2024.json
Last active December 6, 2024 04:19
Rubyworld
{
"servers": [
"mstdn.jp",
"ruby.social",
"mastodon.social",
"mastodon.online",
"fosstodon.org",
"famichiki.jp"
],
"tags": [
@andypiper
andypiper / set-transparency.md
Created October 20, 2024 18:05
Set transparency in Ptyxis (GNOME Terminal) in Fedora 41

Get the UUID of the default profile

Substitute that value in to the second command to enable transparency level

$ dconf read /org/gnome/Ptyxis/default-profile-uuid
'3aae5a177777aa966b1fd63467153e2d'
$ dconf write /org/gnome/Ptyxis/Profiles/3aae5a177777aa966b1fd63467153e2d/opacity 0.85
@andypiper
andypiper / ExcUserFault_lsd-2024-09-21-204904.ips
Created September 21, 2024 21:02
Sequoia post-upgrade crash
{"is_simulated":1,"app_name":"lsd","timestamp":"2024-09-21 20:49:04.00 +0100","app_version":"","slice_uuid":"f21affd7-8186-3d8e-8b33-2ccdddd75655","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.0 (24A335)","roots_installed":0,"incident_id":"1F55F93A-BBFD-43B7-826A-ADBB3ED0036A","name":"lsd"}
{
"uptime" : 320,
"procRole" : "Unspecified",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 674,
"osVersion" : {
@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