Keybase proof
I hereby claim:
- I am jessuppi on github.
- I am jessuppi (https://keybase.io/jessuppi) on keybase.
- I have a public key ASBM8UruRpHyciuqdbFZ4e-MSobAfGRdujAbFLkXHCl_zAo
To claim this, I am signing this object:
<?php | |
/* | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
<?php | |
# Database Configuration | |
define( 'DB_NAME', 'XXX' ); | |
define( 'DB_USER', 'XXX' ); | |
define( 'DB_PASSWORD', 'XXX' ); | |
define( 'DB_HOST', '127.0.0.1' ); | |
define( 'DB_HOST_SLAVE', '127.0.0.1' ); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', 'utf8_unicode_ci'); | |
$table_prefix = 'wp_'; |
#!/bin/bash | |
#################################################################################################### | |
#### SlickStack: Critical Bash Functions (Aliases) + Script Variables ############################## | |
#################################################################################################### | |
## the below functions are hardcoded into every SlickStack script to ensure reliability ## | |
## this also speeds up processing times by avoiding repeated inline commands ## | |
## add-apt-repository alias flags ## |
## fix hyperlinks (but not media src as they are shared with production uploads folder) ## | |
# sed 's#href="https://$SITE_DOMAIN#href="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql | |
# sed 's#href="http://$SITE_DOMAIN#href="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql | |
# sed 's#href="//$SITE_DOMAIN#href="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql | |
# sed "s#href='https://$SITE_DOMAIN#href='https://$SITE_DOMAIN/staging#g" /tmp/staging.sql | |
# sed "s#href='http://$SITE_DOMAIN#href='https://$SITE_DOMAIN/staging#g" /tmp/staging.sql | |
# sed "s#href='//$SITE_DOMAIN#href='https://$SITE_DOMAIN/staging#g" /tmp/staging.sql | |
## fix sources (mirrors to production uploads folder using Nginx alias so this is just for cleaner source code) ## | |
# sed 's#src="https://$SITE_DOMAIN#src="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql |
## prepare root password for apt (PSA: sudo the shit out of these or it will fail) ## | |
#####sudo echo "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | sudo debconf-set-selections | |
#####sudo echo "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | sudo debconf-set-selections | |
#####sudo echo "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)" | sudo debconf-set-selections | |
# echo "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | debconf-set-selections | |
# echo "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | debconf-set-selections | |
# sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | |
# sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | |
# sudo |
I hereby claim:
To claim this, I am signing this object:
## empty file ## |
#!/bin/sh | |
# NOTE: This is an example that sets up SSH authorization. To use it, you'd need to replace "ssh-rsa AA... youremail@example.com" 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... youremail@example.com > /root/.ssh/authorized_keys |
## 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 |
## 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 "$@"; } |