Skip to content

Instantly share code, notes, and snippets.

View farmerbb's full-sized avatar

Braden Farmer farmerbb

  • Somewhere, Utah
View GitHub Profile
@farmerbb
farmerbb / chatgpt.kts
Created March 16, 2023 04:07
Simple CLI interface to ChatGPT (OpenAI's code completion API) using Kotlin and kscript
#!/bin/bash
/*/bin/true
[[ -z $(which kscript) ]] && install-kscript
kscript -s "$0" "$@"
exit $?
*/
@file:DependsOn("com.github.ajalt.clikt:clikt-jvm:3.0.1")
@farmerbb
farmerbb / optimizely-json-height.user.js
Created October 21, 2022 22:27
Userscript to increase the height of the JSON editor box for Optimizely feature variables
// ==UserScript==
// @name Optimizely - Increase Height of JSON Editor
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Increases the height of the JSON editor box for Optimizely feature variables
// @author Braden Farmer
// @match https://app.optimizely.com/*
// @grant none
// ==/UserScript==
@farmerbb
farmerbb / scrcpy-desktop-mode.sh
Last active March 14, 2023 22:58
Pseudo-desktop mode using scrcpy
#!/bin/bash
show-help() {
BASENAME=$(basename "$0")
echo "Usage: $BASENAME [device-name] [optional-resolution] [optional-density]"
exit 1
}
[[ $1 = "-h" || $1 = "--help" ]] && show-help