Skip to content

Instantly share code, notes, and snippets.

@RyukGremory
RyukGremory / dnsupdater.sh
Created April 18, 2018 12:53 — forked from fibergames/dnsupdater.sh
DigitalOcean dynamic DNS updater script for your subdomain
#!/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
@RyukGremory
RyukGremory / Generate_Dictionary.py
Last active April 18, 2018 01:23
Generador de combinaciones a partir de un set de caracteres.
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):
@RyukGremory
RyukGremory / GdomainDDNS.py
Created April 18, 2018 01:14
Script to update a dynamic record in google domain
import requests
import urllib
import socket
webRequestURI='domains.google.com/nic/update'
username='AutoGenerate'
password='AutoGenerate'
sub_domain='local'
domain='motrenco'
tld='com'
@RyukGremory
RyukGremory / DoceanDDNS.py
Last active April 18, 2018 12:52
Script to update a domain record in digital ocean.
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'