This file contains hidden or 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
autoinstall: | |
version: 1 | |
packages: | |
- ubuntu-desktop | |
- tree | |
- wget | |
- curl | |
- gnupg | |
- ca-certificates |
This file contains hidden or 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
# https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash/13864829#13864829 | |
# https://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html | |
# https://stackoverflow.com/a/5947802 | |
# https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/ | |
git_branch() { | |
branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) | |
BEGIN_CYAN='\033[0;36m' | |
END_CYAN='\033[0m' | |
if [ -z "$branch" ] | |
then |
This file contains hidden or 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
#/bin/bash | |
rm -rf /home/rodrigondec/Desktop | |
ln -s /media/hd/Desktop /home/rodrigondec/Desktop | |
rm -rf /home/rodrigondec/Documents | |
ln -s /media/hd/Documents /home/rodrigondec/Documents | |
rm -rf /home/rodrigondec/Downloads | |
ln -s /media/hd/Downloads /home/rodrigondec/Downloads |
This file contains hidden or 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
from pydoc import locate | |
from django.conf import settings | |
def jwt_response_payload_handler(token, user=None, request=None): | |
""" Custom response payload handler. | |
This function controlls the custom payload after login or token refresh. This data is returned through the web API. | |
""" |
This file contains hidden or 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
cl_crosshairalpha "200"; | |
cl_crosshaircolor "5"; | |
cl_crosshaircolor_b "255"; | |
cl_crosshaircolor_r "0"; | |
cl_crosshaircolor_g "0"; | |
cl_crosshairdot "0"; | |
cl_crosshairgap "0"; | |
cl_crosshairsize "5"; | |
cl_crosshairstyle "3"; | |
cl_crosshairusealpha "1"; |