Skip to content

Instantly share code, notes, and snippets.

Avatar

Taylor Steil tayl0r

View GitHub Profile
@tayl0r
tayl0r / imageResizerMultipleOf4.pl
Last active Oct 31, 2019
resizes images to the nearest multiple of 4
View imageResizerMultipleOf4.pl
#!/usr/bin/perl
# license: do whatever you want
# author: taylor steil https://github.com/tayl0r
# 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
#if !UNITY_EDITOR || FCLOG
using Debug = FC.Debug;
#else
using Debug = UnityEngine.Debug;
#endif
using UnityEditor;
using UnityEngine;
public class FCTextureImportProcessor : AssetPostprocessor {
@tayl0r
tayl0r / Google Play Api - Apk Upload.md
Last active Aug 12, 2020 — forked from machinekoder/Google Play Api - Apk Upload.md
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk Upload.md

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 "YOUR_SERVICE_ACCOUNT_EMAIL@developer.gserviceaccount.com" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

  $ pip install google-api-python-client
View keybase.md

Keybase proof

I hereby claim:

  • I am tayl0r on github.
  • I am tayl0r (https://keybase.io/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
https://www.destatis.de/EN/FactsFigures/NationalEconomyEnvironment/EarningsLabourCosts/EarningsEarningsDifferences/Tables/LongTimeSeriesD.html
Average gross monthly earnings1 - Germany
2015 3,612 monthly = 43,344 yearly
Accomodation and food service activities 27,386 = 2282 monthly = $31,088
https://www.destatis.de/EN/FactsFigures/NationalEconomyEnvironment/EarningsLabourCosts/EarningsEarningsDifferences/Tables/YearlyGrossEarnings.html#Link to table Average gross annual earnings in 2015
http://www.mybudget360.com/how-much-do-americans-earn-in-2015-household-income-wages-real-income-gdp/
View link.xml
@tayl0r
tayl0r / Wmi Check
Last active Apr 22, 2019
datadog wmi check config for IIS request queue
View Wmi Check
- class: Win32_PerfFormattedData_ASPNET_ASPNET
metrics:
- [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
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];