Skip to content

Instantly share code, notes, and snippets.

View tlockney's full-sized avatar

Thomas Lockney tlockney

View GitHub Profile
{"lastUpload":"2020-11-24T02:26:27.428Z","extensionVersion":"v3.4.3"}
@tlockney
tlockney / enable.js
Created October 15, 2022 18:44
Enable TweetDeck Beta
// enter the following into the js console of your browser
document.cookie = "tweetdeck_version=beta"
#!/usr/bin/env bash
set -euo pipefail
shopt -s inherit_errexit
# Make sure HandBrakeCLI is in the path -- I've got it installed in ~/bin for now
# since it disappeared from Homebrew
PATH=$HOME/bin:$PATH
MOVIES=$HOME/Movies
NAS_DIR=/Volumes/Media/Movies
@tlockney
tlockney / mp3-to-video.sh
Created March 1, 2023 05:02
Combine a jpeg file and mp3 to make a video
#!/usr/bin/env sh
# from https://superuser.com/a/1041818
ffmpeg -loop 1 -i img.jpg -i music.mp3 -shortest -acodec copy -vcodec mjpeg result.mkv
@tlockney
tlockney / deno-jupyter-test.ipynb
Last active July 3, 2024 05:26
A quick example of Deno.serve
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
local wezterm = require("wezterm")
local config = {}
config.automatically_reload_config = true
config.enable_tab_bar = false
config.window_close_confirmation = "NeverPrompt"
config.window_decorations = "RESIZE"
-- config.default_cursor_style = "BlinkingBar"
config.color_scheme = "Nord (Gogh)"
-- config.font = wezterm.font("FiraCode Nerd Font Mono")
@tlockney
tlockney / init.lua
Last active December 28, 2024 00:26
function launchAppOnHotkey(modifiers, key, appName)
hs.hotkey.bind(modifiers, key, function()
local app = hs.application.find(appName)
if app == nil then
hs.application.launchOrFocus(appName)
elseif app:isFrontmost() then
app:hide()
else
local win = app:mainWindow()
spaces.moveWindowToSpace(win:id(), spaces.activeSpaceOnScreen())