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/sh | |
#export SSH_AUTH_SOCK=/run/user/$EUID/keyring/.ssh | |
#export SSH_AGENT_PID=$(pgrep -nu $USER ssh-agent) | |
$HOME/.nvm/versions/node/v10.15.3/bin/node $HOME/.nvm/versions/node/v10.15.3/bin/joplin sync > /dev/null | |
cd ~/workspace.private/joplin_storage # <- path to joplin note repository | |
git add . && git commit --no-gpg-sign -m "sync notes from $(hostname)" > /dev/null |
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 decodeHtml(value) { | |
if (value) { | |
return $('<div/>').html(value).text(); | |
} | |
return value; | |
} | |
function encodeHtml(value) { | |
if (value) { | |
return $('<div/>').text(value).html(); |
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
[^:]+\s?\w://(.+@){0,1}([^/ ?]*) |
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
while [ '1' == '1' ] | |
do | |
echo -n -e "\rA B| C\nD| E F"; | |
echo -n -e "\033[1A"; | |
echo -n -e "\rA B/ C\nD/ E F"; | |
echo -n -e "\033[1A"; | |
echo -n -e "\rA B- C\nD- E F"; | |
echo -n -e "\033[1A"; | |
echo -n -e "\rA B\\ C\nD\\ E F"; | |
echo -n -e "\033[1A"; |