Skip to content

Instantly share code, notes, and snippets.

View BluejacketScott's full-sized avatar

BluejacketScott BluejacketScott

View GitHub Profile
@BluejacketScott
BluejacketScott / BeginSystemConfig.ps1
Created September 13, 2024 07:21 — forked from roysubs/BeginSystemConfig.ps1
Run this script using iex (Invoke-Expression) to configure apps, create profile-extensions, install modules and other custom setup
########################################
#
# 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
#
@BluejacketScott
BluejacketScott / Search-FileIndex.ps1
Created September 13, 2024 07:17 — forked from arebee/Search-FileIndex.ps1
Use Windows Search from PowerShell
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.
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
@BluejacketScott
BluejacketScott / change-dpi-scale.ahk
Created August 18, 2023 22:04 — forked from imniko/change-dpi-scale.ahk
Sample AHK script to change windows display scaling using https://github.com/imniko/SetDPI , compatible with AHK version 1.x
#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::
@BluejacketScott
BluejacketScott / Add-WindowsDefenderExclusionsPolicy.ps1
Last active June 21, 2023 18:14 — forked from altrive/Add-WindowsDefenderExclusionsPolicy.ps1
Add Windows Defender exclusions policies for Windows 11 Hyper-V
function Add-WindowsDefenderExclusionsPolicy
{
$ErrorActionPreference="Stop"
Set-StrictMode -Version Latest
#Get Hyper-V Settings
$vmHost = Get-VMHost
#Default Exclusion Entries
$excludes = @{
@BluejacketScott
BluejacketScott / add_windows_defender_exceptions.ps1
Created April 25, 2023 05:18 — forked from javafun/add_windows_defender_exceptions.ps1
Adds useful exceptions to Windows Defender to speed up the .NET developers
$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"
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@BluejacketScott
BluejacketScott / WScript.d.ts
Created August 27, 2021 03:56 — forked from ArtemAvramenko/WScript.d.ts
TypeScript declarations for Windows Scripting Host
// 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;
}
@BluejacketScott
BluejacketScott / cJobject.cls
Created February 23, 2021 11:27 — forked from brucemcpherson/cJobject.cls
cJobject class for VBA - converts jSon/excel
'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