This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----- Gandi.net LiveDNS dynamic DNS multi domain and subdomain write by Massimo Ciani ------ | |
# Put the following script on "system script" as new script with policy "read, write, test" and name "LiveDNS_DDNS". | |
# If you use pppoe connection, go to ppp profile and click the profile that pppoe use. In the field "on up" put this | |
# line "/system script run LiveDNS_DDNS". without quotes. | |
#--------------- Change Values in this section to match your setup ------------------ | |
# Your LiveDNS API KEY | |
:local apikey "your API KEY" | |
# Set the domain and subdomain to be updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
Copyright 2021 Mygod | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Update the {redirect} table. | |
*/ | |
function np8_update_update_8004() { | |
// Drop the title column. | |
if (db_field_exists('redirect', 'redirect_source__title')) { | |
db_drop_field('redirect', 'redirect_source__title'); | |
} | |
// We assume there are no options stored and just rename it to query. | |
if (db_field_exists('redirect', 'redirect_source__uri')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_drush_command(). | |
*/ | |
function custom_local_drush_command() { | |
$items['files-fix-permissions'] = array( | |
'description' => 'Fix file permissions', | |
'options' => array( | |
'owner' => "The name of the user to assign ownership of all files with chown(). Defaults to \$USER.", |