Skip to content

Instantly share code, notes, and snippets.

@eplord
eplord / Search my gists.md
Created November 29, 2024 06:54 — forked from santisbon/Search my gists.md
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

@eplord
eplord / 01-generate-ed25519-ssh-key.sh
Created November 29, 2024 06:47 — forked from grenade/01-generate-ed25519-ssh-key.sh
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh keys
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>"
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network

Run as root

sudo -i

Create openvpn directory and set permissions

cd /config
mkdir openvpn
chmod 777 openvpn
@eplord
eplord / PSRefresh.ps1
Created November 28, 2024 14:17 — forked from jdhitsolutions/PSRefresh.ps1
Refresh a new Windows PowerShell Installation.
#requires -version 5.1
#requires -RunAsAdministrator
#PSRefresh.ps1
<#
Update key PowerShell components on a new Windows 10/11 installation.
This script is not intended for server operating systems. The script
should be run in an interactive console session and not in a remoting session.
@eplord
eplord / Get-ServiceDacl.ps1
Created November 28, 2024 12:54 — forked from jborean93/Get-ServiceDacl.ps1
Get the Service SecurityDescriptor in a human friendly format
# Copyright: (c) 2024, Jordan Borean (@jborean93) <[email protected]>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
Function Get-ServiceDacl {
<#
.SYNOPSIS
Gets the service DACL entries.
.DESCRIPTION
Gets all the DACL entries for the service(s) specified.
@eplord
eplord / stay-awake.ps1
Created November 28, 2024 05:21 — forked from CMCDragonkai/stay-awake.ps1
Keep Windows Awake Temporarily (Prevent Sleep, Display Off or Away Mode) #cli #powershell #windows
#!/usr/bin/env powershell
# This script can keep the computer awake while executing another executable, or
# if no executable was passed in, then it stays awake until this script stops.
# There are 3 different ways of staying awake:
# Away Mode - Enable away mode (https://blogs.msdn.microsoft.com/david_fleischman/2005/10/21/what-does-away-mode-do-anyway/)
# Display Mode - Keep the display on and don't go to sleep or hibernation
# System Mode - Don't go to sleep or hibernation
# The default mode is the System Mode.
# Away mode is only available when away mode is enabled in the advanced power options.
@eplord
eplord / .. MediaCreationTool.bat ..md
Created November 28, 2024 04:26 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@eplord
eplord / core-functions.psm1
Last active November 3, 2024 15:13
core functions for install windows 11
# Description: Core functions for the script
# Author: EpLord
Function Test-Admin {
# Check if the script is running as an administrator
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Warning -Message "This script must be run as an administrator."
Start-Sleep -Seconds 5
Exit
@eplord
eplord / README.md
Last active November 3, 2024 13:52
install and configure chocolatey windows 11

Install and setup chocolatey on windows 11

Run: .\chocolatey-setup.ps1

# List of built-in apps to remove
$UninstallPackages = @(
#"Microsoft.WindowsAlarms"
#"Microsoft.WindowsCalculator"
#"Microsoft.WindowsCamera"
#"AppUp.ThunderboltControlCenter"
"Microsoft.Getstarted"
#"Microsoft.Microsoft3DViewer"
"Clipchamp.Clipchamp"
"Microsoft.WindowsFeedbackHub"