Skip to content

Instantly share code, notes, and snippets.

View neggles's full-sized avatar
🐈
cat stuff, mostly

Andi Powers-Holmes neggles

🐈
cat stuff, mostly
View GitHub Profile
@neggles
neggles / ipsec-ciphersuites
Last active October 14, 2018 01:39
Default IPSec proposals for common client OSes
Default proposals offered for IKEv2 VPNs on common OSes as of 26/03/2018 or thereabouts
Mac OS X 10.13.3:
IKE:AES_CBC_256/HMAC_SHA2_256_128/PRF_HMAC_SHA2_256/MODP_2048,
IKE:AES_CBC_256/HMAC_SHA2_256_128/PRF_HMAC_SHA2_256/ECP_256,
IKE:AES_CBC_256/HMAC_SHA2_256_128/PRF_HMAC_SHA2_256/MODP_1536,
IKE:AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024,
IKE:3DES_CBC/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024
ESP:AES_CBC_256/HMAC_SHA2_256_128/NO_EXT_SEQ,
@neggles
neggles / smarthelper.sh
Last active July 19, 2023 06:53
HDD Testing Helper Script
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only OR MIT
# bash profile script to make many-drive stress testing easier
# Copyright (c) 2018-2022 Andrew Powers Holmes
# Put this in your /etc/profile.d, or save it somewhere and run "source /path/to/file" to import the functions
# export these functions because I'm lazy
set -o allexport
# Config variables;
@neggles
neggles / iterm2-solarized_instructions.md
Last active June 17, 2020 16:41 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

How to install

iTerm2

brew cask install iterm2

Or, if you do not have homebrew (you should ;)): Download and install iTerm2

iTerm2 has better color fidelity than the built in Terminal, so your themes will look better.

@neggles
neggles / Force 100 DPI Scale.ps1
Created May 11, 2020 06:14 — forked from itsho/Force 100 DPI Scale.ps1
Force 100% DPI Scaling for all screens even if the default value is different
# =========================================================================================================
# if you like to reset your DPI Scaling to the DEFAULT, you can use the registry (Option five) from here:
# https://www.tenforums.com/tutorials/5990-change-dpi-scaling-level-displays-windows-10-a.html#option5
#
# But, since the default value is different on various monitors, if you like to force 100%,
# you need the following trick:
# for each monitor - set DPIValue to 0xFFFFFFFF (which is -1 in DWord)
#
# Last update: 18 December 2018
# Created by: Itsho
@neggles
neggles / bashrc_ccze.sh
Last active February 16, 2021 23:08 — forked from cristobal/bashrc_ccze.sh
Colorize things with CCZE
# CCZE Colourize Config for Ubuntu
# http://lintut.com/colorize-log-files-on-linux-using-ccze-tool/
# http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
CCZE=`which ccze`
if [[ "$TERM" != dumb ]] && [[ -n "$CCZE" ]]; then
function colourify { $@ | $CCZE -A; }
alias colourify=colourify
alias configure='colourify ./configure'
@neggles
neggles / org.xrdp.xrdp-sesman.plist
Last active December 22, 2021 15:20
xrdp launchd plist files; place in /Library/LaunchDaemons
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>GroupName</key>
<string>wheel</string>
<key>InitGroups</key>
<true/>
<key>KeepAlive</key>
<dict>
#!/bin/bash
#
# This script will launch and configure a step-ca SSH Certificate Authority
# with OIDC and AWS provisioners
#
# See https://smallstep.com/blog/diy-single-sign-on-for-ssh/ for full instructions
OIDC_CLIENT_ID="[OAuth client ID]" # from Google
OIDC_CLIENT_SECRET="[OAuth client secret]" # from Google
ALLOWED_DOMAIN="[the domain name of accounts your users will use to sign to Google]"
@neggles
neggles / New-GPUPDriverPackage.ps1
Last active July 21, 2024 05:43
Hyper-V GPU Virtualization
<#
.SYNOPSIS
Create a GPU-P Guest driver package.
.DESCRIPTION
Gathers the necessary files for a GPU-P enabled Windows guest to run.
.EXAMPLE
New-GPUPDriverPackage -DestinationPath '.'
.EXAMPLE
New-GPUPDriverPackage -Filter 'nvidia' -DestinationPath '.'
.INPUTS
@neggles
neggles / readme.md
Last active August 5, 2020 01:57 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

@neggles
neggles / certbot-systemd.sh
Created January 13, 2021 06:36
certbot systemd unit creation
#!/bin/bash
set -e
# create service unit file
cat << EOF > /etc/systemd/system/certbot.service
[Unit]
Description=Certbot
Documentation=file:///usr/share/doc/python-certbot-doc/html/index.html
Documentation=https://certbot.eff.org/docs