Skip to content

Instantly share code, notes, and snippets.

@ImpulseTheFox
ImpulseTheFox / crontab -e
Last active Oct 24, 2019 — forked from lg/update-cloudflare-v4-ip.sh
CloudFlare v4 API DNS entry updater
View crontab -e
*/5 * * * * /usr/local/bin/foxdd 1>/dev/null 2>&1
@troyfontaine
troyfontaine / README.md
Last active Oct 5, 2018
ACMESharp Cloudflare Script Steps Outline
View README.md

How to Manually Generate a Certificate using ACMESharp and CloudFlare DNS Integration

Install ACMESharp as per here.

Follow the installation steps from the getting started guide before using the instructions below.

Install Cloudflare Module

Run the following command to install the module:

Install-Module ACMESharp.Providers.CloudFlare
@troyfontaine
troyfontaine / README.md
Last active Feb 11, 2021
Ubiquiti USG config.gateway.json Syntax
View README.md

Ubiquiti USG Advanced Configuration

Overview

Integrated DNS Overview

When using a USG with Ubiquiti's Unifi Controller software (version 5.6 and earlier), the functionality of integrating the hostnames of clients (when they request a DHCP lease) into local DNS does not appear to work as you would find with Consumer grade routers. To work around this limitation, we can add static host mappings to a configuration file that will be provisioned to the USG when either a configuration change is made or we force provisioning to the USG itself.

Non-GUI Supported Dynamic DNS Providers

I've added in the necessary syntax for adding Cloudflare DDNS to the USG for VPN/Services setup courtesy of this post by britannic on the Ubiquiti Forums.

Configuration File

View Ionic2 Preloader Example index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Ionic App</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
@ReubenBond
ReubenBond / ClusterManifestTemplate.xml
Last active Apr 16, 2019
Speedy Service Fabric Dev Cluster Upgrades
View ClusterManifestTemplate.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
The settings used within this ClusterManifest are expressly for use only
within a developer single-box environment. Any use of these settings outside
of that environment are highly likely to produce incorrect, and misperforming
@MatthewSteeples
MatthewSteeples / mousemove.ps1
Created Feb 26, 2015
Powershell Script to keep the mouse moving
View mousemove.ps1
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = ($pos.X % 500) + 1
$y = ($pos.Y % 500) + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 10
}
@holgate
holgate / netflix metro app - autohotkey remote navigation control - DEFAULT.ahk
Last active Sep 15, 2015
Netflix Windows 8.1 Metro app - remote navigation for HTPC usage - with "Change the Size of Apps on the screen" in Windows 8.1 set to "Default"
View netflix metro app - autohotkey remote navigation control - DEFAULT.ahk
;DEFINE CONSTANTS...
;
;
; Global value settings that are independant to display-size...
;
; MAIN MENU
boundaryLeft := 120
boundaryRight := 1800
leftScrollbarXpos := 28
leftScrollbarYpos := 1065