Skip to content

Instantly share code, notes, and snippets.

View jaapbrasser's full-sized avatar
🥑
Debugging Quokkas

Jaap Brasser jaapbrasser

🥑
Debugging Quokkas
View GitHub Profile
# PowerShell + HTML5 prototype. Needs audio. Run: iex (New-Object Net.WebClient).DownloadString("http://bit.ly/e0Mw9w")
if($host.Name -ne "ConsoleHost")
{
Start-Process powershell -ArgumentList '-noprofile -noexit -command iex (New-Object Net.WebClient).DownloadString(''http://bit.ly/e0Mw9w'')'
return
}
$data = 'H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In638zpb5E36Wfp7biUpPR+lP/ZjvyeeH//xH/89f5x/0C9Dz4/rvz/2ex4+0kd+Ofz4k0/MewIC/3zyyScfH9Lz6PDwx3/s95T2I/Pio0O8Ii/5nX/Cb/ivcGN57BsGGfcKnuAVfcn1gtbyAr3ycfwVfklesQ+N4uNPOq+M+D8e/CH+k3af8JtoT80+1p+2l5G05v/jM3mBn48/jr4ywiNIDb1yqDT2X9Fh8D+fdF5BYzct/iv8EX7EXzGd4BWLlyHZx+EL/M7Hn0gX+goTzL3i3vjkYzsY/ONeca39Vyyl5SWlQu8V6evjT7Qffsdy5MeHOlp5xcMLvXzM73Dbj/kfDIbJaSkWIPboUBoyWh8zmvrKobxlGMbh9ejRJwYzxsiMwgB8pETmF/i/kTcY88rH+oq8Frwykp68mWFS8TsOcXnFodV9xcyle8N/ZSTI4ZVDeeHHzSuuE6bYj3sA7MedXjqvuF70gQx0MDv8xBLMUExe0bfwsXTz4zKX4JdPPu73gn91goCG6cYg9uM//nHwiocXXsIcB4ihHesL5jKn+
@jaapbrasser
jaapbrasser / README.md
Last active July 23, 2021 07:49 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@jaapbrasser
jaapbrasser / Show-Carpet
Created July 6, 2021 09:16 — forked from dfinke/Show-Carpet
The Shining carpet pattern program
<#
Orginal Python: https://twitter.com/AlSweigart/status/1411893003157913603
#>
function Show-Carpet {
param(
$X = 6, # How many times to tessellate horizontally.
$Y = 4 # How many times to tessellate vertically.
)
func main() {
nodeIp := ""
username := ""
password := ""
rubrik := rubrikcdm.Connect(nodeIp, username, password)
vmName := "JBRASSER-WIN"
objectType := "vmware"
timeOut := 30
@jaapbrasser
jaapbrasser / DownloadIgniteSessions.ps1
Last active November 10, 2019 17:44
Download all Microsoft Ignite presentations
(irm 'https://api-myignite.techcommunity.microsoft.com/api/session/all') |
? title -match powershell |
% -Parallel {
iwr $($_.downloadVideoLink) -OutFile "C:\ignite\$($_.sessioncode).mp4"
}
# Originally tweeted by Anthony Allen
# https://twitter.com/PSAdm/status/1192909669947318272?s=19
@jaapbrasser
jaapbrasser / gist:262217968b9e0ec73073b147908cf9ff
Last active March 24, 2019 17:20
Weekly Rubrik Backup Job - Issue 667
# MAIN
$sla = 'S3_Weekly_cloud_archive'
# Source SLA seperated by comma
#Example - $sourceslas = ('SQL_Base','SLA2')
$sourceslas = ('BASE_SLA')
$rubrik = '*.*.*.*'
. "D:\ctm_jobs\Rubrik\Write-Log.ps1"
@jaapbrasser
jaapbrasser / Get-NetshFireWallRule
Created January 17, 2017 09:13 — forked from Stephanevg/Get-NetshFireWallRule
Get the current firewall rules. This function is a wrapper around NETSH. It has been written to address the lack of cmdlet on Windows 2008R2 and previous versions. It should be used ONLY for systems prior to 2012.
Function Get-NetshFireWallrule {
Param(
[String]$RuleName
)
if ($RuleName){
$Rules = netsh advfirewall firewall show rule name="$ruleName"
}else{
$Rules = netsh advfirewall firewall show rule name="all"
}