Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@debuglevel
debuglevel / regexp tools.txt
Last active December 25, 2022 18:32
regexp tools
https://regex101.com/r/jcpyd3/1 ❤️ #create #test #dispaygroups
https://www.nodexr.net/ ❤️ #create #debug #visualize
https://regexr.com/ # create
https://regex-generator.olafneumann.org/ #wizard
https://extendsclass.com/regex-tester.html #create #debug #visualize
http://www.txt2re.com/ #wizard #broken
@danmansfield
danmansfield / WindowsSecurityBaseline.ps1
Created March 11, 2021 10:06
Manages various security settings through local group policy, without the need for a domain controller or Azure AD. Allows for central management of Windows Defender when combined with event ID monitoring from your RMM of choice. Errors are also written to the event log for monitoring purposes.
<#
.SYNOPSIS
Configures Windows Defender and various security settings.
.DESCRIPTION
This script uses the PolicyFileEditor PowerShell Module to manage local group policy settings of Windows Defender and various other OS security related settings.
.EXAMPLE
./WindowsSecurityBaseline.ps1 -ASRMode 2
.LINK
Required PowerShell Module: https://www.powershellgallery.com/packages/PolicyFileEditor
Group Policy Registry Lookup: https://gpsearch.azurewebsites.net/
@Dobby89
Dobby89 / Productivity.md
Last active April 10, 2025 06:28
Tips & tricks for productivity / workflow

Windows

Tips

  • Remove desktop background (if your company enforces one)
    • If you search in the start menu for Ease of Access, you'll see a result for Ease of Access brightness setting.
    • Once that settings page has been opened, if you scroll down to the bottom, you’ll see an option to Show desktop background image. If you toggle this to off, it will set the background to the default black.

Keyboard shortcuts

@scaryrawr
scaryrawr / trackmouse.ps1
Created February 18, 2021 19:06
A script for updating focus behavior on Windows
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[bool]
$FollowMouse,
[Parameter(Mandatory = $true)]
[bool]
$RaiseWindows,
[Parameter(Mandatory = $true)]
[uint]
#!/bin/bash
apt update
apt install -y vim mlocate wget curl net-tools zip
FILE=/usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
cp $FILE $FILE.$(date +%d_%m_%Y_%Hhr_%Mm_%Ss).original
# Change Logo, Favicon, Bios Image
mkdir /usr/share/custom/backup
cp /usr/share/javascript/proxmox-backup/images/{logo-128.png,proxmox_logo.png} /usr/share/custom/backup/
@santiago-salas-v
santiago-salas-v / modelica.xml
Last active April 22, 2022 03:38
Modelica functionList xml for Notepad++ (see https://npp-user-manual.org/docs/function-list/)
<?xml version="1.0" encoding="UTF-8" ?>
<!-- ==========================================================================\
|
| To learn how to make your own language parser, please check the following
| link:
| https://npp-user-manual.org/docs/function-list/
|
\=========================================================================== -->
<NotepadPlus>
<functionList>
@jhochwald
jhochwald / Initialize-ActivityAlertSet.ps1
Created January 18, 2021 17:59
Create good practice Ruleset of Office 365 Activity Alert's
function Initialize-ActivityAlertSet
{
<#
.SYNOPSIS
Create good practice Ruleset of Office 365 Activity Alert's
.DESCRIPTION
Create good practice Ruleset of Office 365 Activity Alert's
You need a PowerShell connection to the Security and Compliance Center
@pax8-dkirby
pax8-dkirby / Install-SentinelOne.ps1
Created December 15, 2020 16:14
Installs SentinelOne 64-bit via PowerShell
#Enter the SentinelOne site token here, within the quotes.
$SentinelSiteToken = "";
#fill in a publicly available download URl for your SentinelOne *EXE* 64-bit installer here. An Azure blob with a SAS link works well!
$SentinelDownloadUrl = "";
#this folder will be used or created, feel free to change it. This variable should not have a trailing \
$tempPath = "C:\temp\MSPTools";
#the script will save the SentinelOne installer as "S1.exe" in the above named folder
$SentinelPath = "$tempPath\S1.exe";
@Dainius14
Dainius14 / og-developer-sound-pack.user.js
Last active March 5, 2024 08:54
OG Developer Sound Pack
// ==UserScript==
// @name OG Developer Sound Pack
// @namespace https://saldainius.lt
// @downloadUrl https://gist.github.com/Dainius14/8a9d5bfa06458a93a00b8d34111e7e4f/raw/og-developer-sound-pack.user.js
// @updateUrl https://gist.github.com/Dainius14/8a9d5bfa06458a93a00b8d34111e7e4f/raw/og-developer-sound-pack.user.js
// @website https://gist.github.com/Dainius14/8a9d5bfa06458a93a00b8d34111e7e4f/
// @version 1.5.2
// @description Plays sound when interacting with Bitbucket and Jira
// @author Dainius
// @match https://bitbucket.cid-dev.net/projects/*/repos/*/pull-requests/*
@KelOkekpe
KelOkekpe / share-price.js
Created November 9, 2020 18:36
Automate Robinhood accout value retrieval
const { chromium } = require('playwright');
const util = require('util');
const setTimeoutPromise = util.promisify(setTimeout);
const fetch = require('node-fetch');
(async () => {
const userDataDir = '/Users/jokekpe/Library/Application Support/Google/Chrome/Default'
const browser = await chromium.launchPersistentContext(userDataDir, {headless: true });
const page = await browser.newPage();
await page.goto('https://robinhood.com', {timeout: 60000, waitUntil: 'domcontentloaded'});