Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
WillBrubaker / key.md
Created February 4, 2023 08:23
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@WillBrubaker
WillBrubaker / WooTaxSubtotal.txt
Created January 14, 2021 01:53 — forked from fylgjur/WooTaxSubtotal.txt
Apply tax based on subtotal
add_filter( 'woocommerce_product_get_tax_class', 'big_apple_get_tax_class', 1, 2 );
function big_apple_get_tax_class( $tax_class, $product ) {
if ( WC()->cart->subtotal <= 110 )
$tax_class = 'Zero Rate';
return $tax_class;
}
@WillBrubaker
WillBrubaker / oncefiller.user.js
Last active June 27, 2018 11:47 — forked from corsonr/oncefiller.user.js
A8C - Once key field auto-filler
// ==UserScript==
// @name A8C - Once key field auto-filler
// @namespace http://automattic.com/
// @version 0.1
// @description Pre-fill Once fields
// @author Remi Corson
// @match https://mc.a8c.com/once/*
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==
@WillBrubaker
WillBrubaker / custom-my-account-endpoint.php
Last active July 18, 2017 13:17 — forked from claudiosanches/custom-my-account-endpoint.php
Example of custom My Account endpoint.
<?php
class My_Custom_My_Account_Endpoint {
/**
* Custom endpoint name.
*
* @var string
*/
public static $endpoint = 'my-custom-endpoint';
@WillBrubaker
WillBrubaker / removecompletedtorrents.sh
Created March 29, 2016 20:19 — forked from bulljit/removecompletedtorrents.sh
Transmission-Daemon: Remove Completed Torrents
#!/bin/sh
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR=/home/mjdescy/media # the folder to move completed downloads to
# …or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
# use transmission-remote to get torrent list from transmission-remote list
# use sed to delete first / last line of output, and remove leading spaces
# use cut to get first field from each line