Skip to content

Instantly share code, notes, and snippets.

View tkuennen's full-sized avatar

Travis Kuennen tkuennen

View GitHub Profile
@tkuennen
tkuennen / windows10-cleanup.bat
Last active February 5, 2025 09:42
Removes most of the crap from Windows 10
@rem *** Disable Some Services ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
---
- hosts: localhost
tasks:
- name: discover IPv4 first-hop IP from pfsense
shell: snmpwalk -Oqv -v2c -c publicro 10.2.10.1 1.3.6.1.2.1.4.24.4.1.4.0.0.0.0.0.0.0.0.0
register: snmpget_result
changed_when: false
- name: validate smokeping config using correct next-hop IP
blockinfile:
dest: /vms/smokeping/config/Targets
@tkuennen
tkuennen / UDPEncapsulation.bat
Last active March 7, 2018 02:08
Fixes Windows 10
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f
@tkuennen
tkuennen / retro-installer.sh
Last active March 21, 2018 15:04
Installs Retrospect
cd /tmp
wget https://s3.amazonaws.com/download.retrospect.com/software/linux/v1100/Linux_Client_x64_11_0_0_107.tar
tar -xvf ./Linux_Client_x64_11_0_0_107.tar
sudo ./Install.sh
sudo /sbin/chkconfig rcl on
@tkuennen
tkuennen / rhel-snapper.sh
Created January 30, 2018 21:07
Install snapper on RHEL/CentOS
cd /etc/yum.repos.d/
wget https://download.opensuse.org/repositories/filesystems:snapper/CentOS_7/filesystems:snapper.repo
yum -y install snapper
locking cables and automatic transfer switches for single power supply systems
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF
sudo yum -y install telegraf
@tkuennen
tkuennen / jokes.md
Last active December 5, 2019 19:12
Bad Jokes.

What do you get when you kiss a bird? Chirpies. It's a canarial disease, and it's un-tweatable

What birds spend all their time on their knees? Birds of prey!

What did they call the canary that flew into the pastry dish? Tweetie Pie!

What do you call a very rude bird? A mockingbird

Why couldn't anyone see the bird? Because it was in da skies! (disguise)

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# default github identity
Host github.com
HostName github.com
IdentityFile /some/key