This file contains hidden or 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 | |
| /** | |
| * Plugin Name: WP Disable Admin User Notifications | |
| * Plugin URI: http://bitpiston.com/ | |
| * Description: Disables new user and password reset notification emails sent to administrators. | |
| * Author: BitPiston Studios | |
| * Author URI: http://bitpiston.com/ | |
| * Version: 1.0 | |
| * Licence: BSD | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * The base configurations of the WordPress. | |
| * | |
| * This file has the following configurations: MySQL settings, Table Prefix, | |
| * Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
| * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
| * wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
| * | |
| * This file is used by the wp-config.php creation script during the |
This file contains hidden or 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 | |
| class CustomWordPressValetDriver extends WordPressValetDriver | |
| { | |
| /** | |
| * Custom suffix for site path. | |
| * | |
| * @var string | |
| */ | |
| const sitePathSuffix = '/www'; |
This file contains hidden or 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/perl | |
| use NetAddr::IP; | |
| use POSIX qw(strftime); | |
| my $dnsmasq_leases_path = '/var/run/dnsmasq-dhcp.leases'; | |
| my $dhcpd_leases_path = '/var/run/dhcpd.leases'; | |
| my $network_names_path = '/opt/vyatta/config/active/service/dhcp-server/shared-network-name'; | |
| my %networks_by_subnet; |
This file contains hidden or 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
| // Instagram started setting cross-origin-resource-policy: same-origin when it sees bad referer headers. | |
| // this change leads to ERR_BLOCKED_BY_RESPONSE error and broken images if instagram image is embedded to external website. | |
| // to mitigate this, simple image proxy can be used. | |
| // Steps to install this worker: | |
| // 1. Create CNAME cdn.<yourdomain.com> in your CloudFlare panel | |
| // 2. Create new worker and put the code below into the worker code | |
| // 3. Setup worker route so the worker launches on your cdn. subdomain. | |
| // 4. Modify your image urls from | |
| // https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/sh0xxx.jpg | |
| // to: |
OlderNewer