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 | |
/* | |
Plugin Name: My CLI Commands | |
Plugin URI: # | |
Description: | |
Author: WC Pune Team | |
Version: 1.0.0 | |
Author URI: https://pune.wordcamp.org | |
*/ |
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
### file to edit \usr\local\apache\conf.d\empty.conf | |
### Caching, compress and some security added thanks to https://www.gebruikers.eu | |
# Load mod_deflate.so only if it is not previously enabled, check httpd.conf for this. | |
# In my case it wasn't enabled. I prefer this empty.conf to load mod_deflate so my config survives updates and rebuilds. | |
LoadModule deflate_module modules/mod_deflate.so | |
<Location /> | |
# Insert filter | |
SetOutputFilter DEFLATE |
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 | |
/* | |
Plugin Name: Better AMP Mod : Multiple Analytics Code | |
Plugin URI: https://www.whoisabhi.com/ | |
Description: Update your Analytics Code in this file below. Replicate Triggers if you need multiple Trackers. | |
Author: Abhishek | |
Version: 1.0 | |
Author URI: https://www.whoisabhi.com/ | |
*/ |
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
add_filter( 'woocommerce_available_payment_gateways', 'wpmudra_payment_gateway_disable_country' ); | |
function wpmudra_payment_gateway_disable_country( $available_gateways ) { | |
if ( is_admin() ) return $available_gateways; | |
if ( isset( $available_gateways['paypal'] ) && WC()->customer->get_billing_country() == 'IN' ) { | |
unset( $available_gateways['paypal'] ); | |
} | |
return $available_gateways; |
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
<ol><?php | |
$link = mysqli_connect("localhost","Username","Password","DBNameHere"); | |
$sql = "SELECT `meta_id`,`post_id`,`meta_key`,Length(`meta_value`) as meta_data, `post_title`, `post_type` FROM `wp_postmeta` LEFT JOIN `wp_posts` on `wp_postmeta`.`post_id` = `wp_posts`.`ID` ORDER BY `wp_posts`.`post_title` ASC "; | |
$result = mysqli_query($link, $sql); | |
while($data = mysqli_fetch_assoc($result)){ | |
if($data['post_title'] == NULL && $data['post_type'] == NULL){ |
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
find public_html -type d -perm 0777 -exec chmod 755 {} \; | |
find public_html -type f -perm 0666 -exec chmod 644 {} \; | |
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
/* | |
* Adding Align wide support for Gutenberg | |
*/ | |
add_theme_support( 'align-wide' ); | |
/* | |
* Adding Blocks Style for Gutenberg | |
*/ |
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
.has-regular-font-size { | |
font-size: 16px; | |
} | |
@media only screen and (min-width: 768px) { | |
.alignfull { | |
margin-left: calc(50% - 50vw); | |
margin-right: calc(50% - 50vw); | |
width: auto; |
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
brew services start php | |
sudo brew services start dnsmasq | |
brew services start mariadb | |
brew services start nginx |
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
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../../peenak android-release-unsigned.apk key0 | |
~/Library/Android/sdk/build-tools/28.0.3/zipalign -v 4 android-release-unsigned.apk release.apk |
NewerOlder