Skip to content

Instantly share code, notes, and snippets.

View Strajk's full-sized avatar
🐣
knock knock…

Pavel 'Strajk' Dolecek Strajk

🐣
knock knock…
View GitHub Profile
@Strajk
Strajk / gist:2e7d57e65e69365e02567d103f812496
Created January 5, 2025 16:30
BananaCrypt Documentation
### **BananaCrypt Documentation**
* * *
## **Overview**
BananaCrypt is a revolutionary encryption library inspired by the peeling complexity of bananas. It uses the potassium levels of bananas as the base for its cryptographic algorithms. Perfect for developers who want to keep their secrets safe and fruity.
* * *
// Name: Chrome Profiles
// Description: List Chrome profiles and copy their path to clipboard/open in Finder
// Author: Strajk
import '@johnlindquist/kit'
import { Choice } from '@johnlindquist/kit/types';
const chromeAppSupportPaths = [
home('Library/Application Support/Google/Chrome/'),
home('Library/Application Support/Google/Chrome Canary/'),
// Name: Night Shift
// Description: Control Night Shift on macOS
// Author: Pavel 'Strajk' Dolecek
// Acknowledgements:
// - https://github.com/smudge/nightlight
// - https://github.com/shmulvad/alfred-nightshift/
// Notes:
// nightlight CLI usage:
// on/off: `nightlight on|off|toggle`, status will show current state
// temp: `nightlight temp [0-100]`, no argument will show current temperature
// Name: Faker
// Description: Generate fake data with faker.js
// Author: Pavel 'Strajk' Dolecek
// Twitter: @straaajk
import "@johnlindquist/kit"
import { faker } from '@faker-js/faker';
import { Choice } from "@johnlindquist/kit";
// Name: Karabiner Elements Profile Switcher
// Acknowledgements:
// - https://www.alfredforum.com/topic/9927-karabiner-elements-profile-switcher/
// Notes:
// - Probably could also work with cli https://github.com/raycast/extensions/blob/be03024b4c4f4f1ad0af7f4d20ea4630d7f0ee20/extensions/karabiner-profile-switcher/src/model/KarabinerManager.ts
import "@johnlindquist/kit"
import fs from 'fs'
const CONFIG_PATH = home('.config/karabiner/karabiner.json')
// Name: Disposable email
// Description: Generate a disposable email address, open the inbox in the browser, and copy the email address to the clipboard
// Acknowledgments:
// - https://www.alfredforum.com/topic/4643-temporary-email-%E2%80%94-generate-disposable-email-inboxes/
import "@johnlindquist/kit"
import { uniqueNamesGenerator, adjectives, animals, colors } from 'unique-names-generator';
// The ones with auto: true will copy the email address to clipboard, the ones with auto: false will not
// Name: Clear MacOS notifications
// Description: Only visible notifications – clearing not visible notifications is not possible
import "@johnlindquist/kit"
await jxa(`
Application("System Events")
.applicationProcesses.byName("NotificationCenter")
.windows[0]
.groups[0]
// Name: Lyrics on Genius
// Description: Look up Lyrics of Current Song on Rap Genius
// Acknowledgments:
// - Ryan Rudzitis: Look up Lyrics of Current Song on Rap Genius
import "@johnlindquist/kit"
let appsToTry = [
"Music",
"Spotify"
// Name: Messages 2FA codes
// Description: Search for 2FA codes in your Messages, within the last 30 minutes
// Ackowledgements:
// - https://github.com/squatto/alfred-imessage-2fa/
// - https://github.com/raycast/extensions/tree/main/extensions/imessage-2fa
import "@johnlindquist/kit"
import Database from 'better-sqlite3';
let preferences = {
// Name: Keyboard Maestro
// Description: Run or edit a Keyboard Maestro macro
// Author: Pavel 'Strajk' Dolecek
// Twitter: @straaajk
// Cache: true
import "@johnlindquist/kit"
import plist from 'plist'
import dedent from "dedent"