Skip to content

Instantly share code, notes, and snippets.

@minhazulOO7
minhazulOO7 / 0-Cloudflare DDNS using Bash Script with Crontab or Systemd Timer-readme.md
Last active April 23, 2022 01:23
Cloudflare Client API v4 DDNS IP Update Using Bash Script (IPv4/ IPv6)

Cloudflare DDNS using Bash Script with Crontab/ Systemd Timer

This script will check if external IP is changed or not and will update the external IP of A or AAAA record in Cloudflare DNS using API token/ global API key method.

Script Requirements

@badrianiulian
badrianiulian / README.md
Last active November 16, 2023 08:28 — forked from lifehome/README.md
Cloudflare API v4 Dynamic DNS Update in Bash for IPv4/IPv6 records

Cloudflare DDNS bash client with systemd

This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.

How to use?

  1. Put the cfupdater file to /usr/local/bin
  2. chmod +x /usr/local/bin/cfupdater
  3. Create a systemd service unit at /etc/systemd/system/, the cfupdate.service is shown as an example.
  4. Create a systemd timer unit at the same location of the service unit, the cfupdate.timer is shown as an example.

Note

@evgv
evgv / mage_chek_if_product_has_options.md
Created September 22, 2016 15:46
Magento. Check if product has custom options and get product types.

Check if product has custom options

For simple and conigurable product types get true/false has options return 1 or 0:

  <?php if ( $_product->getData('has_options') ): ?>
    <!-- do something -->
  <?php endif; ?>

For flat category data option enabled