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 | |
git config user.name ' ' | |
git config user.email '<>' | |
git config --local core.quotepath false | |
git add . | |
msg=$(date +"%Y%m%d_%H%M%S") |
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
$ file `which java javac` | |
# /usr/bin/java: symbolic link to /etc/alternatives/java | |
# /usr/bin/javac: symbolic link to /etc/alternatives/javac | |
$ file /etc/alternatives/java /etc/alternatives/javac | |
# /etc/alternatives/java: symbolic link to /usr/lib/jvm/java-11-openjdk-amd64/bin/java | |
# /etc/alternatives/javac: symbolic link to /usr/lib/jvm/java-11-openjdk-amd64/bin/javac | |
$ LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ls -la /usr/lib/jvm | |
# total 24 |
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 | |
#set -n # Uncomment to check your syntax, without execution. | |
#set -x # Echo on. Uncomment to debug this shell script. |
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
ls -1 *.png | parallel -k 'echo -n {} | jq -s -R -r @uri | xargs printf "<kbd></kbd>\n\n"' > README.md |
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
touch timestamp-$(date +"%Y%m%d_%H%M%S") |
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
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ]; then | |
: | |
else | |
: | |
fi |
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
chrome.storage.local.get(null, function (result) { console.log(result); }); | |
chrome.storage.local.get(null, function (result) { console.log(JSON.stringify(result)); }); |
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
var myObject = { | |
"key_1": "value_1", | |
"key_2": "value_2", | |
"key_n": "value_n" | |
}; | |
for (var keyName in myObject) { | |
if (myObject.hasOwnProperty(keyName)) { | |
// Do something: |
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
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ru |
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 | |
set -x # echo on | |
if [ -d "./.git/" ] ; then | |
: | |
else | |
git init | |
git config --local user.name ' ' |