Skip to content

Instantly share code, notes, and snippets.

View AmirHosseinKarimi's full-sized avatar
💣
Defusing the nuclear bomb

Amir Hossein Karimi AmirHosseinKarimi

💣
Defusing the nuclear bomb
View GitHub Profile
@AmirHosseinKarimi
AmirHosseinKarimi / novpn.sh
Created August 21, 2021 10:30 — forked from kriswebdev/novpn.sh
Bypass VPN for specific apps [Linux / OpenVPN]
#!/bin/bash
# === INFO ===
# NoVPN
# Description: Bypass VPN tunnel for applications run through this tool.
VERSION="3.0.0"
# Author: KrisWebDev
# Requirements: Linux with kernel > 2.6.4 (released in 2008).
# This version is tested on Ubuntu 14.04 and 19.10 with bash.
# Main dependencies are automatically installed.
@AmirHosseinKarimi
AmirHosseinKarimi / functions.php
Created July 18, 2021 15:19 — forked from Jon007/functions.php
Add default Product Attributes to all WooCommerce products
/*
* Example adds certain named Product Attribute fields to the product Edit screen ready for completion.
* (Pre-requisite )
* This saves the Shop Admin having to add them manually.
*
* Why might you want to do this instead of adding Custom fields? There's plenty of nice documentation on adding custom fields
* for example: http://www.remicorson.com/mastering-woocommerce-products-custom-fields/
*
* Well a Product Attributes are a built in WooCommerce feature, using Terms which are a built in Wordpress feature.
* - no add-ons required