Skip to content

Instantly share code, notes, and snippets.

View AzimsTech's full-sized avatar
🧐
monitoring the situation..

Wan Azims AzimsTech

🧐
monitoring the situation..
View GitHub Profile
@AzimsTech
AzimsTech / Set-KnownFolderPath.psm1
Last active December 15, 2022 15:28
Sets a known folder's path using SHSetKnownFolderPath.
<#
.SYNOPSIS
Sets a known folder's path using SHSetKnownFolderPath.
.PARAMETER Folder
The known folder whose path to set.
.PARAMETER Path
The path.
.EXAMPLE
Set-KnownFolderPath -KnownFolder 'Desktop' -Path 'D:\Desktop'
#>
@AzimsTech
AzimsTech / Set-QuickAccessShortcut.ps1
Last active January 14, 2020 04:32
Pin Quick Access shortcuts
<#
.NAME
Set-QuickAccessShortcut
.SYNOPSIS
Pin special folders to Quick Acess navigation pane.
.DESCRIPTION
Folder list: Users, Music, Pictures, Desktop, Documents, Videos, Downloads & Recycle Bin
#>
@AzimsTech
AzimsTech / Set-GoogleDns.ps1
Last active January 14, 2020 04:38
Set DNS with PowerShell
<#
.NAME
Set-GoogleDns
.SYNOPSIS
Set Google Public DNS with PowerShell
.DESCRIPTION
Original code taken from: https://stackoverflow.com/questions/18724141/set-dns-with-powershell
#>
@AzimsTech
AzimsTech / vpn-hotspot.sh
Last active August 11, 2022 07:56 — forked from ShapeShifter499/vpn-hotspot.sh
VPN over Hotspot on Android
#!/system/bin/sh
# Use Script Runner 2 Link: https://play.google.com/store/apps/details?id=com.ajay.ssr2&hl=en_US
# This script should help forward VPN over any tethered connection on a Android device.
# Turn on tethering, then enable VPN, then run this script.
# Inital variable setup
tethering=0
# Setup iptables before forwarding VPN
@AzimsTech
AzimsTech / Microsoft.PowerShell_profile.ps1
Last active October 6, 2019 04:58
Powershell functions for youtube-dl
# Use `echo $profile` to get the directory of powershell profile
# Follow format from config
function yt {
$url = Get-Clipboard
youtube-dl $url
}
# Download the best format available
function ytb {
@AzimsTech
AzimsTech / Clean-StartMenu.bat
Last active November 22, 2019 10:32
Update-StartMenu powershell script: cleans up Start Menu after software installation | Thanks to @macxcool
:: Example of usage
:: Must be run as administrator
echo Cleaning Steam
powershell.exe -noprofile -executionpolicy bypass -file %~dp0\Update-StartMenu.ps1 -Folder "Steam" -GoodLinks "All"
PAUSE
echo Cleaning Python 3.7
powershell.exe -noprofile -executionpolicy bypass -file %~dp0\Update-StartMenu.ps1 -Folder "Python 3.7" -GoodLinks "Python 3.7 (64-bit)"
PAUSE
@AzimsTech
AzimsTech / chocolatey_tips&tricks.md
Last active March 18, 2021 14:25
Chocolatey Tips & Tricks

Chocolatey Tips & Tricks

To install applications without confirmation

choco feature enable -n allowGlobalConfirmation

To find a package in command line use:

clist googlechrome
@AzimsTech
AzimsTech / autoexec.cfg
Created September 24, 2019 11:48
My dota 2 autoexec config
alias ' Potato preset VIDEO - D-OPTIMIZER PRESETS: Potato Low OPTIMAL Med High Ultra '
dota_portrait_animate 0; // Animate Portrait 0 0 0 1 1 1
r_deferred_additive_pass 1; // Additive Light Pass 0 0 1 1 1 1
r_deferred_simple_light 1; // World Lighting 0 1 1 1 1 1
r_ssao 0; // Ambient Occlusion 0 0 0 0 0 1
r_dota_normal_maps 1; // Normal Maps 0 0 1 1 1 1
r_dota_allow_parallax_mapping 0; // Ground Parallax 0 0 0 0 1 1
dota_ambient_creatures 0; // Ambient Creatures 0 0 0 0
@AzimsTech
AzimsTech / youtube-dl.conf
Last active September 14, 2019 06:17
My youtube-dl config
# Ignore any errors that occur while downloading. This ensures things keep moving along as intended.
-i
# These will embed metadata into the video once it's done downloading.
--add-metadata --all-subs --embed-subs --embed-thumbnail
# This keeps track of all the videos you have downloaded so they can be skipped over the next time it's ran or the next time it finds that video.
--download-archive "archive.log"
# Download 480p (av1/vp9) video + opus audio from youtube
REM *** Disable mitigations for Microarchitectural Data Sampling ( CVE-2018-11091 , CVE-2018-12126 , CVE-2018-12127 , CVE-2018-12130 ) along with Spectre [ CVE-2017-5753 & CVE-2017-5715 ] and Meltdown [ CVE-2017-5754 ] variants, including Speculative Store Bypass Disable (SSBD) [ CVE-2018-3639 ] as well as L1 Terminal Fault (L1TF) [ CVE-2018-3615, CVE-2018-3620, and CVE-2018-3646 ] ***
@REM More info: https://support.microsoft.com/en-us/help/4072698/windows-server-speculative-execution-side-channel-vulnerabilities-prot
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
pause