Skip to content

Instantly share code, notes, and snippets.

View echostorm's full-sized avatar
💭
Sudo like me.

echostorm

💭
Sudo like me.
View GitHub Profile
@them-es
them-es / functions.php
Last active November 11, 2021 07:14
Include ACF fields in WP-API response
<?php
/**
* Include ACF fields in REST API response
*
* Post, Page or Custom Posttype
*/
function my_theme_acf_to_rest_api( $response, $post, $request ) {
if ( ! function_exists( 'get_fields' ) ) {
return $response;
}
@WisdomSky
WisdomSky / README.md
Last active October 10, 2025 12:21
Signal Server Installation v1.88 Full Guide

# Requirements

  • Java 11
  • Maven
  • Redis
  • PostgreSQL
@alex-georgiou
alex-georgiou / wallets-xyz-cryptonote-coin-adapter.php
Last active November 20, 2021 03:50
Example of how to add a CryptoNote-based wallet to the Monero Coin Adapter extension for Bitcoin and Altcoin Wallets.
<?php
/*
Plugin Name: Cryptonote-based Coin Adapter for XYZ coin
Plugin URI: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/monero-coin-adapter-extension
Description: Example of how to add a CryptoNote-based wallet to the Monero Coin Adapter extension for Bitcoin and Altcoin Wallets.
Version: 0.1.1
Author: Alex Georgiou <alexgeorgiou@gmail.com>
Author URI: http://alexgeorgiou.gr
*/
function wallets_cryptonote_coins_filter( $coins ) {
@mickby
mickby / dashboard.blade.php
Last active July 21, 2023 07:47
Gridstack.js and Vue.js for Laravel dashboard
@extends('layouts.app')
@section('head')
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdn.jsdelivr.net/lodash/4.17.2/lodash.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.css"/>
@kylemcdonald
kylemcdonald / download-seene.py
Last active October 27, 2018 02:20
Download all the content from Seene.
from os.path import basename
from urlparse import urlparse
from os.path import splitext, basename
from multiprocessing.dummy import Pool
from urllib3 import HTTPConnectionPool
from tqdm import tqdm
import fnmatch
import json
import os
import errno
@strangerstudios
strangerstudios / my_wp_bouncer_number_simultaneous_logins.php
Created August 10, 2015 14:07
Tell WP Bouncer to allow 3 simultaneous logins before bouncing people.
function my_wp_bouncer_number_simultaneous_logins($num) {
return 3;
}
add_filter('wp_bouncer_number_simultaneous_logins', 'my_wp_bouncer_number_simultaneous_logins');
@QuantumCD
QuantumCD / mainwindow.cpp
Last active December 8, 2018 11:08
Skeleton to switch a QMainWindow's palette, as well as all the child widgets' palette (can be used for dynamic theming)
// The button clicked events can be replaced with any slots, and/or you can define the
// switchPalette() to be a slot to use with QObject::connect()
// Dark Palette push button
void MainWindow::on_switchToDarkTheme_clicked()
{
this->switchPalette(darkPalette);
}
// Light palette push button
@QuantumCD
QuantumCD / Qt 5 Dark Fusion Palette
Created August 15, 2013 21:40
This is a complete (I think) dark color palette for the Qt 5 Fusion theme, as well as a nice style sheet for the tool tips that make them blend better with the rest of the theme. To have immediate effect, be sure to put this in your main function before showing the parent window. Child windows should automatically inherit the palette unless you …
qApp->setStyle(QStyleFactory::create("Fusion"));
QPalette darkPalette;
darkPalette.setColor(QPalette::Window, QColor(53,53,53));
darkPalette.setColor(QPalette::WindowText, Qt::white);
darkPalette.setColor(QPalette::Base, QColor(25,25,25));
darkPalette.setColor(QPalette::AlternateBase, QColor(53,53,53));
darkPalette.setColor(QPalette::ToolTipBase, Qt::white);
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
darkPalette.setColor(QPalette::Text, Qt::white);
@corsonr
corsonr / gist:5947181
Last active April 21, 2025 16:57
Show WooCommerce product ID in a custom column on products list page
<?php
/**
* Plugin Name: WooCommerce - Show products IDs
* Plugin URI: http://www.remicorson.com/easily-find-woocommerce-products-id/
* Description: Adds a new columns to products list page to display product IDs
* Version: 1.0
* Author: Remi Corson
* Author URI: http://remicorson.com
* Requires at least: 3.5
* Tested up to: 3.5
@woogist
woogist / gist:5692886
Last active January 23, 2021 17:56
Sample WooCommerce Points & Rewards 3rd Party Plugin Integration
<?php
// Add the action setting
add_filter( 'wc_points_rewards_action_settings', 'points_rewards_newsletter_action_settings' );
function points_rewards_newsletter_action_settings( $settings ) {
$settings[] = array(
'title' => __( 'Points earned for newsletter signup' ),
'desc_tip' => __( 'Enter the amount of points earned when a customer signs up for a newsletter via MailChimp.' ),