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
""" | |
The most simple DNS client written for Python with asyncio: | |
* Only A record is support (no CNAME, no AAAA, no MX, etc.) | |
* Almost no error handling | |
* Doesn't support fragmented UDP packets (is it possible?) | |
""" | |
import asyncio | |
import logging |
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/zsh | |
# Author: Alejandro M. BERNARDIS | |
# Email alejandro.bernardis at gmail dot com | |
# Created: 2020-06-07 | |
### debug ###################################################################### | |
typeset -gr LOG_LEVEL_OFF=0 | |
typeset -gr LOG_LEVEL_FATAL=1 | |
typeset -gr LOG_LEVEL_CRITICAL=2 |
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
# Material gruvbox for kitty | |
background #1d2021 | |
foreground #d4be98 | |
selection_background #d4be98 | |
selection_foreground #1d2021 | |
cursor #a89984 | |
cursor_text_color background |
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
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch |
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
[user] | |
email = [email protected] | |
name = Alejandro M. BERNARDIS | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true |
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
function col { | |
awk -v col=$1 '{print $col}' | |
} | |
docker ps -q | xargs docker stop | |
docker ps -aq | xargs docker rm | |
docker images | grep none | col 3 | xargs docker rmi -f |
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
function colors1() { | |
echo -e "\n\033[4;31mLight Colors\033[0m \t\t\033[1;4;31mDark Colors\033[0m" | |
echo -e "\e[0;30;47m Black \e[0m 0;30m \t\e[1;30;40m Dark Gray \e[0m 1;30m" | |
echo -e "\e[0;31;47m Red \e[0m 0;31m \t\e[1;31;40m Dark Red \e[0m 1;31m" | |
echo -e "\e[0;32;47m Green \e[0m 0;32m \t\e[1;32;40m Dark Green \e[0m 1;32m" | |
echo -e "\e[0;33;47m Brown \e[0m 0;33m \t\e[1;33;40m Yellow \e[0m 1;33m" | |
echo -e "\e[0;34;47m Blue \e[0m 0;34m \t\e[1;34;40m Dark Blue \e[0m 1;34m" | |
echo -e "\e[0;35;47m Magenta \e[0m 0;35m \t\e[1;35;40m DarkMagenta\e[0m 1;35m" | |
echo -e "\e[0;36;47m Cyan \e[0m 0;36m \t\e[1;36;40m Dark Cyan \e[0m 1;36m" |
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
[alias] | |
# push | |
pfa = !git add . && git commit -m 'UPD // First approach' && git push | |
pfx = !git add . && git commit -m 'UPD // Fixes' && git push | |
pfxm = !git add . && git commit -m 'UPD // +Fixes' && git push | |
pfe = !git add . && git commit -m 'UPD // Features' && git push | |
pfem = !git add . && git commit -m 'UPD // +Features' && git push | |
pdo = !git add . && git commit -m 'UPD // Documentation' && git push | |
pdom = !git add . && git commit -m 'UPD // +Documentation' && git push | |
pin = !git add . && git commit -m 'INI // Initial Commit' && git push -u origin master |
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
# AySA | |
_proto/ | |
_ignore/ | |
*.ignore | |
*.ignore.py | |
.idea | |
.vscode | |
.DS_* | |
*.sublime* |
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 | |
# Author: Alejandro M. BERNARDIS | |
# Created: 2019/08/30 | |
set -e | |
# colors | |
BLACK=$(printf '\033[30m') | |
RED=$(printf '\033[31m') |