Skip to content

Instantly share code, notes, and snippets.

View devinderaujla's full-sized avatar

devinderaujla

View GitHub Profile
@devinderaujla
devinderaujla / win10colors.cmd
Created March 7, 2023 16:05 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@devinderaujla
devinderaujla / cloudflare-ddns-update.sh
Last active March 31, 2024 16:21 — 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
# based on https://gist.github.com/Tras2/cba88201b17d765ec065ccbedfb16d9a
# initial data; they need to be filled by the user
#### Added multiple sub domains and proxy state set options
## API token; e.g. FErsdfklw3er59dUlDce44-3D43dsfs3sddsFoD3
api_token=<>
## the email address associated with the Cloudflare account; e.g. email@gmail.com
email=<>
## the zone (domain) should be modified; e.g. example.com
zone_name=example.com