Skip to content

Instantly share code, notes, and snippets.

View Freebase394's full-sized avatar

Freebase3941 Freebase394

  • Freebase3941
  • Portugal
View GitHub Profile
@Freebase394
Freebase394 / cloudflare-update-record.sh
Created August 20, 2020 12:31 — 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)
@Freebase394
Freebase394 / mailparse installation
Last active June 15, 2018 22:11 — forked from thelbouffi/mailparse installation
how to instal mailparse on php7
REQUIREMENTS:
- php-pear (install automatically php7.0-xml and php-xml)
sudo apt-get install php-pear
-php7.0-mbstring
sudo apt-get install php7.0-mbstring
-php7.0-dev
sudo apt-get install php7.0-dev
INSTALLATION:
1- cd /tmp/xxxxxx (e.g: cd /tmp/pear/download)