Skip to content

Instantly share code, notes, and snippets.

View kaysersoze's full-sized avatar

Carlos Noguera kaysersoze

View GitHub Profile
@kaysersoze
kaysersoze / update_do.sh
Created September 8, 2019 23:26 — forked from najdanovicivan/update_do.sh
OpenWRT DDNS using DigitalOcean API
# Script for sending user defined updates using DO API
# 2015 Artem Yakimenko <code at temik dot me>
#
# activated inside /etc/config/ddns by setting
#
# option update_script '/usr/lib/ddns/update_do.sh'
#
# the script is parsed (not executed) inside send_update() function
# of /usr/lib/ddns/dynamic_dns_functions.sh
# so you can use all available functions and global variables inside this script
*PPD-Adobe: "4.3"
*%%%% PPD file for ZPL Label Printer with CUPS.
*%%%% Created by the CUPS PPD Compiler CUPS v1.7.5.
*% Copyright 2007-2012 by Apple Inc.
*% Copyright 1997-2007 by Easy Software Products.
*%
*% These coded instructions, statements, and computer programs are the
*% property of Apple Inc. and are protected by Federal copyright
*% law. Distribution and use rights are outlined in the file "LICENSE.txt"
*% which should have been included with this file. If this file is
--- woocommerce-product-stock-alert/classes/class-woo-product-stock-alert-frontend.php 2017-11-12 15:28:59.000000000 -0700
+++ woocommerce-product-stock-alert-mod/classes/class-woo-product-stock-alert-frontend.php 2017-11-12 15:34:41.000000000 -0700
@@ -227,10 +227,25 @@
$dc_settings = $this->dc_plugin_settings;
if($product) {
+ if($product->is_type('composite')) {
+ $manage_stock = false;
+ $composited_products = $product->get_composite_data();
+ foreach($composited_products as $component) {
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
#!/bin/sh
# FuelPHP Install Script
#
# @author Kenji Suzuki https://github.com/kenjis
# @copyright 2011 Kenji Suzuki
# @license MIT License http://www.opensource.org/licenses/mit-license.php
if [ $# -lt 2 ]; then
echo "Install FuelPHP and Create Application Repository"