Skip to content

Instantly share code, notes, and snippets.

- Open Notepad.
- Copy everything from the comment below and paste it in Notepad.
- Press X to close Notepad, it will ask you to save the file.
- Choose an appropriate name eg. TransMac_Reset_Trial.cmd
You can place the file whatever you like as long as you have installed TransMac in the default install path.
You can also put TransMac_Reset_Trial.cmd in the same directory as TransMac.exe and run it from there.
This is useful if you want to put TransMac.exe in another path than default.
@dsantos3526
dsantos3526 / create-subdomain.php
Created November 19, 2021 10:59
Use API/Curl to create a new subdomain in both CloudFlare and cPanel
<?php
/**
* Create Subdomains
*
* Note: This script was designed to be called silently by a bash script for project creation.
* Add to bash script: php "$HOME/scripts/php/create-subdomains.php" "$new_account_subdomain"
*
* Requires "jamesryanbell/cloudflare": "^1.11" for the CloudFlare PHP library
* Recommends "kint-php/kint": "^3.2" for improved temporary PHP debugging