Skip to content

Instantly share code, notes, and snippets.

@jmconway
jmconway / Set-Win10Baseline21H2.ps1
Created May 29, 2022 21:51
PowerShell module/helper script with custom functions for imaging Windows 10 build 21H2 with MDT/WDS.
View Set-Win10Baseline21H2.ps1
# For the purposes of this script, assume DWORD values
function Set-RegistryItem {
param (
[CmdletBinding()]
[string]$Path
)
param (
[CmdletBinding()]
[string]$Name
)
@realAzazello
realAzazello / Personal_GHHbD_block-list.txt
Last active June 30, 2023 01:56
Personal block list used for GHHbD ('Google Hit Hider by Domain'), a userscript <http://www.jeffersonscher.com/gm/google-hit-hider/> created by Jefferson Scher
View Personal_GHHbD_block-list.txt
[Personal "Google Hit Hider by Domain" list]
['Bad' TLDs]
[https://greasyfork.org/en/forum/discussion/comment/55821/#Comment_55821]
[The Top 10 Worst TLDs - https://www.spamhaus.org/statistics/tlds/]
[https://github.com/ShadowWhisperer/BlockLists/blob/master/Lists/Top_Level]
[https://hblock.molinero.dev/most_abused_tlds.txt]
@ishad0w
ishad0w / microsoft_edge_uninstaller_21h1_ltsc.bat
Last active September 11, 2023 15:43
Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition]
View microsoft_edge_uninstaller_21h1_ltsc.bat
@echo off
@title Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition]
ver
echo+
goto check_admin_permissions
:check_admin_permissions
echo Script must Run as Administrator! Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
@ByronScottJones
ByronScottJones / profile.ps1
Last active May 30, 2021 00:27
Powershell Profile
View profile.ps1
#Requires -Version 7
# Version 1.2.9
$Secrets = get-content -raw -path ~/.secrets/secrets.json | cnvertfrom-json
# check if newer version
#$gistUrl = "https://api.github.com/gists/......."
gistUrl = $Secrets.PowershellProfile.gistUrl
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
@crutkas
crutkas / InstallWinGet.ps1
Last active May 4, 2023 12:31
InstallWinGet PowerShell
View InstallWinGet.ps1
function InstallWinGet()
{
$hasPackageManager = Get-AppPackage -name "Microsoft.DesktopAppInstaller"
if(!$hasPackageManager)
{
$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$releases = Invoke-RestMethod -uri "$($releases_url)"
@filhocodes
filhocodes / .gitignore
Created February 14, 2021 13:30
Ansible Setup
View .gitignore
inventory.local.yml
@benigumocom
benigumocom / debug_from_qr.py
Last active September 15, 2023 05:38
Connect Wireless Debug from Terminal on Android11
View debug_from_qr.py
#!/usr/bin/env python3
"""
Android11
Pair and connect devices for wireless debug on terminal
python-zeroconf: A pure python implementation of multicast DNS service discovery
https://github.com/jstasiak/python-zeroconf
"""
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active October 3, 2023 22:36
Brew Bundle Brewfile Tips
View brew-bundle-brewfile-tips.md

Brew Bundle Brewfile Tips

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@ckuethe
ckuethe / doh-blocklist.txt
Last active July 4, 2023 14:32
DNS-over-HTTPS Block List
View doh-blocklist.txt
# Here are some domains I block to interfere with DNS-over-HTTPS, so that my own DNS-based security schemes work.
# If you're going to be doing this, you should probably block all outbound 53, 853, and 5353 on your network,
# except from your own internal DNS resolver (eg. pihole)
#
# Data from https://github.com/curl/curl/wiki/DNS-over-HTTPS
one.one.one.one
canadianshield.cira.ca
doh.dns.sb
dnsforge.de
@tomtastic
tomtastic / smb.conf
Last active October 3, 2023 03:41
Samba 4.13.5 config for MacOS Monterey
View smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as