This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://wiki.archlinux.org/title/Xbindkeys | |
bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ | |
bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- | |
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle | |
bind=, XF86AudioNext, exec, playerctl next | |
bind=, XF86AudioPrev, exec, playerctl previous | |
bind=, XF86AudioPlay, exec, playerctl play-pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function InputCaptureTabs() { | |
const [input, set_input] = useState(""); | |
return (<Input | |
multiline | |
placeholder="Type some code in" | |
value={users} | |
onChange={(event) => set_input(event.target.value)} | |
onKeyDown={(event) => { | |
if (event.key === "Tab") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://neovim.discourse.group/t/autoformat-using-first-option-disable-formatting-on-tsserver/2500/3 | |
require'lspconfig'.tsserver.setup{ | |
on_attach = function(client) | |
client.server_capabilities.documentFormattingProvider = false | |
client.server_capabilities.documentRangeFormattingProvider = false | |
end, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[font] | |
# size = 12 | |
normal = { family = "Monaspace Neon", style = "Regular" } | |
italic = { family = "Monaspace Radon", style = "Italic" } | |
[shell] | |
program = "/bin/zsh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# modified from https://github.com/railwayapp/cli/blob/master/.github/workflows/release.yml | |
# just replce every instance of "ENVX" or "envx" with your app name (or leave it, I don't care) | |
name: CD | |
on: | |
push: | |
branches: | |
- main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin indent on | |
" On pressing tab, insert 2 spaces | |
set expandtab | |
" show existing tab with 2 spaces width | |
set tabstop=2 | |
set softtabstop=2 | |
" when indenting with '>', use 2 spaces width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// get the parent process info, translated from | |
// https://gist.github.com/mattn/253013/d47b90159cf8ffa4d92448614b748aa1d235ebe4 | |
fn get_parent_process_info() -> Option<(DWORD, String)> { | |
let mut pe32: PROCESSENTRY32 = unsafe { zeroed() }; | |
let pid = unsafe { GetCurrentProcessId() }; | |
let h_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) }; | |
let mut ppid = 0; | |
if h_snapshot == INVALID_HANDLE_VALUE { | |
return None; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample workflow for building and deploying a Next.js site to GitHub Pages | |
# | |
# To get started with Next.js see: https://nextjs.org/docs/getting-started | |
# | |
name: Check NextJs build | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] |