Skip to content

Instantly share code, notes, and snippets.

View iChris's full-sized avatar
💭
Likely editing a podcast while dreaming of being a coder.

Chris Enns iChris

💭
Likely editing a podcast while dreaming of being a coder.
View GitHub Profile
@philhawksworth
philhawksworth / short-url.sh
Last active September 14, 2023 14:28
Raycast script to shorten a URL with https://findthat.at
#!/bin/zsh
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Short URL
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🔗
# @raycast.argument1 { "type": "text", "placeholder": "URL" }
#!/bin/bash
curl -s -H "Authorization: Bearer $(curl -s --json '{"identifier": "aliceisjustplaying.bsky.social", "password": "letmein"}' https://bsky.social/xrpc/com.atproto.server.createSession | jq -j ".accessJwt")" "https://bsky.social/xrpc/com.atproto.server.getAccountInviteCodes" | jq -r '.codes[].uses[].usedBy' | xargs -I{} -P10 curl -s 'https://plc.directory/{}' | jq -r '.alsoKnownAs[0]' | sed -e 's#at://#@#'
@merlinmann
merlinmann / usage I dislike.md
Last active February 28, 2024 21:24
An Epicenter of Wordsmithing…for the Enterprise.

Usage I Dislike


An Epicenter of Wordsmithing…for the Enterprise.


Words: Ugly, Dumb, or Overpriced

@eleanorkonik
eleanorkonik / readwise-settings.md
Created February 4, 2022 15:05
Eleanor's Readwise Settings

File name

{{title|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(127)}} by {{author|truncate(120)}}

I do this so that weird characters or overly-long file names don't break dropbox or git, since Readwise doesn't natively sanitize things.

Page metadata

Metadata

@jthodge
jthodge / universal-switcher
Created September 6, 2020 22:07
Show macOS app switcher across all monitors
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock
@ttscoff
ttscoff / Dropbox and Backblaze.bunch
Created August 7, 2020 17:52
Bunch.app pause/resume tricks for Dropbox and Backblaze (ideal for Podcast-related Bunches)
# Tricks for Bunch.app
# <https://brettterpstra.com/projects/bunch/>
# Normally we would quit Dropbox just by using:
# !Dropbox
# But Dropbox has some issues with an AppleScript-style quit
# so we revert to sending a KILL signal via shell script
$ killall Dropbox
# if you want to open the Dropbox process when toggling
@curtisj44
curtisj44 / bookmarking-bookmarklet.js
Last active May 11, 2023 17:58
Bookmarking Bookmarklet for Eleventy
// TODO: update this path to your repo on GitHub
const repo = "https://github.com/your-path/goes-here/new/master/posts";
const getToday = () => {
const today = new Date();
let dd = today.getDate();
let mm = today.getMonth() + 1;
const yyyy = today.getFullYear();
if (dd < 10) dd = `0${dd}`;
@IanColdwater
IanColdwater / twittermute.txt
Last active May 23, 2024 18:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet

"POOR BILL"
2019-Nov-07

@teddyschleifer wrote:

"Bill Gates on a wealth tax:

'I've paid over $10 billion in taxes. I've paid more than anyone in taxes. If I had to pay $20 billion, it's fine.'

'But when you say I should pay $100 billion, then I'm starting to do a little math over what I have left over.'"

@philhawksworth
philhawksworth / conference-mc-tips.md
Last active February 13, 2023 21:52
Conference MC-ing tips

👀📎 It looks like you're preparing to MC a conference...

🚨 GIANT DISCLAIMER: This stuff is far from authoritative. But it's what I think works for me, and what I enjoy in an MC when I'm attending a conference.


Biggest tip - enjoy yourself.