Skip to content

Instantly share code, notes, and snippets.

Christopher Zenzel czenzel

View GitHub Profile
View temperatures.csv
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
View metar.json
[[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 Sep 27, 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 Sep 27, 2019
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() {
You can’t perform that action at this time.