Skip to content

Instantly share code, notes, and snippets.

View rbleattler's full-sized avatar

Robert Bleattler rbleattler

View GitHub Profile
@rbleattler
rbleattler / self-signed-certificate-with-custom-ca.md
Created August 11, 2023 14:27 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@rbleattler
rbleattler / zillow-export.js
Created August 26, 2022 15:14 — forked from queerviolet/zillow-export.js
Export Saved Homes from Zillow
const homes = [...new Set(
[...document.querySelectorAll('a[href]')]
.map(x => x.href)
.filter(u => u.includes('_zpid'))
)]
.map(id => {
const addr = id.split('/')[4].replace(/-/g, ' ')
const short = addr.split(' ').slice(0, -3).join(' ')
return { addr, zillow: id,
streeteasy: `https://streeteasy.com/search?search=${short}`,
@rbleattler
rbleattler / MouseJigglerScheduledTask.xml
Created July 6, 2022 13:13
Start Mouse Jiggler Scheduled Task (chocolatey)
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3"
xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Author>YOURDOMAIN\YOURUSERID</Author>
<URI>\Run Mouse Jiggler</URI>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Enabled>true</Enabled>
@rbleattler
rbleattler / New-NerdSignature.ps1
Created April 29, 2022 14:48
A PowerShell Function that generates a nerdy output that can be run to reveal an e-mail address or other strings.
function New-NerdSignature {
param(
[Parameter(Mandatory)]
[string]
$EmailAddress,
[Parameter()]
[switch]
$AsBase64Command
)
$Raw = ($EmailAddress.ToCharArray() | ForEach-Object { ([int]$_ - 42) -as [string] }) # -join ''
@rbleattler
rbleattler / docker-compose.yml
Last active February 24, 2022 02:11
Docker Compose for nginx proxy manager
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
@rbleattler
rbleattler / Find-ChocoApp.ps1
Last active January 25, 2024 18:39
A command which will search chocolatey for a given package, and return a PowerShell object.
<#PSScriptInfo
.VERSION 1.0.1
.GUID d8d8b0bc-d1dd-4138-9166-dab64a38e8f6
.AUTHOR Robert Bleattler
.COMPANYNAME Coast Technologies LLC
@rbleattler
rbleattler / Find-StringInFile.ps1
Last active April 16, 2021 12:22
Finds String(s) in any non-excluded file (text-readable) in the target directory. Supports recursion. !MAY BE BROKEN!
function Find-StringInFile {
<#
.SYNOPSIS
Find strings within the contents of files in a given directory.
.DESCRIPTION
Find strings within the contents of files in a given directory. Supports recursion
.EXAMPLE
PS C:\> Find-StringInFile -String "SomeExampleText" -RootPath $PWD
This will search the current directory for files containing the string "SomeExampleText"
.EXAMPLE
@rbleattler
rbleattler / PSReadLineKeyHandlerSettings.ps1
Created April 11, 2021 15:07
Allows the Import and Export of PSReadLineKeyHandlerSettings in JSON format (to be expanded in the future)
Function Import-PSReadLineKeyHandlerSettings {
param(
[Parameter(Mandatory)]
[string]
$Path
)
begin {
$ObjectToProcess = Get-Content $Path -Raw | ConvertFrom-Json
}
process {