Skip to content

Instantly share code, notes, and snippets.

View shiitake's full-sized avatar

Shannon Barrett shiitake

View GitHub Profile
@shiitake
shiitake / azurekeyvault-renew.md
Created November 29, 2022 17:53
Renewing a GoDaddy Certificate stored in Azure Key Vault

Renewing godaddy certificate stored in Azure key vault

Create the CSR

Go the certificate in your keyvault and select certificate operation. From here you can download the CSR you'll need at godaddy.

On the Godaddy website you'll need to choose "rekey" and copy the CSR text into their field.

Once that process has completed you'll be able to download the latest certificate from them.

@shiitake
shiitake / cookieshelper.cs
Created April 22, 2021 16:27 — forked from stefanhendriks/cookieshelper.cs
A cookies helper class to easily read and set cookies on HttpRequest (Asp.Net Core)
public class CookiesHelper
{
// Inspired from:
// https://github.com/aspnet/Mvc/blob/538cd9c19121f8d3171cbfddd5d842cbb756df3e/test/Microsoft.AspNet.Mvc.FunctionalTests/TempDataTest.cs#L201-L202
public static IDictionary<string, string> ExtractCookiesFromResponse(HttpResponseMessage response)
{
IDictionary<string, string> result = new Dictionary<string, string>();
IEnumerable<string> values;
@shiitake
shiitake / nginx_basics.md
Created May 10, 2018 11:50 — forked from leommoore/nginx_basics.md
Nginx Basics

#Nginx Basics for Ubuntu

Please see http://wiki.nginx.org/Main for more information. See http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ for a tutorial on how to install Nginx.

##Installation To install, you can install the version which is in the standard Ubuntu repositories but it is normally quite old and will not have the latest security patches. The best way is to update the repositories first:

apt-get update
apt-get install python-software-properties

apt-get upgrade

  1. RTS
  2. arcade
  3. ARPG
  4. JRPG
  5. minigame
  6. sandbox
  7. platformer
  8. voxel
  9. racing
  10. first person
@shiitake
shiitake / RemoveDoubleQuotes.ps1
Created March 6, 2017 16:00
PowerShell- Remove double quotes from csv files in a directory.
$currentPath = (get-item -Path ".\" -Verbose).FullName
$outputPath = Join-Path $currentPath "fixed"
if (!(Test-Path $outputPath)) {
New-Item -ItemType Directory -Path $outputPath | Out-Null
}
$count = 0
Get-ChildItem $currentPath -Filter "*.csv" |
Foreach-Object {
$content = Get-Content $_.FullName
@shiitake
shiitake / SQLSetupCleanUpScript.bat
Created September 30, 2015 17:33
This is a batch script that you can use to prepare for a SQL Server installation/update/upgrade. See: http://bit.ly/1Lkjvh3
Echo cleaning out temp locations and old SQL Server setup logs
if exist "%temp%" del /Q /F "%temp%"
if exist "%SystemRoot%\temp" del /Q /F "%SystemRoot%\temp"
del /Q /F "%SystemRoot%\sql*.log"
del /Q /F "%SystemRoot%\*.iss"
if exist "“%SystemRoot%\sql.mif"
del /Q /F "%SystemRoot%\sql.mif"
if exist "%TEMP%\1" rmdir /S /Q "%TEMP%\1"
if exist "%TEMP%\2" rmdir /S /Q "%TEMP%\2"
@shiitake
shiitake / keybase.md
Created September 3, 2014 17:41
keybase

Keybase proof

I hereby claim:

  • I am shiitake on github.
  • I am shiitake (https://keybase.io/shiitake) on keybase.
  • I have a public key whose fingerprint is 5132 B154 2E9E 3D22 56CC AC37 1AA2 A38D E33B E181

To claim this, I am signing this object: