Skip to content

Instantly share code, notes, and snippets.

View zengtianli's full-sized avatar
💭
I may be slow to respond.

tianli zengtianli

💭
I may be slow to respond.
  • Zhejiang University
  • Hangzhou
  • 11:03 (UTC +08:00)
View GitHub Profile
@zengtianli
zengtianli / init.lua
Created November 12, 2023 23:49 — forked from overset/init.lua
Hammerspoon Config: 3x3 window tiling, Music control (stop/play, fwd/back, volume) and attempt at global mute for microphone videoconferencing
-- This manually toggles play/pause on Apple Music.app
function apple_music_playback()
hs.application.launchOrFocus("Music")
local aapl_music = hs.appfinder.appFromName("Music")
local str_pause = {"Controls", "Pause"}
local str_play_and_pause = {"Controls", "Play"}
local pause = aapl_music:findMenuItem(str_pause)
@zengtianli
zengtianli / instructions.md
Created September 12, 2023 03:39 — forked from svpino/instructions.md
Installing TensorFlow on Apple Silicon

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor