--enable-features=PasswordImportCreate tmux config file in your home directory:
touch ~/.tmux.conf
-
To enable mouse support:
set -g mouse on -
To enable 256color (to fix highlighting style in
zsh-autosuggestionsin my case):
set -g default-terminal screen-256color
This file contains hidden or 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
| find . -iname 'fileNamePattern' -exec sh -c 'fullpath={};path=$(dirname $fullpath);filename=$(basename $fullpath); ln -s $filename "${path}/linked_${filename}" ' \; |
This file contains hidden or 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
| # check the existing permissions , the command will show you the current file permissions like 100644 | |
| git ls-files --stage | |
| # update the file permission | |
| git update-index --chmod=+x 'name-of-shell-script' | |
| # check-in the files | |
| git commit -m "Made a file executable" |
This file contains hidden or 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
| # View all network interfaces | |
| ip a | |
| # View all interfaces traffic-volume | |
| ip -s link show | |
| # Find your gateway IP | |
| ip route | |
| ip route | grep default |
This file contains hidden or 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://go.microsoft.com/fwlink/?LinkID=825636&clcid=0x409 |
This file contains hidden or 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
| const asyncAction = ( name )=>{ | |
| return new Promise(( resolve , reject )=>{ | |
| setTimeout(()=>{ | |
| resolve("kk , promise resolved "+ name +" !"); | |
| //reject("rejected") | |
| },3000); | |
| }); | |
| }; | |
| (async ()=>{ |
This file contains hidden or 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/zsh | |
| #################################################### | |
| ## Notice : use for development environment only. ## | |
| #################################################### | |
| #Update all images | |
| docker images --format "{{.Repository}}:{{.Tag}}" | grep -v "<none>" | xargs -L1 docker pull |
This file contains hidden or 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
| echo YourPass | sudo openconnect -u YourUsername --authgroup=DEFAULT -b --passwd-on-stdin --cafile=/path/to/ca.crt --servercert=YourServerCert --pfs Server:Port |