Skip to content

Instantly share code, notes, and snippets.

Steven smartins

Block or report user

Report or block smartins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@foobarhl
foobarhl / cloudflare-ddns-update.sh
Last active Mar 2, 2020 — 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
View cloudflare-ddns-update.sh
#!/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
## Based on https://gist.github.com/Tras2/cba88201b17d765ec065ccbedfb16d9a with updates to use
## per-zone configurable access tokens available in the API sections of your Cloudflare profile
## - info@foo-games.com
@phpenterprise
phpenterprise / facebook-auto-approve-group-posts.js
Last active Sep 11, 2019
Facebook Auto Approve Group Posts
View facebook-auto-approve-group-posts.js
// config
var speed = 100;
var i = 0;
var count = 1;
// change to you language button label (e.g: approve, disapprove)
var buttonText = 'recusar';
var regex = new RegExp( buttonText,'ig' );
// read elements
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active Apr 3, 2020
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
You can’t perform that action at this time.