Skip to content
Snippets Groups Projects
Commit ca013932 authored by nimrod's avatar nimrod
Browse files

- Updated the ansible-desktop-playbooks submodule.

- Added urlencode/ urldecode shell aliases (rely on Perl and the URI
module, added to the ansible-desktop-playbooks).
- Added a shell function for searching with DuckDuckGo with Lynx.
parent 8ba66935
Branches
Tags
No related merge requests found
...@@ -99,6 +99,8 @@ alias tolower='awk "{print tolower(\$0)}"' ...@@ -99,6 +99,8 @@ alias tolower='awk "{print tolower(\$0)}"'
# shellcheck disable=SC2142 # shellcheck disable=SC2142
alias toupper='awk "{print toupper(\$0)}"' alias toupper='awk "{print toupper(\$0)}"'
alias wifi-portal='curl --silent --fail --write-out "%{redirect_url}" --output /dev/null http://detectportal.firefox.com/success.txt' alias wifi-portal='curl --silent --fail --write-out "%{redirect_url}" --output /dev/null http://detectportal.firefox.com/success.txt'
alias urlencode='perl -MURI::Escape -ne "chomp;print uri_escape(\$_), \"\n\""'
alias urldecode='perl -MURI::Escape -ne "chomp;print uri_unescape(\$_), \"\n\""'
deduce_aws_region () { deduce_aws_region () {
AWS_DEFAULT_REGION="$(curl --silent \ AWS_DEFAULT_REGION="$(curl --silent \
...@@ -147,5 +149,9 @@ bfg () { ...@@ -147,5 +149,9 @@ bfg () {
java -jar "$HOME/Downloads/bfg.jar" "$@" java -jar "$HOME/Downloads/bfg.jar" "$@"
} }
ddg () {
lynx "https://duckduckgo.com/lite/?q=$(echo "$@" | urlencode)"
}
# shellcheck disable=SC1090 # shellcheck disable=SC1090
. "$HOME/Documents/Shore/bundle_certs/bundle_certs" . "$HOME/Documents/Shore/bundle_certs/bundle_certs"
Subproject commit 3d6891c977171e24deab35d0a345254a6ce0b2a3 Subproject commit d243c2e7ca803ec5aea0077e4271508caa4716a7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment