Skip to content

Instantly share code, notes, and snippets.

View confluencepoint's full-sized avatar
:octocat:
Focusing

confluencepoint confluencepoint

:octocat:
Focusing
View GitHub Profile
@confluencepoint
confluencepoint / Open to Noisili tab and play first combo.scpt
Created May 28, 2026 04:04 — forked from whoaitsaimz/Open to Noisili tab and play first combo.scpt
AppleScript to activate specified tab by page title, OR open by URL if not already, and click buttons in webpage -- Google Chrome
tell application "Google Chrome"
activate
set tabfound to false
if (exists window 1) then
set i to 0
repeat with t in (tabs of window 1)
set i to i + 1
if title of t is "Noisli - Improve Focus and Boost Productivity with Background Noise" then
set (active tab index of window 1) to i
@confluencepoint
confluencepoint / 1-goku-tutorial.md
Created May 28, 2026 03:51 — forked from johnlindquist/1-goku-tutorial.md
GokuRakuJoudo: Write Your Karabiner Config in EDN — tutorial + full config by @johnlindquist

GokuRakuJoudo: Write Your Karabiner Config in EDN

GokuRakuJoudo (Goku) lets you write your Karabiner-Elements keyboard config in a concise EDN format instead of editing Karabiner's 20,000+ line JSON by hand.

This gist walks through setup, explains every major concept, and includes my full 1,500-line karabiner.edn as a working real-world example.


Install

@confluencepoint
confluencepoint / heic2jpg.sh
Created January 20, 2024 08:26 — forked from AkdM/heic2jpg.sh
HEIC to JPG using terminal (in macOS)
# Add this to your .zshrc or .bashrc
# Use it by simply calling `heic2jpg pwd/picture1.heic pwd/picture2.heic pwd/picture3.heic`
# Only compatible with macOS. You can also change line 21 to make it compatible with something else.
# If you decide to delete source files, those will be in the bin, not deleted as with `rm` command.
# You will need imagemagick bin to convert the pictures: `brew install imagemagick`
heic_convert() {
echo "Converting $# .HEIC files to .jpg"
for var in "$@"
// #popclip extension for ChatGPT
// name: LimboGPT
// icon: iconify:logos:openai-icon
// language: javascript
// module: true
// entitlements: [network]
// options: [{
// identifier: apikey, label: API Key, type: string,
// description: 'Obtain API key from https://platform.openai.com/account/api-keys'
// }]

Ad-free Twitter

Inject this css snippet to remove all ads from your Twitter timeline.

div[data-testid="placementTracking"]:has(path[d="M19.498 3h-15c-1.381 0-2.5 1.12-2.5 2.5v13c0 1.38 1.119 2.5 2.5 2.5h15c1.381 0 2.5-1.12 2.5-2.5v-13c0-1.38-1.119-2.5-2.5-2.5zm-3.502 12h-2v-3.59l-5.293 5.3-1.414-1.42L12.581 10H8.996V8h7v7z"]) {
  display: none;
}

Karabiner layouts for symbols and navigation

Gavin Sinclair, January 2022

Introduction

I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.

The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.

@confluencepoint
confluencepoint / Copy & Get Selection to Clipboard JXA.js
Last active January 2, 2023 19:32 — forked from JMichaelTX/Copy & Get Selection to Clipboard JXA.js
Copy & Get Selection to Clipboard using JavaScript for Automation (JXA) [Ver 1.1.1]
'use strict';
var app = Application.currentApplication()
app.includeStandardAdditions = true
var mySelection = copySelection("Safari", 1)
mySelection
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function copySelection(pAppName, pTimeLimitSec) {
@confluencepoint
confluencepoint / gist_markdown_examples.md
Created December 29, 2022 08:21 — forked from GerHobbelt/gist_markdown_examples.md
A better markdown cheatsheet.

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@confluencepoint
confluencepoint / GoogleDorking.md
Created December 29, 2022 08:07 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@confluencepoint
confluencepoint / caps_lock_to_command_escape.json
Created November 24, 2022 19:54 — forked from calebporzio/caps_lock_to_command_escape.json
A Karabiner-Elements complex modification rule
{
"title": "Caps Lock To Command/Escape",
"author": "Caleb Porzio(calebporzio.com)",
"homepage": "https://gist.github.com/calebporzio/2d07cd0e3013e7eaf16f5a2ea4f594ae",
"import_url": "karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/calebporzio/2d07cd0e3013e7eaf16f5a2ea4f594ae/raw/08c397b09fbaa5ec90cf161e5bca97bdb43e8c55/caps_lock_to_command_escape.json",
"rules": [
{
"description": "Caps Lock to Command/Escape",
"manipulators": [
{