Skip to content

Instantly share code, notes, and snippets.

@kalenpw
kalenpw / logid.cfg
Last active April 8, 2023 03:22
LogiOps config - MX Master 3 for Mac
// Logiops (Linux driver) configuration for Logitech MX Master 3 for Mac
// More or less mirrors the default Logi Options settings
// Ie mostly just the thumb button gestures
// Several options commented out for reference
// File location: /etc/logid.cfg
devices: ({
name: "MX Master 3 for Mac";
//smartshift: {
@kalenpw
kalenpw / fetch_server_jar.py
Created August 12, 2022 04:31
Downloads most recent server.jar for Minecraft
import urllib.request, json
with urllib.request.urlopen("https://launchermeta.mojang.com/mc/game/version_manifest.json") as manifest_url:
manifest_data = json.loads(manifest_url.read().decode())
current_url = manifest_data['versions'][0]['url']
with urllib.request.urlopen(current_url) as current_url:
current_data = json.loads(current_url.read().decode())
jar_url = current_data['downloads']['server']['url']
@kalenpw
kalenpw / oh-my-zsh .zshrc
Last active January 10, 2022 18:08
oh-my-zsh .zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH:
# Path to your oh-my-zsh installation.
export ZSH="/Users/myusername/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes