Skip to content

Instantly share code, notes, and snippets.

View deshabhishek007's full-sized avatar
on Coffee!

Abhishek Deshpande deshabhishek007

on Coffee!
View GitHub Profile
@davekiss
davekiss / gist:2639184ac066c53416b23c5a66f42d1e
Created February 2, 2019 17:44
EDD Weekly Domain Report via Email
/**
* Add a weekly email report that summarizes which domains that
* your products are being used on.
*/
add_filter( 'cron_schedules', function( $schedules ) {
$schedules['weekly'] = array(
'interval' => 604800,
'display' => __('Once Weekly')
);
@ashokrane
ashokrane / edd-extra-api-endpoints.php
Last active January 13, 2019 10:14
Fetch sales & earnings (or refunded sales & earnings) for different products, date-wise - for Easy Digital Downloads
<?php
/*
Plugin Name: Extra API Endpoints for Easy Digital Downloads
Plugin URI: https://www.tychesoftwares.com
Description: This plugin allows to fetch some additional statistics for your Easy Digital Downloads store.
Author: Tyche Softwares
Version: 1.0
Author URI: http://www.tychesoftwares.com/about
Contributor: Tyche Softwares, http://www.tychesoftwares.com/
*/
@DavidToca
DavidToca / install.sh
Last active March 25, 2018 09:57
setup manjaro
#!/bin/bash
# update package index
echo "----------------------UPDATING PACKAGES----------------"
sudo pacman -Syu --noconfirm
echo "----------------------INSTALLING GOOGLE CHROME--------------------"
yaourt google-chrome -S --noconfirm
echo "----------------------INSTALLING TERMINATOR ---------"
yaourt terminator -S --noconfirm
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@Toddses
Toddses / iis-web.config
Last active July 14, 2023 04:29
Example web.config for WordPress on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
@derekconjar
derekconjar / wordpress-firebase.php
Last active May 30, 2022 15:38
An example of using Firebase and WordPress together. The idea is to use WP's custom post types and metaboxes to make content management easy, and sync with Firebase so that your websites have access to a real-time JSON feed of your custom data.
<?php
/**
* All custom functions should be defined in this class
* and tied to WP hooks/filters w/in the constructor method
*/
class Custom_Functions {
// Custom metaboxes and fields configuration