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
# Add {% load i18n %} to templates which are missing it | |
# | |
# How this works? | |
# Step 1: Find all files in templates folder | |
# Step 2: Print file name of that file if file has at least one trans or blocktrans tag | |
# Step 3: Put load tag on the first or second line, depending if the first line is extends tag | |
# | |
# Elaborate on the third step: | |
# | |
# 1 { # Operate only on the first line |
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
# HTTP request in plain bash | |
exec 3<>/dev/tcp/tangentlabs.co.uk/80 | |
echo -e "GET / HTTP/1.1" >&3 | |
echo -e "Host: tangentlabs.co.uk" >&3 | |
echo -e "Connection: close" >&3 | |
echo -e "\n" >&3 | |
cat <&3 |
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
redir @"> | |
ls | |
redir END | |
normal p |