Skip to content

Instantly share code, notes, and snippets.

@MjHead
MjHead / filter-by-author-and-post-type.php
Created September 26, 2019 10:35
JetSmartFilters. Filter JetEngine listing grid by author and post type.
<?php
/**
* Register new query variables for post type and author
*
* @param array $vars Default query variables array
* @return array
*/
function my_register_filter_query_vars( $vars ) {
array_unshift( $vars, 'post_type', 'author' );
@triwav
triwav / roku-proxy-setup.md
Created April 30, 2019 14:33
Roku Proxy Setup

This is largely based off of this article by Hulu and their roku-dev-cli tool.

Requirements:
The main requirement is a Mac with 2 available network interfaces WIFI <-> WIFI, LAN <-> WIFI, etc. This should work on other platforms as well but isn't covered here.

Setup
The first thing we need is Homebrew. If you've never used it before it's a great package manager for macOS that makes installing programs easier. Open Terminal and paste
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and hit enter

@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 17, 2025 08:47
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S