Skip to content

Instantly share code, notes, and snippets.

View p0rkjello's full-sized avatar
🏠
Working from home

Andrew Bounds p0rkjello

🏠
Working from home
View GitHub Profile
@p0rkjello
p0rkjello / WinRM-HTTPS.ps1
Created September 3, 2021 16:31 — forked from TechIsCool/WinRM-HTTPS.ps1
A simple Powershell WinRM-HTTPs setup
Write-Output "Disabling WinRM over HTTP..."
Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP"
Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC"
Get-ChildItem WSMan:\Localhost\listener | Remove-Item -Recurse
Write-Output "Configuring WinRM for HTTPS..."
Set-Item -Path WSMan:\LocalHost\MaxTimeoutms -Value '1800000'
Set-Item -Path WSMan:\LocalHost\Shell\MaxMemoryPerShellMB -Value '1024'
Set-Item -Path WSMan:\LocalHost\Service\AllowUnencrypted -Value 'false'
Set-Item -Path WSMan:\LocalHost\Service\Auth\Basic -Value 'true'
@p0rkjello
p0rkjello / go-os-arch.md
Created October 21, 2020 11:54 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.14.7 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • aix
  • android
@p0rkjello
p0rkjello / PowerShell Accelerators
Created May 22, 2017 11:47 — forked from Staggerlee011/PowerShell Accelerators
List of available PowerShell accelerators
# List of available PowerShell Accelerators to use in functions
[psobject].Assembly.GetType('System.Management.Automation.TypeAccelerators')::Get | sort-Object -Property Value
@p0rkjello
p0rkjello / mirrorlist.hook
Last active August 26, 2016 15:06 — forked from jaksi/mirrorlist.hook
Update pacman mirrorlist using reflector after each upgrade of pacman-mirrorlist
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = pacman-mirrorlist
[Action]
Description = Updating mirrorlist...
When = PostTransaction
Depends = reflector
@p0rkjello
p0rkjello / Script_Template.ps1
Created August 23, 2016 15:43 — forked from 9to5IT/Script_Template.ps1
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@p0rkjello
p0rkjello / bobp-python.md
Created August 5, 2016 15:20 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@p0rkjello
p0rkjello / esxi.xml
Last active August 29, 2015 14:27 — forked from jcpowermac/esxi.xml
<domain type='kvm' id='12'>
<name>esxi</name>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>