Skip to content

Instantly share code, notes, and snippets.

View ianphil's full-sized avatar
🛸
Rust

Ian Philpot ianphil

🛸
Rust
View GitHub Profile
@ianphil
ianphil / setup-orleans.sh
Created March 29, 2022 01:24
dotnet 6 "Hello World" Orleans setup script for bash
#!/usr/bin/env bash
POSITIONAL=()
while (( $# > 0 )); do
case "${1}" in
-d|--directory)
SOLUTION_NAME="${2^}"
shift
;;
*)
#!/usr/bin/env bash
resourcegroup="ipeventgrid-rg"
subscriptionid="xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
sitename="ipeventgrid-ws"
topicname="iptopic"
# Create resource group
az group create --name "$resourcegroup" --location eastus2
@ianphil
ianphil / event_viewer.sh
Created October 9, 2019 02:25
Use AzureCLI to setup event subscription and EventGrid viewer
#!/usr/bin/env bash
# Variables
RESOURCE_GROUP_NAME=eventing
RESOURCE_GROUP_LOCATION=eastus
STORAGE_ACCOUNT_NAME=ipeventing
STORAGE_SKU=Standard_LRS
STORAGE_KIND=BlobStorage
STORAGE_ACCESS_TIER=Hot
SITE_NAME=ipeventsite
@ianphil
ianphil / GitHub-Forking.md
Created October 23, 2018 14:11 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@ianphil
ianphil / GitHubScrum.ps1
Created September 4, 2018 15:10
Used to remove and create labels for a repo using the Github API
# Delete label flag will only delete labels and should be run first.
# .\GitHubScrum.ps1 -OwnerName iphilpot -RepositoryName flare -AuthToken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -DeleteLabels
# After Delete labels, run without flag to create labels.
# .\GitHubScrum.ps1 -OwnerName iphilpot -RepositoryName flare -AuthToken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
param([string]$OwnerName = (Read-Host "What is the owner name?"),
[string]$RepositoryName = (Read-Host "What is the repository name?"),
@ianphil
ianphil / edgedeviceconfig.json
Created January 8, 2018 15:49
Used to configure filter module vsts deployment
{
"moduleContent": {
"$edgeAgent": {
"properties.desired": {
"schemaVersion": "1.0",
"runtime": {
"type": "docker",
"settings": {
"minDockerVersion": "v1.25",
"loggingOptions": ""
@ianphil
ianphil / Program.cs
Created November 29, 2017 20:53
FilterModule
namespace FilterModule
{
using System;
using System.IO;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Runtime.Loader;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
@ianphil
ianphil / znc_az_container.sh
Last active July 15, 2019 11:48
Run ZNC in Azure Containers
#!/bin/sh
# Variables
RESOURCE_GROUP='ianphil-znc'
LOCATION='eastus'
STORAGE_NAME='ianphilznc'
STORAGE_SKU='Standard_LRS'
SHARE_NAME='config'
CONTAINER_NAME=$RESOURCE_GROUP
CONTAINER_PORT=6697
@ianphil
ianphil / setup.sh
Last active November 3, 2017 00:24
My Fedora Workstation Setup Script
#!/bin/bash
read -n1 -r -p $'SSH Keys? Press space to continue\n' key
if [ "$key" = '' ]; then
echo $'Continuing...\n'
else
echo $'Exiting...\n'
exit 1
fi
@ianphil
ianphil / Dockerfile
Created September 8, 2017 11:29
Combining Two Docker Images using Docker multi-stage build
FROM docker:dind
FROM azuresdk/azure-cli-python:latest