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 / multipathd_add_missing_path.md
Created January 17, 2022 15:11
multipathd: ssdx: add missing path

multipathd error on VM guest.

Jan 17 15:04:22 hostname multipathd[625]: sda: add missing path
Jan 17 15:04:22 hostname multipathd[625]: sda: failed to get udev uid: Invalid argument
Jan 17 15:04:22 hostname multipathd[625]: sda: failed to get sysfs uid: Invalid argument
Jan 17 15:04:22 hostname multipathd[625]: sda: failed to get sgio uid: No such file or directory

The problem is that VMWare by default doesn't provide information needed by udev to generate /dev/disk/by-id entries. Apart from ESX, VMWare Workstation (my case) is also affected. The resolution is to put

@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 / here-string.ps1
Last active August 27, 2021 13:12
PowerShell HERE-STRING
# PowerShell Here-String
# @"..."@
# @'...'@
# As CSV
$CSV = @"
Column1,Column2,Column3
Line1a,Line1b,Line1c
Line2a,Line2b,Line2c
@p0rkjello
p0rkjello / README
Created November 28, 2020 15:55
BOINC - CentOS
# install
yum update -y
yum install -y epel-release
yum install -y boinc-client
# enable/start
systemctl start boinc-client
systemctl enable boinc-client
# config
@p0rkjello
p0rkjello / docker-compose.yml
Created November 24, 2020 15:45
docker-compose
version: "3.5"
networks:
default:
external:
name: proxy
services:
traefik:
image: traefik:${TRAEFIK_VERSION:-latest}
# k3s server
export K3S_KUBECONFIG_MODE="644"
export INSTALL_K3S_EXEC=" --no-deploy servicelb --no-deploy traefik"
# k3s agent
export K3S_KUBECONFIG_MODE="644"
export K3S_URL="https://<SERVER>:6443"
export K3S_TOKEN="<TOKEN>"
@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 / README
Created October 19, 2020 12:35
Python - Start http server in current directory
# Start http server in current directory
python -m http.server 8000
@p0rkjello
p0rkjello / centos_vmware_guestinfo.sh
Created October 8, 2020 17:35
cloud-init-vmware-guestinfo
# required when using cloud-init on vmware
# setup on image creation provisioner or ks.
sudo yum install epel-release -y
sudo yum install python-netifaces -y
sudo yum install python-pip -y
# the rpm is not the current release.
sudo curl -sSL https://raw.githubusercontent.com/vmware/cloud-init-vmware-guestinfo/master/install.sh | sudo sh -
@p0rkjello
p0rkjello / README.md
Last active October 8, 2020 14:58
esxi vnc settings for packer

packer esxi vmc

configure esxi hypervisor for use with packer

enable GuestIPHack

esxcli system settings advanced set -o /Net/GuestIPHack -i 1