Skip to content

Instantly share code, notes, and snippets.

View jerturowetz's full-sized avatar

Jeremy Turowetz jerturowetz

View GitHub Profile
@jerturowetz
jerturowetz / delete-user-meta-box-order.sql
Created December 4, 2020 15:43 — forked from BFTrick/delete-user-meta-box-order.sql
Delete users meta box custom order in the WordPress admin
DELETE
FROM `wp_usermeta`
WHERE `meta_key` LIKE 'meta-box%'
@jerturowetz
jerturowetz / DefaultKeyBinding.Dict
Created January 14, 2020 14:27
Mac OS Keybindings
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X to more
match default home & end key behavior on Windows & Linux systems.
To use Control instead of Command, either swap Control and Command in
Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
@jerturowetz
jerturowetz / ffmpeg_the_works.sh
Last active December 17, 2020 14:55
ffmpeg commands for optimized video output
#!/bin/bash
if ! command -v ffmpeg > /dev/null;
then
echo "Missing ffmpeg!";
exit 1;
fi
# --------------------------------------------------------- #
# ffmpeg_gif () #
<?php
/**
* Functions to register client-side assets (scripts and stylesheets) for the
* Gutenberg block.
*
* @package unito-2019
*/
namespace Namespace\GutenbergBlockLoader;
@jerturowetz
jerturowetz / after.sh
Created September 12, 2017 22:43
Laravel Homestead provisioning script that includes WP-CLI and AWS-CLI
#!/bin/bash
# Functions for later
noroot() {
sudo -EH -u "vagrant" "$@";
}
wp_cli() {
# WP-CLI Install
local exists_wpcli