##Bash first line (shebang)
#!/bin/bash
Good to have these on ~/.bash_profile
set completion-ignore-case on
# set show-all-if-ambiguous on
# TAB: menu-complete
# make bash autocomplete with up arrow/down arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
find . -name *.js
ps -eaf | grep -v grep | grep process
or
ps -efH | grep process
find . "-name" ".DS_Store" -exec rm {} \;
find /tmp -mtime +30 -exec rm -rf {} \;
alias ll="ls -ltra"
alias dir="ls -ltra"
alias li="find . -type f -exec basename {} \;"
alias pss="ps -ef| grep -v grep| grep"
alias cleanup_ds_store="find . \"-name\" \".DS_Store\" -exec rm {} \;"
alias os_mongo_shop="ssh -L 27017:IP_ADDRESS:27017 user@host -N"
#Hide and show .files on Finder for Mac
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
#Curl with permormance output
alias curlp='curl -w "Accesing %{url_effective}\nHTTP Response\t%{response_code}\nTook %{time_total}s to respond to download %{size_download} bytes.\n" -o NUL -s'
alias whatismyip="http http://ip-api.com/json | jq '.query +\", \"+.city +\", \"+.regionName +\", \"+ .country + \", \" + .org'"
#Print a nerd joke :) of chuck noris
http --timeout=2.5 http://api.icndb.com/jokes/random?limitTo=[nerdy] | jq ".value.joke"
# Print cli weather
curl wttr.in/Alpharetta,GA,USA\?0 --connect-timeout 3
# Print your public IP address
http --timeout=2.5 https://ipapi.co/json | jq '.ip +", " +.city +", "+.region +", "+ .country + ", " + .org'