Skip to content

Instantly share code, notes, and snippets.

🐝
Bees Knees! No Pittsburgh For Me :-)

Christopher Zenzel czenzel

🐝
Bees Knees! No Pittsburgh For Me :-)
Block or report user

Report or block czenzel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@czenzel
czenzel / wordpress-sqlite-extensions.php
Last active May 13, 2019
WordPress SQLite Integration Extensions and Fixes
View wordpress-sqlite-extensions.php
<?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 / Extensions.cs
Created Nov 6, 2018
Simple Combine Key-Value Dictionary to Query String Parameters (WIP: Could use improvements)
View Extensions.cs
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 / disableselinux.c
Created Sep 30, 2017
DisableSELinux from Debian-NoRoot
View disableselinux.c
/*
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)
@czenzel
czenzel / chris-analytics.js
Last active Dec 28, 2016
Christopher Zenzel Analytics Plug-In
View chris-analytics.js
/*
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 / radar-ingest.php
Last active Jan 2, 2017
Ingesting Radar Data to NOAAPORT NBSP from the National Weather Service using TGFTP/HTTP
View radar-ingest.php
<?php
/*
* teamWeather - Weather Center
* NOAAPORT FINFO Ingest Script for Radar Data
*
* Updated: 2016/11/12
*
* Copyright 2016 Christopher Zenzel
* All Rights Reserved
*/
@czenzel
czenzel / responsive_social.css
Created Nov 10, 2016
Responsive Social Media Widgets for Twitter, YouTubes, and Others - Built for Weebly Themes
View responsive_social.css
/*
Christopher Zenzel Web Site
Copyright 2016 Christopher Zenzel. All Rights Reserved.
*/
/*
Embeeded Tweet Customized
https://jsfiddle.net/gabrieleromanato/wL298/
http://jsfiddle.net/lightbe/v7xom6ms/
*/
@czenzel
czenzel / youtube.js
Last active Mar 7, 2018
Youtube Internet Search - Download Video within Page
View youtube.js
// 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 / NoaaportReceiver.cs
Last active Aug 14, 2016
NOAAPORT Receiver in Xamarin C#
View NoaaportReceiver.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.IO;
OpenConnection();
void OpenConnection() {
@czenzel
czenzel / disable-automatic-image-crop.php
Created Aug 1, 2016
Wordpress - Disable Automatic Image Cropping
View disable-automatic-image-crop.php
<?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 );
@czenzel
czenzel / .gitignore
Created May 12, 2016
Unity and GitHub
View .gitignore
# .gitignore File
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Set your output directory to ignore
/[Oo]utput/
You can’t perform that action at this time.