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
## empty file ## |
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
#!/bin/sh | |
# NOTE: This is an example that sets up SSH authorization. To use it, you'd need to replace "ssh-rsa AA... [email protected]" with your SSH public. | |
# You can replace this entire script with anything you'd like, there is no need to keep it | |
mkdir -p /root/.ssh | |
chmod 600 /root/.ssh | |
echo ssh-rsa AA... [email protected] > /root/.ssh/authorized_keys |
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
## block these spam domains from your referrer analytics and/or using firewall rules ## | |
## the majority of these abusive bots are from China (but not all of them) ## | |
adelachrist.top | |
ammgm.org | |
anti-crisis-seo.com | |
barbarahome.top | |
bavsac.com | |
briankatrine.top | |
blogking.top |
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
## critical functions (aliases) for this script to function ## | |
apt () { command DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" "$@"; } | |
wget () { command wget --no-check-certificate --no-cache --no-cookies --tries=3 --timeout=15 "$@"; } | |
cp () { command cp -R -f -d --no-preserve=mode,ownership "$@"; } | |
rm () { command rm -R -f "$@"; } | |
mkdir () { command mkdir -p "$@"; } | |
unzip () { command unzip -o "$@"; } |
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
https://stackoverflow.com/questions/39301196/embedding-most-recent-youtube-video-with-channel-id |
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
Year after year, more business goes online -- this includes shopping, marketing, and yes, consulting. | |
In certain ways, competition has increased, because there are more freelancers offering similar services. But in other ways, there is more opportunity than ever before for freelancers with quality services. | |
One issue that I've noticed getting "worse" in some respects is the number of clients who expect a "free" consultation from potential service providers; while sometimes this can be a fair request, in most cases it is not. | |
Allow me to explain: | |
Unlike salaried full-time employees, every minute you take from a consultant without paying him is money lost. |
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
;; empty ;; |
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 | |
$options = array( | |
'post_type' => 'person', | |
'posts_per_page' => 99, | |
'orderby' => 'date', | |
'order' => 'ASC', | |
'paged' => $paged, | |
); | |
$query = new WP_Query( $options ); | |
if ( $query->have_posts() ) : |
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
#### MONIT PANEL #### | |
location /monit/ { | |
rewrite ^/monit/(.*) /$1 break; | |
proxy_ignore_client_abort on; | |
proxy_pass https://127.0.0.1:2812; | |
proxy_set_header Host $host; | |
proxy_redirect https://127.0.0.1:2812 /monit; | |
} |
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
## set WP-CLI variables ## | |
WP_CLI_CACHE_DIR="/var/www/cache/.wp-cli" | |
WP_CLI_CONFIG_PATH="/var/www/meta/wp-cli.yml" | |
WP_CLI_CUSTOM_SHELL="/bin/bash" | |
WP_CLI_DISABLE_AUTO_CHECK_UPDATE="true" | |
WP_CLI_PACKAGES_DIR="/tmp" | |
# WP_CLI_PHP="" | |
# WP_CLI_PHP_ARGS="" | |
# WP_CLI_SSH_PRE_CMD="" | |
WP_CLI_STRICT_ARGS_MODE="false" |