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
| git log $(git rev-list -g --all) |
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
| # To list any process listening to the port 8080: | |
| lsof -i:8080 |
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://www.thegeekstuff.com/2010/07/bash-string-manipulation/ | |
| https://www.tldp.org/LDP/abs/html/string-manipulation.html |
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
| // evt = ArrowLeft + Shift | |
| const evt = new window.KeyboardEvent("keydown", { | |
| key: "ArrowLeft", | |
| shiftKey: true | |
| }); | |
| document.dispatchEvent(evt); |
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
| # To see mac | |
| cat /sys/class/net/wlan0/address | |
| # To change mac | |
| ip link set wlan0 address MAC |
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 dgram = require('dgram'); | |
| const search = new Buffer([ | |
| 'M-SEARCH * HTTP/1.1', | |
| 'HOST: 239.255.255.250:1900', | |
| 'MAN: "ssdp:discover"', | |
| 'MX: 3', | |
| 'ST: ssdp:all' | |
| ].join('\r\n')); |
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
| git rev-parse --show-toplevel |
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
| #!/usr/bin/env bash | |
| cd /tmp/ | |
| git clone $1; | |
| #get name of repo | |
| _repoFolder=$(echo $1 | cut -d "/" -f 5) | |
| repoFolder=$(echo $_repoFolder | cut -d "." -f 1) | |
| cd $repoFolder; | |
| code $repoFolder; |
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 -type f -name '*.jpg' | rename 's/\.jpeg$/.jpg/' |
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
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { | |
| "key": "f12", | |
| "command": "workbench.action.tasks.runTask", | |
| "args" : "task-deploy" | |
| } | |
| ] |