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 | |
## this script resets Git Updater cache and clears update transients | |
## useful when themes or plugins aren’t detecting available updates | |
## delete internal metadata cache | |
wp option delete git_updater | |
## delete all transients including theme/plugin update checks | |
wp transient delete --all |
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 | |
## source ss-config ## | |
source /var/www/ss-config | |
## source ss-functions ## | |
source /var/www/ss-functions | |
## BELOW THIS RELIES ON SS-CONFIG AND SS-FUNCTIONS |
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
background: linear-gradient(to bottom right, rgba(55, 71, 79, 0.8), rgba(255, 196, 0, 0.2)), url() | |
background: linear-gradient(60deg, rgba(55, 71, 79, 0.7777485994397759) 30%, rgba(255, 255, 255, 0) 100%), url() |
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: Anonymize bbPress | |
* Description: bbPress anonymous modifications. | |
* Version: 0.0.2 | |
* Requires PHP: 5.4 | |
*/ | |
/** | |
* Changelog. |
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: Anonymize bbPress | |
Plugin URI: https://gist.github.com/jessuppi/0663069e94af7f397510990ccd576a30 | |
Description: Enables guest users to participate in bbPress forums without providing an email address or URL, and assigns randomized user names to every single post. | |
Version: 1.0.0 | |
Author: Birgir Erlendsson, Jesse Nickles | |
License: GPLv3 | |
License URI: https://www.gnu.org/licenses/gpl-3.0.html | |
*/ |
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 | |
/* | |
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 |
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 | |
# 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_'; |
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 | |
#################################################################################################### | |
#### 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 ## |
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
## 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 |
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
## 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 |
NewerOlder