Skip to content

Instantly share code, notes, and snippets.

View benbelo's full-sized avatar
💻
struggling

Benjamin Belot benbelo

💻
struggling
View GitHub Profile
@xadapter
xadapter / functions.php
Last active March 11, 2020 06:50
Snippet to switch UPS account and origin address based on the destination. Supports WooCommerce UPS Shipping Plugin: https://www.pluginhive.com/product/woocommerce-ups-shipping-plugin-with-print-label/
<?php
/**
* Snippet to Change UPS account based on destination country while confirming shipment (not while generating packages).
*
*/
add_filter( 'wf_ups_shipment_confirm_request_data', 'switch_origin_adress_based_on_country', 10, 2 );
if( ! function_exists('switch_origin_adress_based_on_country') )
{
@ponceto
ponceto / README.md
Last active February 6, 2023 17:27
A KISS firewall script based on iptables

KISS firewall

Abstract

These scripts are written to help you harden your Linux server.

Description

The firewall.sh script supports up to 3 interfaces :