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
server { | |
server_name *.EXAMPLE.COM; | |
rewrite ^(.*) http://EXAMPLE.COM$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name EXAMPLE.COM; | |
root /home/webserver/EXAMPLE.COM/Public; |
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
#!/bin/bash | |
# Params | |
# Remove Files Every N Min | |
MINUTESTOKEEPFILES=2880 | |
# DO NOT EDIT BELOW THIS LINE | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do |
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 | |
declare(strict_types=1); | |
class BaseConverter | |
{ | |
/** | |
* The character set used for base conversion. | |
* Includes digits 0-9 and lowercase and uppercase letters A-Z. | |
* The minimum base is 2 and the maximum base is 62. |
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/php | |
<?php | |
$usage = "Automated Wordpress installer\nby Ali Gangji\nUsage: wordpress install_dir -u dbuser -p dbpass -d dbname\nOptions:\n"; | |
$usage .= " -u dbuser Database username\n"; | |
$usage .= " -p dbpass Database password\n"; | |
$usage .= " -d dbname Database name\n"; | |
$usage .= " -h dbhost Database host\n"; | |
$usage .= " --private Hide blog from search engines\n"; | |
$usage .= " --prefix prefix Database prefix\n"; | |
if ($argc < 2) { |
NewerOlder