Skip to content

Instantly share code, notes, and snippets.

matiaslopezd / webhook.header.txt
Last active Aug 14, 2021
Woocommerce webhook payload and header example
View webhook.header.txt
expect 100-continue
content-length 1998
connection close
x-wc-webhook-delivery-id 36e520ebabc2fa725092ff4a47acedf2
x-wc-webhook-id 3
x-wc-webhook-signature 5poyFy4qB6fdvvT5pGbefZmfkpL48uD47F0WYwfmpo4=
x-wc-webhook-event created
x-wc-webhook-resource order
x-wc-webhook-topic order.created
stephenwoodford / sphinx.rb
Created Nov 1, 2018 — forked from korny/sphinx.rb
Sphinx Homebrew formula for MySQL 5.7
View sphinx.rb
class Sphinx < Formula
desc "Full-text search engine"
homepage ""
url ""
sha256 "6662039f093314f896950519fa781bc87610f926f64b3d349229002f06ac41a9"
head ""
bottle do
sha256 "b890cf523db9777c7d125842fd6b0a53fe9a7a5a4cb816389ba6f5ee6483c78d" => :high_sierra
sha256 "55ce34bdedf13946fa614bde50839d93135eae720f1021e2c87807d04515ab18" => :sierra
decent-dev /
Last active Feb 21, 2018
Instructions to setup a local Rinkeby node and run's Slots Testnet
View Slots Testnet Instructions

The slots runs on the Rinkeby test network. Users are given options to use Infura's mainnet nodes or their local Geth node.

You can access the testnet by visiting the following URL:

If you'd like to use your own local Geth node, follow the instructions below. For Mac OSX, you could follow our tutorial video. Otherwise, skip to the usage instructions

Setting up a local Rinkeby node

require 'sidekiq/api'
# 1. Clear retry set
# 2. Clear scheduled jobs
tiagoengel /
Last active Nov 3, 2021
Hiss / White / Static noise cancellation on Linux using Pulseaudio and Sox
# You'll need to have sox, pavucontrol and alsa-utils installed, and the snd_aloop kernel module loaded.
# You can configure your system to load it on startup or load it manually with "sudo modprobe snd_aloop"
# Once this is script is running, you need to start recording audio in the application of your
# preference, open pavucontrol, go to the recording tab and change the recording source of that application
# to "Monitor of Loopback ..."
View git-logout
# Logout current GitHub credentials and remove global,
echo -e "\nprotocol=https\n" | git credential-osxkeychain erase
git config --unset-all --global
git config --unset-all --global
drewkerrigan /
Last active Jun 6, 2021
Setting open files limit in OSX 10.11.3

Download this gist, and then run:

chmod 755

Restart the system, and then run:

kostecky / capistrano_haproxy_rolling_deploy.rb
Last active Mar 26, 2018
Capistrano rolling deploy with haproxy
View capistrano_haproxy_rolling_deploy.rb
# Create a map of the deploy server to the haproxy label
server 'A.A.A.A', proxy_label: 'server-01'
server 'B.B.B.B', proxy_label: 'server-02'
# Define our puppet proxy server(s) and role
server 'C.C.C.C', no_release: true, roles: [:proxy]
# We need to override deploy:symlink:linked_dirs
# No way around it - override deploy:symlink:release and rewrite it for rolling deploys
djonsson /
Last active Apr 27, 2021
OS X installation instructions for Elasticsearch + Kibana + Marvel

What is this?

Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask


If you already have Java installed on your system, skip steps Install Cask and Install Java

If you already have Java and Homebrew installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update

Install Homebrew

  • $ ruby -e "$(curl -fsSL"
ryancdotorg /
Created Aug 20, 2015
A FAT32 fragmenter, because I am a horrible person.
#!/usr/bin/env python
import random
import struct
import sys
# Most of the Fat32 class was cribbed from
def ppNum(num):
return "%s (%s)" % (hex(num), num)