This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################## | |
| # | |
| # BeginSystemConfig.ps1 | |
| # iex ((New-Object System.Net.WebClient).DownloadString('https://bit.ly/2R7znLX')); | |
| # | |
| # Author: roysubs@hotmail.com | |
| # | |
| # 2019-11-25 Initial setup | |
| # 2020-10-19 Latest Version | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Search-FileIndex { | |
| <# | |
| .PARAMETER Path | |
| Absoloute or relative path. Has to be in the Search Index for results to be presented. | |
| .PARAMETER Pattern | |
| File name or pattern to search for. Defaults to no values. Aliased to Filter to ergonomically match Get-ChildItem. | |
| .PARAMETER Text | |
| Free text to search for in the files defined by the pattern. | |
| .PARAMETER Recurse | |
| Add the parameter to perform a recursive search. Default is false. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt update && sudo apt -y upgrade | |
| sudo apt-get purge xrdp | |
| # install xfce | |
| sudo apt-get install -y xfce4 xfce4-goodies | |
| # install xrdp | |
| sudo apt-get install xrdp | |
| sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak | |
| sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini | |
| sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini | |
| sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #persistent | |
| current_scale := 100 ; scale value you are currently in | |
| next_scale := 125 ; scale value you want to switch to next | |
| is_scaled := 0 | |
| return | |
| ; Ctrl + Win + F1 toggles main monitor between 2 scale values | |
| ^#F1:: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Add-WindowsDefenderExclusionsPolicy | |
| { | |
| $ErrorActionPreference="Stop" | |
| Set-StrictMode -Version Latest | |
| #Get Hyper-V Settings | |
| $vmHost = Get-VMHost | |
| #Default Exclusion Entries | |
| $excludes = @{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $user = $env:USERPROFILE | |
| #Excluded processes | |
| # | |
| # visual studio & tools | |
| Add-MpPreference -ExclusionProcess "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" | |
| # VS 2017 Enterprise exclusion | |
| Add-MpPreference -ExclusionProcess "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe" | |
| # VS 2015 Enterprise exclusion | |
| Add-MpPreference -ExclusionProcess "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "final_space": true, | |
| "console_title": true, | |
| "console_title_style": "folder", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "horizontal_offset": 0, | |
| "vertical_offset": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Windows Script Host APIS | |
| // http://blogs.msdn.com/b/freik/archive/2012/10/19/goofing-around-with-typescript-amp-windows-script-host.aspx | |
| declare var ActiveXObject: { new (s: string): any; }; | |
| interface IWScriptStringCollection { | |
| Item(n: number): string; | |
| Count: number; | |
| length: number; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 8/9/2014 3:09:42 PM : from manifest:3414394 gist https://gist.github.com/brucemcpherson/3414365/raw | |
| ' this is used for object serliazation. Its just basic JSON with only string data types catered for | |
| Option Explicit | |
| ' v2.19 3414365 | |
| 'for more about this | |
| ' http://ramblings.mcpher.com/Home/excelquirks/classeslink/data-manipulation-classes | |
| 'to contact me | |
| ' http://groups.google.com/group/excel-ramblings | |
| 'reuse of code | |
| ' http://ramblings.mcpher.com/Home/excelquirks/codeuse |