Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@cyberbiosecurity
cyberbiosecurity / windows_defs.py
Created May 23, 2018 20:41
windows API constants
# https://github.com/huangzx/swin/tree/807df36dd4ef53fdf797a19894f7e5d68891e429/src/winui
# Copyright (c) 2007, 2008 Agostino Russo
#
# Written by Agostino Russo <agostino.russo@gmail.com>
# Mostly copied from win32con.py
#
# winui is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
@scotgabriel
scotgabriel / Windows command line gui access.md
Last active January 28, 2026 06:50
Common windows functions via rundll user32 and control panel

Rundll32 commands

OS: Windows 10/8/7

Add/Remove Programs

  • RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0

Content Advisor

  • RunDll32.exe msrating.dll,RatingSetupUI

Control Panel

@echo off
setlocal enabledelayedexpansion
set SCRIPT_ROOT=%~dp0
exit /b
@nordineb
nordineb / DetectDotNetFrameworkVersions.ps1
Created March 1, 2018 09:32
Detect DotNet Framework Versions
# Credits to https://stackoverflow.com/questions/3487265/powershell-script-to-return-versions-of-net-framework-on-a-machine
# Get the text from github
$url = "https://raw.githubusercontent.com/dotnet/docs/master/docs/framework/migration-guide/how-to-determine-which-versions-are-installed.md"
$md = Invoke-WebRequest $url -UseBasicParsing
# Replace the weird text in the tables, and the padding
# Then trim the | off the front and end of lines
$map = $md -split "`n" -replace " installed [^|]+" -replace "\s+\|" -replace "\|$" |
@itsthedoc
itsthedoc / Start-ProcessExample.ps1
Created February 26, 2018 12:38
Start-ProcessExample
$ProcessParameters = @{
FilePath = "C:\Users\xxx\AppData\Local\UiPath\app-18.1.2\UiRobot.exe"
ArgumentList = @(
'/file:"C:\Users\xxx\Documents\UiPath\test\Main.xaml"'
"/input:`"{'arg1':'$Var'}`""
)
NoNewWindow = $true
Wait = $true
}
Start-Process @ProcessParameters

Given a subscribed calendar with a url like

https://example.com/example.ics

To force Google Calendar to refresh and reload the contents right now, unsubscribe from the calendar and subscribe to a new calendar with a URL like

https://example.com/example.ics#1

Adding the anchor tag will force Google Calendar to think of it as a new calendar

@Sstobo
Sstobo / salary.txt
Created November 30, 2017 23:14
[Salary Negotiation] #salary #careers #job
!!GET WEBSITE FROM ANNIKA DO COURSE
##### PREPARE FOR SALARY CONVERSATION #####
1) Understand the market and your value
# do your homework #
* assess own value (salary.com, payscale) -
* determine market salary range (glassdoor, indeed, linkedin)
2) Know what is important to you
@tomhodgins
tomhodgins / cibc2csv.js
Last active December 4, 2021 21:24
Paste this function into your JS console on CIBC's online banking website to scrape your account ledger into a CSV formatted file the browser can save that can be imported into Excel
function cibc2csv() {
var table = document.querySelector('table.smart-account')
var csv = ''
var head = []
var row = []
// read header cells
table.querySelectorAll('thead th').forEach(th => {
head.push(`${trim(th.textContent)}`)
})
@santisbon
santisbon / Search my gists.md
Last active February 15, 2026 19:43
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@mackwage
mackwage / windows_hardening.cmd
Last active December 18, 2025 15:32
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
: