-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from denisidoro/dev
0.14.0
- Loading branch information
Showing
13 changed files
with
162 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
crontab -l | ||
|
||
# Edit cron job | ||
crontab -e | ||
crontab -e |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
% gpg | ||
|
||
# gpg version | ||
gpg --version | ||
|
||
# gpg generate key | ||
gpg --gen-key | ||
|
||
# list keys | ||
gpg --list-keys | ||
|
||
# distribute public key to key server | ||
gpg --keyserver <key_server> --send-keys <public_key> | ||
|
||
# export public key | ||
gpg --output <filename_gpg> --export <key_name> | ||
|
||
# import public key | ||
gpg --import <filename_gpg> | ||
|
||
# encrypt document | ||
gpg --output <output_filename_gpg> --encrypt --recipient <public_key> <input_filename> | ||
|
||
# decrypt document | ||
gpg --output <filename> --decrypt <filename_gpg> | ||
|
||
# make a signature | ||
gpg --output <filename_sig> --sign <filename> | ||
|
||
# verify signature | ||
gpg --output <filename> <filename> --decrypt <filename_sig> | ||
|
||
# clearsign documents | ||
gpg --clearsign <filename> | ||
|
||
# detach signature | ||
gpg --output <filename_sig> --detach-sig <filename> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
% npm, node, js | ||
|
||
# initial new package | ||
npm init | ||
|
||
# initial immediately a new package | ||
npm init -y | ||
|
||
# install all dependencies packages | ||
npm install | ||
|
||
# install all dev dependencies packages | ||
npm install --save-dev | ||
|
||
# install a specified package | ||
npm install <package_name> | ||
|
||
# install a specified dev package | ||
npm install <package_name> --save-dev | ||
|
||
# install globally a specified package | ||
npm install <package_name> -g | ||
|
||
|
||
|
||
% nvm, node, js | ||
|
||
# install a specified version of node | ||
nvm install <version> | ||
|
||
# list available versions | ||
nvm ls-remote | ||
|
||
# use installed node's version | ||
nvm use <version> | ||
|
||
# set a node's version as default | ||
nvm alias default <version> |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
function navi-widget -d 'Call navi' | ||
set -q NAVI_USE_FZF_ALL_INPUTS; or set -l NAVI_USE_FZF_ALL_INPUTS "true" | ||
function navi-widget -d "Show cheat sheets" | ||
begin | ||
navi --print | while read -l r; set result $result $r; end | ||
|
||
if [ -n "$result" ] | ||
echo $result | ||
|
||
# Remove last token from commandline. | ||
commandline -t "" | ||
end | ||
stty sane | ||
env NAVI_USE_FZF_ALL_INPUTS=true navi --print query (commandline) | perl -pe 'chomp if eof' | read -lz result | ||
and commandline -- $result | ||
end | ||
|
||
# commandline -f repaint | ||
commandline -f repaint | ||
end | ||
|
||
bind \cg navi-widget | ||
|
||
if bind -M insert > /dev/null 2>&1 | ||
bind -M insert \cg navi-widget | ||
end |