This script has moved to its own repository. Please download there.
This file contains hidden or 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 |
This file contains hidden or 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 | |
| */ |
Convert an iThoughts .itmz mind map file into a Mermaid mindmap for display in Cursor.
-
Get the itmz path: The user may provide a path (e.g. from iCloud:
~/Library/Mobile Documents/iCloud~com~toketaware~ios~ithoughts/Documents/Map Name.itmz). If no path is given, ask for it. -
Run the converter:
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # matrix: matrix-ish display for Bash terminal | |
| # Author: Brett Terpstra 2012 <http://brettterpstra.com> | |
| # Contributors: Lauri Ranta and Carl <http://blog.carlsensei.com/> | |
| # | |
| # A morning project. Could have been better, but I'm learning when to stop. | |
| ### Customization: | |
| blue="\033[0;34m" |
This file contains hidden or 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 | |
| # 256-color hex interpretation for terminal colorization | |
| # | |
| # Usage | |
| # "text".color256(foreground, background) | |
| # | |
| # print "Colorize this".color256('#f7921e', '#666') |
This file contains hidden or 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
| # Bash functions for notifying when your internet connection comes back up | |
| # A truly atrocious way to get your attention | |
| nag() { | |
| while true; do | |
| for phrase in "$@"; do | |
| afplay /System/Library/Sounds/Ping.aiff | |
| say "$phrase" | |
| sleep 3 | |
| done |
This file contains hidden or 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
| macappstores://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/redeemLandingPage?code=XXXXXXXXX |
This file contains hidden or 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 | |
| # A simple script to index and search audio files using whisper.cpp | |
| # Saves a text file for each audio file with the transcript, and allows searching through them | |
| # Usage: | |
| # ruby audio-search.rb index [file.mp3] # Index a single file or all .mp3 files if no file is specified | |
| # ruby audio-search.rb search [query] # Search for a query in the indexed transcripts, whole words in search order but allowing characters between | |
| # Search can be fuzzy (words in any order) by adding --fuzzy or -f flag: | |
| # ruby audio-search.rb search --fuzzy [query] | |
| # Requires ffmpeg and whisper-cli to be installed and in the system PATH | |
| require 'fileutils' |
This file contains hidden or 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 | |
| # encoding: utf-8 | |
| # Read /Applications/Setapp to get apps already installed | |
| installed_setapp_apps = Dir.glob('/Applications/Setapp/*.app') | |
| installed_setapp_apps.map! {|app| | |
| File.basename(app,'.app') | |
| } | |
| # Grab the All Apps page from Setapp to get all available apps |
NewerOlder