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
| import json | |
| import requests | |
| import urllib | |
| import socket | |
| API_TOKEN ='AUTO_GENERATE_TOKEN_DIGITAL_OCEAN' | |
| API_URL_BASE='HTTPS://api.digitalocean.com/v2/' | |
| SUB_DOMAIN='sub-domain to update' | |
| DOMAIN='domain' |
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
| import requests | |
| import urllib | |
| import socket | |
| webRequestURI='domains.google.com/nic/update' | |
| username='AutoGenerate' | |
| password='AutoGenerate' | |
| sub_domain='local' | |
| domain='motrenco' | |
| tld='com' |
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
| import hashlib | |
| import itertools | |
| #Que elementos tomara en cuenta para hacer el diccionario | |
| elementos = '20142199PabloAndrésDelaCruzSánchezpdelacruz' | |
| def get_only_chars(string): | |
| return "".join(set(string)) | |
| def proceso(n): |
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 | |
| # Created by fibergames.net // Loranth Moroz // v.0.5 | |
| # Required tools to run this script as is: curl (https://curl.haxx.se/) & jq (https://stedolan.github.io/jq/) | |
| # This only works for Digitalocean - 10$ credit referral link: https://m.do.co/c/fed75101475f | |
| # Edit token, domain, subdomain to fit your needs | |
| # Substitute ipinfo.io with your own ip-checker e.g. ipecho.net/plain | |
| # This is to be used with crontab -> example entry to run it every 3hours: | |
| # 0 */3 * * * sh /path/to/script/dnsupdater.sh | |
| # Don't forget to make it executable: chmod +x /path/to/script/dnsupdater.sh |