Skip to content

Instantly share code, notes, and snippets.

View ElectronicWar's full-sized avatar

Manuel ElectronicWar

  • Chemnitz, Germany
View GitHub Profile
@ElectronicWar
ElectronicWar / cloudflare-ddns-update.sh
Created October 9, 2020 16:02 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
import obspython as obs
interval = 30
source_name = ""
# ------------------------------------------------------------
def update_text():
global interval
global source_name
@ElectronicWar
ElectronicWar / make-gif.cmd
Last active October 18, 2017 09:47
Create GIF from image sequence with ffmpeg
ffmpeg -i image-%%02d.png -vf palettegen palette.png
ffmpeg -i image-%%02d.png -i palette.png -lavfi "paletteuse,setpts=6*PTS" -y out.gif

Keybase proof

I hereby claim:

  • I am electronicwar on github.
  • I am mkroeber (https://keybase.io/mkroeber) on keybase.
  • I have a public key ASAz3NjOSXtVUEcBSvS5H5_o2xTXBFFMhqlTrdo905k5tQo

To claim this, I am signing this object: