Skip to content

Instantly share code, notes, and snippets.

@cclloyd
cclloyd / removeshit.ps1
Created January 22, 2019 03:06
Removes a lot of bloatware from Windows 10 using powershell.
get-appxpackage messaging | remove-appxpackage
get-appxpackage sway | remove-appxpackage
get-appxpackage commsphone | remove-appxpackage
get-appxpackage windowsphone remove-appxpackage
get-appxpackage phone | remove-appxpackage
@cclloyd
cclloyd / guide.md
Last active March 19, 2024 09:58
Set up OPNSense with FreeIPA Authentication.

Using FreeIPA Authentication with OPNSense

Step 1

Go to your IPA admin page and create a new user named opnsense. Log in once on any computer joined to the FreeIPA realm and set their password (since the one you provide upon account creation will be expired), then logout.

Step 2

@cclloyd
cclloyd / __init__.py
Created October 6, 2018 04:03
SnafuBot
import praw
import re
import json
def lambda_handler(event, context):
# TODO implement
reddit_handler()
return {
@cclloyd
cclloyd / monkdamage.md
Last active July 20, 2018 21:31
Pathfinder Unchained Monk Damage
Level Small Medium Large Huge Gargantuan
1 - 3 1d4 1d6 1d8 2d6 3d6
4 - 7 1d6 1d8 2d6 3d6 4d6
8 - 11 1d8 1d10 2d8 3d8 4d8
12 - 15 1d10 2d6 3d6 4d6 6d6
16 - 19 2d6 2d8 3d8 4d8 6d8
20 - 23 2d8 2d10 4d8 6d8 8d8
24 - 27 ? 3d8 ? ? ?
28 - 30 ? 4d8 ? ? ?
@cclloyd
cclloyd / enable_shortcuts.sh
Created July 9, 2018 01:59
Use Tab in Gnome Terminal Shortcuts
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Primary>Tab'
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Primary><Shift>Tab'
@cclloyd
cclloyd / install_docker_ce_debian.sh
Last active October 13, 2018 04:01
Install Docker and Compose Debian
sudo apt-get update && \
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common && \
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - && \
sudo apt-key fingerprint 0EBFCD88 && \
sudo apt-add-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" && \
sudo apt-get install -y docker-ce && \
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && \
@cclloyd
cclloyd / install_docker_ce_ubuntu.sh
Last active October 13, 2018 04:04
Installs docker-ce on Ubuntu from the PPA.
sudo apt-get update && \
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \
sudo apt-key fingerprint 0EBFCD88 && \
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \
sudo apt-get install -y docker-ce && \
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && \
sudo chmod +x /usr/local/bin/docker-compose
@cclloyd
cclloyd / install_xrdp_ubuntu.sh
Created May 16, 2018 03:20
This script installs and configures xRDP on Ubuntu 17.10/18.04 for use with Microsoft Remote Desktop. Credit: http://c-nergy.be/blog/?p=11868
################################################################
# Script_Name : Std-Xrdp-install-0.2.sh
# Description : Perform an automated standard installation of xrdp
# on ubuntu 17.10 and later
# Date : April 2018
# written by : Griffon
# Web Site :http://www.c-nergy.be - http://www.c-nergy.be/blog
# Version : 0.2
# History : 0.2 - Added Logic for Ubuntu 17.10 and 18.04 detection
# - Updated the polkit section
@cclloyd
cclloyd / first-run.sh
Last active May 25, 2018 04:49
Installation and config of a single machine for both puppetserver and use itself as puppet agent
sudo /opt/puppetlabs/bin/puppet resource service puppetserver ensure=running
sudo r10k deploy environment -p production --verbose
sudo /opt/puppetlabs/bin/puppet agent -t --verbose
wget https://apt.puppetlabs.com/puppet5-release-xenial.deb;
sudo dpkg -i puppet5-release-xenial.deb;
sudo apt update;
sudo apt-get update
apt-get install aptitude
aptitude install -y puppetserver puppet-agent puppet-common ruby;
gem install r10k;
mkdir /etc/puppetlabs/r10k;
touch /etc/puppetlabs/r10k.yaml;