Skip to content

Instantly share code, notes, and snippets.

View czenzel's full-sized avatar

Christopher Zenzel czenzel

View GitHub Profile
@czenzel
czenzel / disable-automatic-image-crop.php
Created August 1, 2016 07:29
Wordpress - Disable Automatic Image Cropping
<?php
/*
Plugin Name: Disable Automatic Image Crop
Author: Wordpress Community
Description: wpse124009 - http://wordpress.stackexchange.com/questions/124009/why-wordpress-automatic-cropping-all-my-images and https://developer.wordpress.org/reference/functions/remove_image_size/
*/
add_action( 'init', 'czc_disable_extra_image_sizes' );
add_filter( 'image_resize_dimensions', 'czc_disable_crop', 10, 6 );
REG ADD HKLM\SYSTEM\Setup\MoSetup /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1
x y z
-81.10880279541016 34.31549835205078 68
-92.65239716 37.64830017 23
-82.5779037475586 38.98139953613281 59
-88.5847015381 36.769100189199996 39.2
-81.11360168457031 29.300600051879883 71.6
-89.561798095703 36.898899078369 39.2
-87.9541015625 32.46379852294922 64.4
-80.3994979858 37.8582992554 64.4
69.212303 34.565899 28.4
[[39.0957984924,-93.20290374759999,51.8],[39.0957984924,-93.20290374759999,51.8],[38.98139953613281,-82.5779037475586,35.6],[37.64830017,-92.65239716,51.8],[36.769100189199996,-88.5847015381,55.400000000000006],[34.31549835205078,-81.10880279541016,48.2],[36.898899078369,-89.561798095703,57.2],[34.31549835205078,-81.10880279541016,48.2],[38.98139953613281,-82.5779037475586,35.6],[37.64830017,-92.65239716,51.8],[36.769100189199996,-88.5847015381,55.400000000000006],[36.898899078369,-89.561798095703,57.2],[34.31549835205078,-81.10880279541016,48.2],[38.98139953613281,-82.5779037475586,35.6],[37.64830017,-92.65239716,51.8],[36.898899078369,-89.561798095703,57.2],[36.769100189199996,-88.5847015381,55.400000000000006],[32.46379852294922,-87.9541015625,60.8],[32.438702,-90.103104,60.8],[40.86470031738281,-84.6093978881836,44.6],[32.46379852294922,-87.9541015625,60.8],[32.438702,-90.103104,60.8],[40.86470031738281,-84.6093978881836,44.6],[40.86470031738281,-84.6093978881836,44.6],[32.46379852294922,-87.9541015625,60
@czenzel
czenzel / wordpress-sqlite-extensions.php
Last active September 27, 2019 11:51
WordPress SQLite Integration Extensions and Fixes
<?php
/*
Plugin Name: SQLite Query Fixes
Description: Custom SQLite Fixes for Wordpress and SQLite Integration
Author: Christopher Zenzel
Version: 1.0
*/
add_filter('query', 'czwp_sqlite_query');
@czenzel
czenzel / chris-analytics.js
Last active September 27, 2019 11:50
Christopher Zenzel Analytics Plug-In
/*
Christopher Zenzel Analytics
Advanced Analytics for Google Analytics Platform
Copyright 2016 Christopher David Zenzel
All Rights Reserved.
https://chriszenzel.com
For the purpose of this project and why certain
@czenzel
czenzel / Extensions.cs
Created November 6, 2018 21:03
Simple Combine Key-Value Dictionary to Query String Parameters (WIP: Could use improvements)
public static class Extensions
{
public static string CombineToQuerystring(this Dictionary<string, string> Components)
{
List<string> objStrings = new List<string>();
foreach (var objParam in Components)
objStrings.Add(string.Format(@"{0}={1}", objParam.Key, objParam.Value));
return string.Join("&", objStrings.ToArray());
@czenzel
czenzel / youtube.js
Last active March 7, 2018 05:18
Youtube Internet Search - Download Video within Page
// Run from the dev tools console of any Youtube video
// Accurate as of June 12, 2016
var videoUrls = {};
ytplayer.config.args.url_encoded_fmt_stream_map.split(',').forEach(function (item) {
var obj = {};
item.split('&').forEach(function (param) {
param = param.split('=');
obj[param[0]] = decodeURIComponent(param[1]);
@czenzel
czenzel / usb_root.rb
Last active November 30, 2017 18:01
USB and File System Root URL for Jekyll Generated Sites (File System Jekyll without Web Server)
# USB / File System Root and URL Root for Jekyll
#
# Description: Create links and paths within your site using a file system root
# Description: This plugin is not limited to USB use for a Jekyll Static Site
#
# Built by: Christopher Zenzel, AA, IST
# Purpose: A Jekyll Web Site containing my Resume for distribution via USB
# Built: 2015
#
# Please use as you want, but please give credit back to my GIST or
@czenzel
czenzel / disableselinux.c
Created September 30, 2017 19:36
DisableSELinux from Debian-NoRoot
/*
Code from the Debian NoRoot Project
https://github.com/pelya/debian-noroot/blob/master/disableselinux/disableselinux.c
*/
#include <errno.h>
extern int audit_open (void);
int audit_open (void)