Skip to content

Instantly share code, notes, and snippets.

View incredimike's full-sized avatar
🦉

Mike Walker incredimike

🦉
View GitHub Profile
----- Basic perms ------
libsdisguises.disguise.disguiseclone
libsdisguises.undisguise
libsdisguises.undisguiseentity
libsdisguises.undisguiseplayer
libsdisguises.undisguiseradius
libsdisguises.<Command>.<Disguise Type> - Grants them the option to use all flags as the flags were not provided
libsdisguises.<Command>.<Disguise Type>.<Flags>
@freakdesign
freakdesign / new-content-for-header.liquid
Last active October 15, 2021 23:38
Detect if an admin is logged into Shopify using liquid.
<!--
Simple method for detecting an Admin in Shopify using liquid.
Quick code by jason at freakdesign.com.au
Related Blog post: http://freakdesign.com.au/blogs/news/34154561
-->
{% capture CFH %}{{ content_for_header }}{% endcapture %}{{ CFH }}
{% if CFH contains 'admin_bar_iframe' %}
@elimn
elimn / tribe_attachment_404_fix.php
Last active January 23, 2018 21:00
MT | TEC | Fix for Single Event 404s with attachment set in WP Query
<?php
/*
* Possible solution for Single Event page 404 errors where the WP_Query has an attachment set
* IMPORTANT: Flush permalinks after pasting this code: http://tri.be/support/documentation/troubleshooting-404-errors/
*/
function tribe_attachment_404_fix () {
if (class_exists('TribeEvents')) {
remove_action( 'init', array( TribeEvents::instance(), 'init' ), 10 );
add_action( 'init', array( TribeEvents::instance(), 'init' ), 1 );
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active March 27, 2024 06:33
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@incredimike
incredimike / gist:3087059
Created July 11, 2012 00:05
Change permissions on files and directories separately
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
@incredimike
incredimike / variousCountryListFormats.js
Last active April 23, 2024 01:06
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//