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
# В данном примере архивируется папка Documents в архив с именем типа documents-20170923_184015.tar.gz | |
tar --create --gzip --verbose --file "documents-$(date +"%Y%m%d_%H%M%S").tar.gz" Documents |
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
wget -O - https://raw.githubusercontent.com/github/gitignore/master/{Global/JetBrains.gitignore,Gradle.gitignore,Java.gitignore} > ".gitignore" |
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
git push com.github.gusenov.<repository> <commit hash>:master |
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 ' ' |
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
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
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
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
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
ls -1 *.png | parallel -k 'echo -n {} | jq -s -R -r @uri | xargs printf "<kbd></kbd>\n\n"' > README.md |
OlderNewer