Skip to content

Instantly share code, notes, and snippets.

View BluejacketScott's full-sized avatar

BluejacketScott BluejacketScott

View GitHub Profile
In computing, a shebang is the character sequence #!, consisting of the characters number sign and exclamation mark,
at the beginning of a script. It is also called sharp-exclamation, sha-bang, hashbang, pound-bang, or hash-pling.
@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 / favquotes
Last active June 12, 2023 15:23
Welcome file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome file</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
I'm a full stack software engineer and especially keen to leverage open source platforms, tools, solutions, components and libraries to speed up development time. When starting a new project, whether from scratch or from existing code, the first thing I look for is any available repositories that save me time. To that end, here are the general requirements I look for and want qualified results:
Ideal solutions or constituent components must comply with the following:
Open source, Apache Licensed, or similarly unencumbered
Self-hosted if web-based
Ideally, the component would be the most popular in its class with the most active community of any choices
Nice features would include:
javascript
typescript
@BluejacketScott
BluejacketScott / BMR
Created June 1, 2023 01:38
This is a boilerplate set of requirements to include by reference when instructing Ai bots to find, or build a tool: BMR - Bluejacket Minimum Requirements
Ideal solutions, or constituant componets must comply with the following: Open source, Apache Licensed or similarly unencumbered, self hosted if web based. Ideally, the component would be the most popular in it's class with the most active community of any choices. Nice features would include javascript,typescript,sql,no-sql,graphql,dotnet,wasm or other similarly well supported languages and technologies. Specific things to avoid: any license encumbered code, avoid PHP and iOS libraries if possible, and exclude C++, Perl, or Java. Do not include any relatively new or niche languages unless no other options exist.
@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"