Skip to content

Instantly share code, notes, and snippets.

@ilyasfoo
ilyasfoo / wc-restore-old-tooltips.php
Last active August 26, 2024 12:47 — forked from mino129/restore-old-tooltips.php
Restore the old tooltip functionality in WooCommerce (show order comments).
<?php
/**
* Plugin Name: Restore WooCommerce Order Status Tooltip
* Description: Restores the old tooltip functionality in WooCommerce to show order comments as it was before 9.1.0.
* Version: 1.0
* Author: mino129 & ilyasfoo
* Author URI: https://gist.github.com/ilyasfoo/2d614e01b2100f2b476e235bd4cdba06
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
@ilyasfoo
ilyasfoo / set-timezone-location.php
Created May 27, 2022 03:19
Set timezone location
<?php
/**
* Plugin Name: Set timezone location
* Plugin URI: -
* Description: Sets PHP default timezone location to 'Europe/Berlin'
* Version: 1.0.0
* Author: -
* Author URI: -
*
*/
[
{
"key": "basics",
"locales": [{ "locale": "en_US", "title": "Get the basics" }],
"plugins": [
{
"key": "woocommerce-payments",
"product": "woocommerce-payments",
"locales": [
{
<?php
/**
* Plugin Name: WooCommerce Calypso Bridge Helper
* Plugin URI: https://woocommerce.com
* Description: Utility to assist testing wc-calypso-bridge locally
* Author: WooCommerce
* Version: 0.1
*/
if ( ! class_exists( 'Atomic_Plan_Manager' ) ) {
@ilyasfoo
ilyasfoo / product-export.csv
Created February 23, 2021 08:09
Product export csv sample
ID Type SKU Name Published Is featured?
22 simple xfdxgdg 1 0
class Solution:
def lastRemaining(self, n):
"""
:type n: int
:rtype: int
"""
odd = True
remainder = n
startNum = 1
power = 1
@ilyasfoo
ilyasfoo / CommitsSummaryGitlab.py
Last active April 14, 2017 07:21
Commits summary generator for gitlab when you'd have to give release review for each commit.
import gitlab
import pickle
# Config stuff
accesscode = 'GITLAB_ACCESS_CODE_HERE'
committext = 'Notification CR'
gl = gitlab.Gitlab('http://gitlab.com', accesscode)
# Filter stuff
branch = 'newfeatures-notification'
@ilyasfoo
ilyasfoo / innobackupex-restore.sh
Created January 24, 2017 18:44 — forked from dalecaru/innobackupex-restore.sh
Scripts to create and restore full and incremental backups (for all databases on server) using innobackupex from Percona.
#!/bin/sh
#
# Script to prepare and restore full and incremental backups created with innobackupex-runner.
#
# This script is provided as-is; no liability can be accepted for use.
#
INNOBACKUPEX=innobackupex-1.5.1
INNOBACKUPEXFULL=/usr/bin/$INNOBACKUPEX
TMPFILE="/tmp/innobackupex-restore.$$.tmp"
@ilyasfoo
ilyasfoo / designer.html
Created August 22, 2015 02:10
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>