Skip to content

Instantly share code, notes, and snippets.

View opariffazman's full-sized avatar
🎮
ProGrAMmER

Ariff Azman opariffazman

🎮
ProGrAMmER
  • Malaysia
View GitHub Profile
C:\UnrealEngine\Engine\Build\BatchFiles\RunUAT.bat BuildGraph `
-target="Make Installed Build Win64" `
-Script="Engine/Build/InstalledEngineBuild.xml" `
-set:HostPlatformOnly=true `
-set:WithDDC=true `
-set:WithClient=false `
-set:WithServer=false `
-set:WithLinuxArm64=false `
-set:WithMac=false `
-set:WithAndroid=false
@opariffazman
opariffazman / uninstall-pihole-docker.ps1
Created May 31, 2020 06:46
Simple pihole docker uninstall/update.
# network variables
$enabledAdapter = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -filter "IPEnabled = $true" | ForEach-Object Description
$enabledAdapter | ForEach-Object {
Get-NetAdapter -InterfaceDescription $_
}
do {
$interfaceAlias = Read-Host -Prompt "Enter your main NetAdapter Name (with Internet Access)"
@opariffazman
opariffazman / install-pihole-docker.ps1
Created May 31, 2020 06:41
Simple pihole docker setup.
# network variables
$enabledAdapter = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -filter "IPEnabled = $true" | ForEach-Object Description
$enabledAdapter | ForEach-Object {
Get-NetAdapter -InterfaceDescription $_
}
do {
$interfaceAlias = Read-Host -Prompt "Enter your main NetAdapter Name (with Internet Access)"
@opariffazman
opariffazman / get-covidstatus.ps1
Last active March 27, 2020 03:54
Get Live Status of Current Covid19 Cases using this free API [https://covid19api.com/] with powershell specifying country. Defaults to my country.
param(
[Parameter(Mandatory=$false)]
[ValidateSet('-azerbaijan','afghanistan','albania','algeria','andorra','angola','antigua-and-barbuda','argentina','armenia','aruba','australia','austria','azerbaijan','bahamas','bahamas-the','bahrain','bangladesh','barbados','belarus','belgium','belize','benin','bhutan','bolivia','bosnia-and-herzegovina','brazil','brunei','bulgaria','burkina-faso','cabo-verde','cambodia','cameroon','canada','cape-verde','cayman-islands','central-african-republic','chad','channel-islands','chile','china','colombia','congo-(brazzaville)','congo-(kinshasa)','costa-rica','cote-divoire','croatia','cruise-ship','cuba','curacao','cyprus','czech-republic','czechia','denmark','diamond-princess','djibouti','dominica','dominican-republic','east-timor','ecuador','egypt','el-salvador','equatorial-guinea','eritrea','estonia','eswatini','ethiopia','faroe-islands','fiji','finland','france','french-guiana','gabon','gambia','gambia-the','georgia','germany','ghana','gibraltar','greece','greenland','grena
@opariffazman
opariffazman / get-specs.ps1
Last active September 18, 2019 14:17
Show off your PC specs!
function get-specs {
Write-Output "`n"
Write-Verbose -Message "Acquiring Computer Specification" -Verbose
# Build Main Info
$Info = { } | Select-Object Motherboard, CPU, Socket, GPU, Monitor, Resolution
$Info.Motherboard = ((Get-CimInstance Win32_Baseboard).Manufacturer).Split(" ")[0] + ' ' + (Get-CimInstance win32_baseboard).Product
$Info.CPU = ((Get-WmiObject Win32_Processor).Name).trim() + ' @ ' + (Get-WmiObject Win32_Processor).MaxClockSpeed + ' MHz'
$Info.Socket = (Get-WmiObject Win32_Processor).SocketDesignation
$Info.GPU = (Get-WmiObject Win32_VideoController).Name
@opariffazman
opariffazman / Get-HelpByMarkdown.ps1
Created September 18, 2019 11:56 — forked from AmericanGeezus/Get-HelpByMarkdown.ps1
This script converts PowerShell comment-based help to GitHub Flavored Markdown.
Function Get-HelpByMarkDown {
#
# File: Get-HelpByMarkdown.ps1
#
# Authors: Akira Sugiura (urasandesu@gmail.com)
# Gordon Byers (gordon.byers@microsoft.com)
# Jason Marshall (jason@marshall.gg)
#
#
# Copyright (c) 2014 Akira Sugiura
@opariffazman
opariffazman / steam-run.ps1
Created September 10, 2019 14:28
Run Installed Steam Game from Powershell
function steam-run {
param(
[Parameter(Mandatory = $false)][string]$Name
)
# steam installed directory containing the .acf files
# replace with your path here
$steamInstalledPath = "C:\Users\opari\scoop\apps\steam\current\steamapps"
# run by game name specified