Skip to content

Instantly share code, notes, and snippets.

View tayl0r's full-sized avatar

Taylor Steil tayl0r

View GitHub Profile
@tayl0r
tayl0r / dyndns-route53.sh
Created March 15, 2022 22:10
dynamic dns with AWS route53
#!/bin/bash -x
# Hosted Zone ID e.g. BJBK35SKXXXX
ZONEID="XXXXXXXXXXXXXX"
# The CNAME you want to update e.g. scv.tsteil.com
RECORDSET=$1
# More advanced options below
# The Time-To-Live of this recordset
@tayl0r
tayl0r / imageResizerMultipleOf4.pl
Last active October 31, 2019 16:55
resizes images to the nearest multiple of 4
#!/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)
#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 August 12, 2020 19:46 — 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

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 "[email protected]" 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

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:

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/
@tayl0r
tayl0r / Wmi Check
Last active April 22, 2019 02:38
datadog wmi check config for IIS request queue
- 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 December 31, 2014 14:46
Java 2048m Command Line Interceptor
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.IO;
namespace CommandlineInterceptor {
@tayl0r
tayl0r / gist:64d63e90b758036f9771
Last active August 29, 2015 14:11
notif tracking
#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];