Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am squid808 on github.
  • I am squid808 (https://keybase.io/squid808) on keybase.
  • I have a public key ASANGxPrsCZMJaBa4SrJqL5wQQBDJ8kfdIiUOyjSSgKNmgo

To claim this, I am signing this object:

@squid808
squid808 / Get-AHKUnicode.ps1
Last active July 25, 2022 11:16
Get-AHKUnicode
<#
.Synopsis
Gets the unicode characters for a given string
.DESCRIPTION
When using Hotstrings in AutoHotKey certain things need to be in unicode, like emojis.
This returns a properly formatted unicode set for that particular use. It's silly.
.EXAMPLE
Get-EmojiUnicode "ᕕ( ᐛ )ᕗ"
C:> {U+1555}{U+0028}{U+0020}{U+141B}{U+0020}{U+0029}{U+1557}
.NOTES
<#
This is regarding the code generated here:
https://github.com/squid808/CanvasApis
The generated method for this function doesn't appropriately handle the
uploading of files, it instead needs to be handled specially to allow the
multipart/form-data type to contain both body params and the file itself
#>
function Post-CanvasSisImports {
[CmdletBinding()]
@squid808
squid808 / keybase.md
Created September 18, 2017 20:13
keybase.md

Keybase proof

I hereby claim:

  • I am squid808 on github.
  • I am squid808 (https://keybase.io/squid808) on keybase.
  • I have a public key ASAG-Pw8QM8hoE4Mt1ZIqb1_KdTh5cexvCJmpstti53-ogo

To claim this, I am signing this object:

Add-Type -assembly “system.io.compression"
Import-Module gShell #https://github.com/squid808/gShell/
$Desktop = $env:USERPROFILE + "\Desktop"
function ExtractGzAttachmentToXml ([byte[]]$ByteArray){
try {
$CompressedStream = New-Object System.IO.MemoryStream -ArgumentList @(,$Bytes)
$ZipStream = New-Object System.IO.Compression.GZipStream `
using System.Collections.Generic;
using gShell.dotNet.Utilities.OAuth2;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Admin.Directory.directory_v1;
namespace gShell_dotNetExample
{
class Program
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Xml.Linq;
namespace SyndicationFeedTest
{
"kind": "discovery#restDescription",
"etag": "",
"discoveryVersion": "",
"id": "admin:emailsettings_v1",
"name": "admin",
"canonicalName": "emailsettings",
"version": "emailsettings_v1",
"revision": "20160313",
"title": "Admin Email Settings API",
@squid808
squid808 / PagerDutyCmdletTest.ps1
Created March 4, 2016 21:44
A script to test the PagerDuty PoSh Client Library
Import-Module PagerDuty
#TAKE ANOTHER LOOK AT THE INCIDENTS GET/SET
try {
#Test creating new things
Write-Host -ForegroundColor Green -Object "Testing New-PagerDutyUser"
$NewUser1 = New-PagerDutyUser -Name "New TestUser1" -Email "newTestUser1@somefakedomain.com"
$NewUser2 = New-PagerDutyUser -Name "New TestUser2" -Email "newTestUser2@somefakedomain.com"
$NewUser3 = New-PagerDutyUser -Name "New TestUser3" -Email "newTestUser3@somefakedomain.com"