Skip to content

Instantly share code, notes, and snippets.


Taylor Steil tayl0r

View GitHub Profile
tayl0r /
Last active Oct 31, 2019
resizes images to the nearest multiple of 4
# license: do whatever you want
# author: taylor steil
# purpose: resizes images to a multiple of 4.
# will resize them the least amount possible and also keep the aspect ratio as close to the original as possible
# will also pngcrunch the image
# this is useful for using images in ETC2 Crunch compression, which requires image sizes to be a multiple of 4
# requirement: imagemagick (should be able to apt-get install imagemagick)
# requirement: pngcrush (should be able to apt-get install pngcrush)
View FCTextureImportProcessor.cs
using Debug = FC.Debug;
using Debug = UnityEngine.Debug;
using UnityEditor;
using UnityEngine;
public class FCTextureImportProcessor : AssetPostprocessor {
tayl0r / Google Play Api - Apk
Last active Aug 12, 2020 — forked from machinekoder/Google Play Api - Apk
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "" for uploading apks.


Download Google APIs Client Library for Python (google-api-python-client): or use pip:

  $ pip install google-api-python-client

Keybase proof

I hereby claim:

  • I am tayl0r on github.
  • I am tayl0r ( on keybase.
  • I have a public key ASBb_ZstB10PNQD-Xd9tyjybBEUVzVQ2E1L9qYTg9eu3Ago

To claim this, I am signing this object:

View eu vs germany low income.txt
Average gross monthly earnings1 - Germany
2015 3,612 monthly = 43,344 yearly
Accomodation and food service activities 27,386 = 2282 monthly = $31,088 to table Average gross annual earnings in 2015
View link.xml
tayl0r / Wmi Check
Last active Apr 22, 2019
datadog wmi check config for IIS request queue
View Wmi Check
- class: Win32_PerfFormattedData_ASPNET_ASPNET
- [RequestsCurrent, iis.asp.RequestsCurrent, gauge]
- [RequestsInNativeQueue, iis.asp.RequestsInNativeQueue, gauge]
- [RequestsQueued, iis.asp.RequestsQueued, gauge]
- [RequestsRejected, iis.asp.RequestsRejected, gauge]
- [RequestWaitTime, iis.asp.RequestWaitTime, gauge]
tag_by: Name
# i have a mixed web-api (90%) and MVC (10%) app running on Windows Server 2012 / IIS 8 on .NET 4.5.2
tayl0r / gist:bd943708358abf64732f
Created Dec 31, 2014
Java 2048m Command Line Interceptor
View gist:bd943708358abf64732f
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.IO;
namespace CommandlineInterceptor {
View gist:64d63e90b758036f9771
#include "PluginBase/AppDelegateListener.h"
+ (void)load
// startup notification (local and remote)
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FoxCubIosOnLoad:) name:UIApplicationDidFinishLaunchingNotification object:nil];
// resume notification (local)
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FoxCubIosOnLocalNotif:) name:kUnityDidReceiveLocalNotification object:nil];
View gist:aef79937a11e10bf663e
+ (void)load
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidReceiveMemoryWarning:) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
// this one contains userInfo about our notification
//[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FoxCubIosOnLoad:) name:UIApplicationDidFinishLaunchingNotification object:nil];
// these two do not contain any useful userInfo about notifications
//[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FoxCubIosOnLoad:) name:UIApplicationDidBecomeActiveNotification object:nil];
//[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FoxCubIosOnLoad:) name:UIApplicationWillEnterForegroundNotification object:nil];