Skip to content

Instantly share code, notes, and snippets.

@foobarhl
foobarhl / cloudflare-ddns-update.sh
Last active January 2, 2024 14:37 — 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
## 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 December 8, 2023 18:22
Facebook Auto Approve Group Posts
// 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
@TraderX0
TraderX0 / MutliTimeFramRSI.txt
Last active December 31, 2022 11:08
Pinescript trading view multi time frame RSI - Allows you to plot upto 3 MTF RSI's on one panel
// All credits go to CMoody for the original Idea...
// THE MTFRSI is an extension of his original script to now encorporate 3RSI's on one panel
study(title="TraderX0 3-RSI MTF", shorttitle="X0_3_RSI_MTF", precision=0)
//candle source
src = close
//rsi setup
//first RSI inputs
firstRsiTimeframe = input(title="Select 1st RSI Timeframe", type=resolution, defval="60")
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active September 7, 2024 11:13
Cloudflare API v4 Dynamic DNS Update in Bash
#!/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)