I learned about deploying django webapps using gunicorn and nginx. I was able to deploy full fledge application on raspberry pi.
:%s/$/HelloWorld/This command allows to add something end of the line(Note:This command saved me so much time when formating data.)
:%s!^!//!This vim command will add something in the beginning of the line.
python3 -m pydoc -p <specify_port>
xargs -n 1 curl -sL < urls.txt | grep -Eo "<title>.*</title>"This command allows you extract url titles when you have more than 1 url
curl -sL <url> | grep -Eo 'href="(https|http):[^\"]+"'This command allows you extract urls from a webpage.
backticksto run a execute a command in bash script when the command is saved into a variable.
filename="$1" file="$1" while read -r line; do name="$line" x=`curl -sL $name| grep -aEo "<title>.*</title>"` echo "$x - $name" done < "$filename"
In order to delete a branch on git locally you can use
git branch --delete <branchname> and if you want to do it remotely you can do
git push --delete <branchname>
you can use
?* to match the rest of the characters when moving the files with
Lets say you have different files such as
fin-last.gif and you want to move all the files at once instead of moving each file one by one as each file has a different name and extension. You might do something like
mv fin?* folder/ as all three files have same first three characters and rest can be anything so using this trick you can move all the files with different extensions at once.