Skip to content

Instantly share code, notes, and snippets.

View rolambert's full-sized avatar
👋
@Home

Rob Lambert rolambert

👋
@Home
View GitHub Profile
@rolambert
rolambert / wol.ps1
Created March 10, 2022 21:50
Powershell Magic Packet Wake on Lan Snipit
$Mac = "00:11:8c:ee:80:aa"
$MacByteArray = $Mac -split "[:-]" | ForEach-Object { [Byte] "0x$_"}
[Byte[]] $MagicPacket = (,0xFF * 6) + ($MacByteArray * 16)
$UdpClient = New-Object System.Net.Sockets.UdpClient
$UdpClient.Connect(([System.Net.IPAddress]::Broadcast),7)
$UdpClient.Send($MagicPacket,$MagicPacket.Length)
$UdpClient.Close()
@rolambert
rolambert / SetUpPC.ps1
Last active September 27, 2024 04:42
Set up a windows machine for python and .Net development
param(
[string]$vsrelease="17", #17=2022
[string]$vsedition="enterprise", #community, professional, or enterprise
[string]$pythonversion = "3.9.10"
)
###
# Author: Robert Lambert
# Revision: 1.0
# Date Edit: 2022
@rolambert
rolambert / Setup_php_webdev.ps1
Last active October 25, 2023 23:38
Create a php dev enviroment on windows using podman.
# Author: Robert Lambert
# OS: Windows
# Creation: 2023
# Configuration variable names.
$nginx_conf = "webdev_config.conf"
$nginx_conf_dir = "~\.podman_nginx_configs"
$website_src_files = "c:\Users\robertlambert\.webdevphp"
$website_name = "webdev"