Skip to content

Instantly share code, notes, and snippets.

@akenzc
akenzc / adv_cp_mv.md
Last active May 28, 2018 07:28
Advanced cp mv with progress bar
@akenzc
akenzc / cloudflare-update-record.sh
Created May 17, 2018 03:52 — forked from benkulbertis/cloudflare-update-record.sh
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)
@akenzc
akenzc / 0_reuse_code.js
Created May 29, 2016 15:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console