Skip to content

Instantly share code, notes, and snippets.

@w00dbury
w00dbury / Readme.md
Last active August 29, 2024 18:29 — forked from LM1LC3N7/Readme.md
Automating application install on a fresh Windows 10/11 using Microsoft Store and winget

FASIC

Fast and Automatic Software Install and Configuration (on Windows)

Need

Install my common apps on Windows as fast as possible and mostly automatically, after a reimaging or reset of my OS. Also change some settings on Windows, like disabling the bing search in the start menu.

How it works?

This PowerShell script uses Microsoft Store and winget to download and install a list of application, configured at the top of the file.

@w00dbury
w00dbury / zupimages_urls.txt
Last active April 25, 2024 19:43
zupimages scams
https://zupimages.net/up/24/17/lasb.png
https://zupimages.net/up/24/13/dhg8.png
https://zupimages.net/up/24/13/vvqf.png
https://zupimages.net/up/24/13/9k14.png
https://zupimages.net/up/24/13/7t3i.png
https://zupimages.net/up/24/13/n401.png
https://zupimages.net/up/24/13/rb6m.png
https://zupimages.net/up/24/10/ki13.png
https://zupimages.net/up/23/27/h5rw.png
https://zupimages.net/up/23/27/8lfg.png
@w00dbury
w00dbury / gist:b7336aac519e45bf0b6f577626be30ee
Created July 24, 2020 20:44
Update date from http header
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
@w00dbury
w00dbury / NYC Taxi Data
Last active April 29, 2022 18:52
Download NYC taxi data
aws s3 sync s3://nyc-tlc . --no-sign-request --exclude "*" --include "trip data*"
@w00dbury
w00dbury / GetAllWifiPasswords.ps1
Created August 28, 2018 03:05 — forked from Saturate/GetAllWifiPasswords.ps1
PowerShell Wifi Script
# Run this script as an Admin user and get a list of all WiFi passwords.
$listProfiles = netsh wlan show profiles | Select-String -Pattern "All User Profile" | %{ ($_ -split ":")[-1].Trim() };
$listProfiles | foreach {
$profileInfo = netsh wlan show profiles name=$_ key="clear";
$SSID = $profileInfo | Select-String -Pattern "SSID Name" | %{ ($_ -split ":")[-1].Trim() };
$Key = $profileInfo | Select-String -Pattern "Key Content" | %{ ($_ -split ":")[-1].Trim() };
[PSCustomObject]@{
WifiProfileName = $SSID;
Password = $Key
}
@w00dbury
w00dbury / Get-VMSnapshots.ps1
Created July 6, 2018 14:40
List snapshots for all VMs
Connect-VIServer -Server <Server>
get-vm | get-snapshot | select vm, name, description, created, sizegb
@w00dbury
w00dbury / virustotal_upload
Created February 14, 2018 15:40 — forked from mattghali/virustotal_upload
Upload a sample to VirusTotal and pretty print the report. All in a handy alias.
#!/usr/bin/env bash
#
# Upload a sample to VirusTotal and pretty print the report.
# All in a handy alias.
#
# Dependencies:
#
# * curl
# * jq
# * VirusTotal API key
|
}
~
x
y
z
{
t
u
v
$vm = Get-VM <VM Name>
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.ChangeTrackingEnabled = $false
$vm.ExtensionData.ReconfigVM($spec)
$SnapName = New-Snapshot -vm $vm -Name "CBT-Rest-Snapshot"
$SnapRemove = Remove-Snapshot -Snapshot $SnapName -Confirm:$false
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.ChangeTrackingEnabled = $true
$vm.ExtensionData.ReconfigVM($spec)
Connect-VIServer <vcenter server name>
Get-VM | Get-NetworkAdapter | Select @{N="VM";E={$_.Parent.Name}},Name,Type | export-Csv c:\tmp\VM_Network_Interface.csv -NoTypeInformation