Skip to content

Instantly share code, notes, and snippets.

@deskangel
deskangel / keybindings.dconf
Created May 15, 2020 12:05
keybindings for gnome dumped by dconf
[org/gnome/mutter/keybindings]
switch-monitor=['XF86Display']
toggle-tiled-left=['<Primary><Alt>Left']
toggle-tiled-right=['<Primary><Alt>Right']
[org/gnome/desktop/wm/keybindings]
activate-window-menu=@as []
close=['<Super>q']
maximize=@as []
move-to-monitor-down=@as []
@deskangel
deskangel / keybindings.json
Last active May 7, 2021 00:56
Personal vscode keybindings for Ubuntu
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+k",
"command": "deleteAllRight",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+k",
"command": "-deleteAllRight",
@deskangel
deskangel / trash.sh
Last active June 18, 2021 23:58
trash files to trash bin
#!/bin/sh
# move files to trash bin
# NOTICE: creat ~/.Trash folder first on non-macos system
POST_FIX=$(date "+%Y-%m-%d %H-%M-%S")
echo $POST_FIX
for var in "$@"; do
mv -v "$var" ~/.Trash/"$var $POST_FIX"
@deskangel
deskangel / scp2.sh
Created January 30, 2022 13:36
scp handy functions
#!/bin/bash
LOCAL_ARGS="${@:1:$(($#-1))}"
LAST_ARGS="${@:$#}"
set -x
scp $LOCAL_ARGS root@192.168.1.1:$LAST_ARGS
set +x