Skip to content

Instantly share code, notes, and snippets.

View hylander0's full-sized avatar

Justin Hyland hylander0

View GitHub Profile
@ovitente
ovitente / github actions debug
Created January 21, 2020 13:14
A way to debug Github Actions workflows
---
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
name : debug
on :
push :
branches : [ "master" ]
@drfill
drfill / gist:c18308b6d71ee8032efda870b9be348e
Created October 26, 2017 17:58 — forked from Mindgames/gist:556dc7d1e452d0cefcb7
Amazon S3 download with Curl
#!/bin/sh
file=path/to/file
bucket=your-bucket
resource="/${bucket}/${file}"
contentType="application/x-compressed-tar"
dateValue="`date +'%a, %d %b %Y %H:%M:%S %z'`"
stringToSign="GET
${contentType}
${dateValue}
${resource}"
@jogleasonjr
jogleasonjr / SlackClient.cs
Last active October 20, 2023 15:54
A simple C# class to post messages to a Slack channel. You must have the Incoming WebHooks Integration enabled. This class uses the Newtonsoft Json.NET serializer available via NuGet. Scroll down for an example test method and a LinqPad snippet. Enjoy!
using Newtonsoft.Json;
using System;
using System.Collections.Specialized;
using System.Net;
using System.Text;
//A simple C# class to post messages to a Slack channel
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet
public class SlackClient
{
@spilliams
spilliams / 1_iOS_bootstrap.md
Last active December 14, 2015 17:09
steps for bootstrapping an iOS project

#Bootstrapping An iOS App

Note: If you're bootstrapping a static lib project, read this gist instead.

##Project Setup

  1. New xcode project (including save to directory).
  2. Set devices and iOS target
  3. decide if you're going to use Autolayout (set in the Storyboard > File inspector > Interface Builder Document section)
  4. Create Constants.h, and #import "Constants.h" in the PCH
@djacobs
djacobs / automatedBuildAndUploadToTestflight.sh
Created April 18, 2012 04:20 — forked from amattn/automatedBuildAndUploadToTestflight.sh
Automated Xcode build and upload to TestFlight.
#!/bin/sh
# Current as working as of 2012/4/17
# Xcode 4.3.2
PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX"
WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace"
CONFIG="AdHoc"
SCHEME="XXXXXXXX"
@ashee
ashee / aws-bash.sh
Created March 14, 2012 17:28
Bash script to make AWS REST calls
#!/bin/bash
KEY='<get from AWS>'
ASSOC_ID='<get from AWS>'
TS=$(date -u "+%Y-%m-%dT%H:%M:%SZ" | sed 's/:/%3A/g')
RPARMS="AWSAccessKeyId=$KEY&AssociateTag=$ASSOC_ID&ItemId=0679722769&Operation=ItemLookup&ResponseGroup=ItemAttributes%2COffers%2CImages%2CReviews&Service=AWSECommerceService&Timestamp=$TS&Version=2009-01-06"
read -r -d '' REQ <<EOF
GET
@bforrest
bforrest / FlatFileConsoleRunner.cs
Created January 21, 2012 16:17
Use an xsd to transform a flat file into an xml document
using System;
using System.IO;
using System.Xml;
namespace FlatFileToXml
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1