Skip to content

Instantly share code, notes, and snippets.

@haysclark
haysclark / Guardfile
Last active December 28, 2015 18:09
Simple Guardfile for Haxe's MUnit that will echo the results to console and will also dispatch a Growl notify event.
# Guard File for MUnit
# Will parsing MUnit Test Results to Growl
#
require 'rubygems'
require 'ruby_gntp'
PASS_ICON_URL = 'http://static.binaryfruit.com/images/drivedx/overview/IconExclamCheck.png'
FAIL_ICON_URL = 'http://static.binaryfruit.com/images/drivedx/overview/IconExclamRed.png'
VERBOSE_FAIL = false
@haysclark
haysclark / build_ipa.sh
Last active January 21, 2016 19:22
Script generates an IPA file from the default OpenFL iOS build path. Has various options, use -h to get help.
#!/bin/bash
#
# OpenFL Build to IPA Script iOS 2.0, 2014
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
@haysclark
haysclark / FlexSDKCodingConventions.md
Created December 13, 2015 02:24
Flex SDK coding conventions and best practices, converted to GitHub friendly Markdown

Flex SDK coding conventions and best practices

Note: This page is not yet complete and has some sections marked TBD. But there's plenty here to get you started!

Introduction

This document lays out the coding standards for writing open-source Flex framework components in ActionScript 3. Adhering to these standards makes the source code look consistent, well-organized, and professional.

@haysclark
haysclark / squeezecloud_0_9_1.xml
Last active March 2, 2017 08:00
Testing url for SqueezeCloud version 0.9.1
<extensions>
<details>
<title lang="EN">SqueezeCloud Plugin</title>
</details>
<plugins>
<plugin name="SqueezeCloud" version="0.9.1" minTarget="7.5" maxTarget="*">
<title lang="EN">SqueezeCloud</title>
<desc lang="EN">Browse, search and play urls from soundcloud</desc>
<url>
http://haysclark.github.io/SqueezeCloud/SqueezeCloud-0.9.1.zip
0.000016 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000055 main (2): gphoto2 2.5.15
0.000060 main (2): gphoto2 has been compiled with the following options:
0.000075 main (2): + clang (C compiler used)
0.000078 main (2): + popt (mandatory, for handling command-line parameters)
0.000081 main (2): + no exif (for displaying EXIF information)
0.000084 main (2): + no cdk (for accessing configuration options)
0.000086 main (2): + no aa (for displaying live previews)
0.000089 main (2): + jpeg (for displaying live previews in JPEG format)
0.000091 main (2): + readline (for easy navigation in the shell)
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image
Please make sure there is sufficient quoting around the arguments.
@haysclark
haysclark / OVRPlugin.cs
Created August 3, 2018 19:32
OSX fix for Oculus Utilities for Unity version 1.27.0
/************************************************************************************
Copyright : Copyright 2017 Oculus VR, LLC. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.4.1 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which is provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
You may obtain a copy of the License at
@haysclark
haysclark / install-jx.sh
Last active July 1, 2019 22:04
Shell script for install the latest version of Jenkins-X in Google Shell
#!/bin/bash
# jx
pushd /tmp/
curl -s https://api.github.com/repos/jenkins-x/jx/releases/latest \
| grep browser_download_url \
| grep linux-amd64 \
| cut -d '"' -f 4 \
@haysclark
haysclark / rename-git-master-to-main
Created April 21, 2021 19:16
bash script to quickly switch a git repo from master to main
#!/usr/bin/env bash
# confirm user action
echo "You are about to rename git master branch to main?"
read -r -p "Are you sure? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]
then
git branch -m master main
git push -u origin main
@haysclark
haysclark / charts_PROJECT-NAME_templates_deployment.yaml
Last active March 8, 2022 05:57
Jenkins-X scale Previews to Zero with Osiris for dev packs with `preview/values.yaml.gotoml` (note: I'm using "_" in filename instead of "/" because of Gist limitation)
{{- if .Values.knativeDeploy }}
{{- else }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
labels:
draft: {{ default "draft-app" .Values.draft }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- if .Values.deploymentLabels }}