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
#!/usr/bin/env sh | |
VER=3.0.2 | |
PROJECT_NAME="acme.sh" | |
PROJECT_ENTRY="acme.sh" | |
PROJECT="https://github.com/acmesh-official/$PROJECT_NAME" |
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
1.52.0.0/14 Vietnam | |
2.56.16.0/22 Vietnam | |
2.59.0.0/23 Vietnam | |
5.198.248.176/28 Vietnam | |
14.0.16.0/20 Vietnam | |
14.160.0.0/11 Vietnam | |
14.224.0.0/11 Vietnam | |
17.81.39.0/24 Vietnam | |
17.81.60.0/24 Vietnam | |
17.81.145.0/24 Vietnam |
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
/ip firewall address-list | |
add address=23.246.0.0/18 comment=Netflix list="Netflix IP List" | |
add address=23.246.2.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.3.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.6.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.7.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.10.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.11.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.12.0/24 comment=Netflix list="Netflix IP List" | |
add address=23.246.13.0/24 comment=Netflix list="Netflix IP List" |
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
/ip firewall address-list | |
add address=1.52.0.0/14 comment=VN list="Vietnam IP List" | |
add address=2.56.16.0/22 comment=VN list="Vietnam IP List" | |
add address=2.59.0.0/23 comment=VN list="Vietnam IP List" | |
add address=5.198.248.176/28 comment=VN list="Vietnam IP List" | |
add address=14.0.16.0/20 comment=VN list="Vietnam IP List" | |
add address=14.160.0.0/11 comment=VN list="Vietnam IP List" | |
add address=14.224.0.0/11 comment=VN list="Vietnam IP List" | |
add address=17.81.39.0/24 comment=VN list="Vietnam IP List" | |
add address=17.81.60.0/24 comment=VN list="Vietnam IP List" |
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
//Tested on ycb.vn | |
function filter_wc_dymo_product($output,$object,$product,$variation,$labelID) { | |
if($labelID=='product') { | |
if(!empty($variation)) { | |
$barcode = get_post_meta( $variation->get_id(), '_barcode', true ); | |
} else { | |
$barcode = get_post_meta( $product->get_id(), '_barcode', true ); | |
} | |
$output[0]['BARCODE'] = $barcode; |
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 | |
/** | |
* | |
* Custom Blog Loop for Bradonomics. | |
* | |
* Template Name: Bradonomics Blog | |
* | |
*/ | |
//* Remove standard post content output |
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
//* Enqueue scripts and styles | |
add_action( 'wp_enqueue_scripts', 'enqueue_custom_scripts_styles' ); | |
function enqueue_custom_scripts_styles() { | |
wp_enqueue_style( 'dashicons' ); | |
wp_enqueue_style( 'slick-styles', get_stylesheet_directory_uri() . '/css/slick.css' ); | |
wp_enqueue_style( 'slick-theme-styles', get_stylesheet_directory_uri() . '/css/slick-theme.css' ); | |
wp_enqueue_script( 'slick-js', get_stylesheet_directory_uri() . '/js/slick.min.js', array( 'jquery' ), '1.3.15', true ); |
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
// Change number or products per row to 3 | |
add_filter('loop_shop_columns', 'loop_columns'); | |
if (!function_exists('loop_columns')) { | |
function loop_columns() { | |
return 3; // 3 products per row | |
} | |
} |
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
//* Remove the default header | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
//* Add Primary Nav in custom header | |
add_action( 'genesis_header', 'genesis_do_nav' ); | |
//* Add Site Title in custom header | |
add_action( 'genesis_header', 'sk_do_header' ); | |
function sk_do_header() { |
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('wc_city_select_cities', 'my_cities'); | |
/** | |
* Replace XX with the country code. Instead of YYY, ZZZ use actual state codes. | |
*/ | |
function my_cities($cities) | |
{ | |
$cities['VN'] = array( | |
'AN-GIANG' => array( | |
'Huyện An Phú', |
NewerOlder