Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
guitarrapc / Route53-ResrouceRecord.ps1
Created February 3, 2015 06:28
Amazon Route53 resource record set PowerShell
# Initialize
$resourceSubDomainName = "sample-subdomain"
$zoneName = "contoso.local"
$hostedZone = Get-R53HostedZones | where Name -eq $zoneName
# Set ResourceRecordSet
$resourceName = $resourceSubDomainName + "." + $zoneName
$resourceRecordSet = New-Object Amazon.Route53.Model.ResourceRecordSet
$resourceRecordSet.Name = $resourceName
$resourceRecordSet.Type = "A"
@dmangiarelli
dmangiarelli / GitForWindowsSetup.md
Last active March 22, 2023 22:20
How to setup SSH with Git for Windows

How to setup Git for Windows

I know this document seems long, but it shouldn't be too difficult to follow. This guide is based on Windows, but every program here has Linux/Mac equivalents, and in most cases they're built-in. So, take a deep breath and go step by step.

The steps below are for GitHub, but the steps are almost idential for Bitbucket, Heroku, etc.

You'll probably want to make sure Chocolatey is installed, since it streamlines installing this stuff later. If you install via Chocolatey, you don't need to run the installers from the products' respective sites.

Cmder / ConEmu

@YogirajA
YogirajA / UsefulCommands.md
Last active August 29, 2015 14:01
Frequently used Git Instructions

Misc

create-> touch fileName
remove -> rm fileName
See config -> cat ~/.gitconfig

Git Staging

New Files -> git add .

Unstage/Delete -> git add -u

@duncansmart
duncansmart / MailgunUtil.cs
Last active October 20, 2022 06:19
C# implementation of "Securing Webhooks" sample code https://documentation.mailgun.com/user_manual.html#webhooks
using System;
using System.Text;
using System.Security.Cryptography;
class MailgunUtil
{
/// <summary>
/// Authenticates incoming requests to a Mailgun webhook (https://documentation.mailgun.com/user_manual.html#webhooks).
/// </summary>
/// <example>