This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Card-based layout for Linkding | |
Large images, fully clickable | |
Entire card selectable in bulk edit mode | |
Tags moved to expandable sidebar | |
Author: Brett Terpstra (https://brettterpstra.com) | |
GitHub: @ttscoff <https://github.com/ttscoff> | |
License: MIT | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Archive linkding bookmarks to Markdown files | |
# Can use [Gather](https://brettterpstra.com/projects/gather-cli/) | |
# for conversion (if installed), or use Marky | |
# the Markdownifier (web-based). | |
# | |
# See options below for configuration | |
# | |
# This script is designed to run once initially, and then | |
# be set to run in the background at intervals using cron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug1: Remote: /Users/ttscoff/.ssh/authorized_keys:11: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding | |
debug1: Remote: /Users/ttscoff/.ssh/authorized_keys:11: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding | |
debug1: Sending command: ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'yaml' | |
# Settings is a YAML file containing `:token:` and `:domain:` keys. | |
settings = YAML.load(IO.read(File.expand_path('~/.config/bitly/config.yaml'))) | |
bitly_key = settings[:token] | |
bitly_domain = settings[:domain] | |
debug = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -W1 | |
# frozen_string_literal: true | |
# Mac only | |
# | |
# Usage: grabicon.rb SEARCH TERMS [%[small|medium|large] [@[mac|ios|iphone|ipad]] | |
# If the search terms match a local app, that app's icon will be extracted and converted to PNG | |
# If the search terms don't match a local app, iTunes will be searched | |
# If the search terms end with "@mac", "@iphone", "@ipad", or "@ios", iTunes will be searched for a match | |
# If the search terms end with "%large", "%medium", "%small", or "%XXX" icon will be scaled to size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -W1 | |
# frozen_string_literal: true | |
# Mac only | |
# | |
# Usage: grabicon.rb SEARCH TERMS [%[small|medium|large] [@[mac|ios|iphone|ipad]] | |
# If the search terms match a local app, that app's icon will be extracted and converted to PNG | |
# If the search terms don't match a local app, iTunes will be searched | |
# If the search terms end with "mac", "iphone", "ipad", or "ios", iTunes will be searched for a match | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'cgi' | |
input = $stdin.read.force_encoding('utf-8') | |
# Handle [[links]] | |
input.gsub!(/\[\[(?<content>.*?)\]\]/) do | |
m = Regexp.last_match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -W1 | |
# frozen_string_literal: true | |
# This script scans an RSS feed for the latest post, and if | |
# it hasn't already been posted to Mastodon, creates a new | |
# toot with a link to it. | |
require 'json' | |
require 'optparse' | |
require 'rss' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# This script takes simple Markdown lists and converts them for use in | |
# Bike (https://www.hogbaysoftware.com/bike/), a Mac outliner app from | |
# Hog Bay Software. | |
# | |
# It doesn't handle nested code blocks or any non-list Markdown. It just | |
# turns simple lists into text Bike will recognize when it's pasted into | |
# a Bike document. Multiple paragraphs in a list item become additional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'optparse' | |
# Have you ever been adding code to a Markdown post and | |
# wondered what syntax label would give you the right | |
# highlighting for your fenced code block? This script can | |
# take either a file extension or a common name of a language | |
# and let you know what lexers are supported for it, as well |
NewerOlder