Skip to content

Instantly share code, notes, and snippets.

View tayl0r's full-sized avatar

Taylor Steil tayl0r

View GitHub Profile
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
public static class PostBuildTrigger
{
// Frameworks Ids - These ids have been generated by creating a project using Xcode then
// extracting the values from the generated project.pbxproj. The format of this
// file is not documented by Apple so the correct algorithm for generating these
@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 / 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 "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
@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 / 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

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:

@tayl0r
tayl0r / ProgressBar.shader
Created March 6, 2014 02:26
unity3d shader based progress bar
Shader "Custom/ProgressBar"
{
Properties
{
_MaskTex ("Mask Tex", 2D) = "white" {}
_BarTex ("Bar Tex", 2D) = "white" {}
_Progress ("Progress", range(0, 1)) = .5
_C1 ("C1", Color) = (1, 1, 1, 0)
//_C2 ("C2", Color) = (0, 0, 0, 1)
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/
I/Unity ( 1559): purchase failed: User canceled. (response: -1005:User cancelled)
I/Unity ( 1559):
I/Unity ( 1559): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
I/Unity ( 1559):
I/Unity ( 1559): INVENTORY: credits_5000_199
I/Unity ( 1559):
I/Unity ( 1559): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
I/Unity ( 1559):
I/Prime31 ( 1559): Attempting to consume an item that has not been purchased. Aborting to avoid exception. sku: credits_5000_199
I/Unity ( 1559): INVENTORY: credits_25000_499