- Download WSL2 Kernel
- run
wsl --set-default-version 2
in windows command line, so that all future WSL machine will use WSL2.
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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
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
"editor.rulers": [80,100], | |
"workbench.colorTheme": "Monokai", | |
"explorer.confirmDelete": false, | |
"workbench.colorCustomizations": { | |
// "tab.activeBorder": "#0A84FF", | |
"tab.activeBorderTop": "#c505df", | |
"tab.unfocusedActiveBorder": "#000000" | |
}, |
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 onEdit(event) | |
{ | |
Logger.log("onEdit() triggered with: %s", event); | |
// | |
// User params, edit to suit your needs | |
// | |
var timezone = "PST"; // You can use something like "GMT-7" as well. | |
var timestampFormat = "yyyy-MM-dd HH:mm:ss"; | |
var headerRowNum = 1; // The row containing data headers. |
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
[alias] | |
# template/stub for functional git aliases | |
# my_alias = "!f() { 〈your complex command〉 }; f" | |
# edit git config with default text editor | |
ec = config --global -e | |
# run before each commit :) | |
pre = diff --cached --diff-algorithm=minimal -w |
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
{ | |
"fullscreen": false, | |
"command_history_length": 50, | |
"screen_buffer_size": "120x200", | |
"window_size": "120x50", | |
"cursor_size": "small", | |
"font_face": "Lucida Console", | |
"font_weight": 400, | |
"font_size": "0x14", | |
"font_true_type": true, |
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
{ | |
"fullscreen": false, | |
"command_history_length": 50, | |
"screen_buffer_size": "120x200", | |
"window_size": "120x50", | |
"cursor_size": "small", | |
"font_face": "Lucida Console", | |
"font_weight": 400, | |
"font_size": "0x14", | |
"font_true_type": true, |
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
# Taken from: https://github.com/bobthecow/git-flow-completion/blob/master/git-flow-completion.bash | |
source ~/git-flow-completion.bash | |
if [[ -n "${ConEmuPID}" ]]; then | |
PS1="$PS1\[\e]9;9;\"\w\"\007\e]9;12\007\]" | |
fi | |
# This is used to start ssh-agent once when git-bash is started. |
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
$ scoop list | |
Installed apps: | |
7zip 19.00 | |
adopt11-hotspot 11.0.6-10 [java] | |
adopt8-hotspot 8u212-b03 [java] | |
ant 1.10.7 | |
aria2 1.34.0-1 | |
clink 0.4.9 | |
concfg 0.2020.03.15 |
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 | |
startdir=`pwd` | |
# # find all the LEAF directories that don't have .git somewhere along the path | |
# selection of LEAFs is done in the awk part | |
# the output of find is read line by line, assuming filenames don't have newlines | |
# `find -print0` wouldn't work, as this would screw up the awk part | |
find . -not \( -name .git -prune \) -type d -print | sort -r | awk 'a!~"^"$0{a=$0;print}' | sort | while read -d $'\n' file | |
do | |
echo "Going to -> $file" |
NewerOlder