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 | |
add_action('init', 'acsab_init', 0); | |
function acsab_init(){ | |
if((! is_plugin_active('advanced-custom-fields/acf.php'))&& ( ! is_plugin_active('advanced-custom-fields-pro/acf.php'))) | |
{ | |
// Define path and URL to the ACF plugin. | |
define( 'ACSAB_ACF_PATH', 'inc/acf/' ); | |
define( 'ACSAB_ACF_URL', plugin_dir_url( __FILE__ ) . 'inc/acf/' ); |
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 | |
/** | |
******************************************************************************* | |
* MAL: Maintenance Auto-Login. | |
******************************************************************************* | |
* Automatically logs you in as the first admin user found in the WordPress | |
* database. | |
* | |
* How to use it: | |
* |
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
df -hT | |
sudo resize2fs /dev/nvme0n1p1 |
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
sudo chmod -R 777 .env composer.* config storage vendor public/cpresources |
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
#From the root of your wordpress install | |
#cd in to the theme folder | |
cd wp-content/themes/ | |
#download ac timber | |
git clone git@github.com:ambercouch/ac_timber.git ac_timber | |
#Swich to the master branch or whatever branch you want to use | |
cd ac_timber |
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
sudo mysqldump -u root --password=<pwd> <original db> | sudo mysql -u root --password=<pwd> <new db> |
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
sudo chown -R bitnami:daemon public | |
sudo find public -type d -exec chmod 775 {} \; | |
sudo find public -type f -exec chmod 664 {} \; | |
sudo chmod 640 public/wp-config.php |
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
cp -a /source/. /dest/ |
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
return axios('https://v.shopify.com/slate/track', axiosConfig).catch(() => {}); |
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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('a[href^="#"]').on('click',function (e) { | |
e.preventDefault(); | |
var target = this.hash; | |
var $target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop': $target.offset().top | |
}, 900, 'swing', function () { | |
window.location.hash = target; |
NewerOlder