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
#!/bin/bash | |
# Disable Shift + Command + D | |
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>' |
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
[ | |
///////////////////////////////////// Cursor | |
{ | |
"key": "ctrl+=", | |
"command": "aichat.close-sidebar", | |
}, | |
{ | |
"key": "cmd+backspace", | |
"command": "editor.action.inlineDiffs.cancelPromptBar", | |
"when": "editorTextFocus && hasActivelyGeneratingPromptBarDiff" |
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
[ | |
// TODO: | |
// "cmd+t" is empty | |
{ | |
"key": "cmd+v", | |
"command": "workbench.action.terminal.paste", | |
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported" | |
}, | |
{ | |
"key": "cmd+c", |
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
#!/bin/bash | |
# Copyright (c) 2021 Soumya Deb <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
#![feature(arbitrary_self_types)] | |
use pyo3::prelude::*; | |
use pyo3::pyclass::PyClassShell; | |
use pyo3::types::{PyBytes, PyTuple}; | |
use pyo3::ToPyObject; | |
use bincode::{deserialize, serialize}; | |
use serde::{Deserialize, Serialize}; | |
#[derive(Serialize, Deserialize)] |
https://ubuntu.com/core/docs/networkmanager/configure-wifi-connections
- List devices:
nmcli d
- Turn on:
nmcli r wifi on
- List networks:
nmcli d wifi list
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
# 09Sep23 v1 | |
# https://gist.githubusercontent.com/trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c/raw/ea9293953796d78b8b93e67e046a5583c6cc6d39/tmux_linux.conf | |
# 09Sep23 v2 | |
# https://gist.githubusercontent.com/trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c/raw/51dc5214e47d648039dffe83908e603ab07bf9c2/tmux_linux.conf | |
set -g history-limit 100000 | |
## Change background and border of active pane | |
set-option -g pane-border-style fg=default,bg=default | |
set-option -g pane-active-border-style fg=red,bg=default |
NewerOlder