Skip to content

Instantly share code, notes, and snippets.

View tkuennen's full-sized avatar

Travis Kuennen tkuennen

View GitHub Profile
@tkuennen
tkuennen / rhel-ansible-play-install-oneapi.yml
Last active July 26, 2023 19:03
Installs Intel OneAPI (Written for RHEL/CentOS/ALMA/Rocky)
- hosts: localhost
become: true
become_user: root
gather_facts: False
tasks:
- name: 1. Adding Intel® oneAPI repository
yum_repository:
name: OneAPI
description: Intel® oneAPI repository
baseurl: https://yum.repos.intel.com/oneapi
Get-WmiObject -Class Win32_Printer | where{$_.Network -eq ‘true‘}| foreach{$_.delete()}
SSH into the USG and type the following:
configure <return>
set service mdns reflector <return>
commit <return>
save <return>
@tkuennen
tkuennen / print.css
Created January 14, 2020 19:52
Disallow Printing with CSS
Add print.css to the directory
body { display: none; }
Add this this to the page
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
@tkuennen
tkuennen / install-bookstack.sh
Created January 14, 2020 19:23
Installs bookstack on Ubuntu 18.04
# Ensure you have read the above information about what this script does before executing these commands.
# Download the script
wget https://raw.githubusercontent.com/BookStackApp/devops/master/scripts/installation-ubuntu-18.04.sh
# Make it executable
chmod a+x installation-ubuntu-18.04.sh
# Run the script with admin permissions
sudo ./installation-ubuntu-18.04.sh
@tkuennen
tkuennen / gist:23491fb48a44b30cc79324c4de14e663
Last active November 10, 2021 20:28
Raspberry Pi Print Server
sudo apt-get install samba cups
sudo usermod –a –G lpadmin pi
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups
[printers]
comment = All Printers
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0
To turn the firewall on for specific applications/services:
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
To turn the firewall on for essential services like DHCP and ipsec, block all the rest:
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2
@tkuennen
tkuennen / win10-cleaner.ps
Last active April 30, 2019 13:03
Cleans Up Windows 10
Windows 10 Decrapifier 1803/1809
#By CSAND
#Feb 1 2019
#
#
#PURPOSE: Eliminate much of the bloat that comes with Windows 10. Change many privacy settings to be off by default. Remove built-in advertising, Cortana, OneDrive, Cortana stuff (all optional). Disable some data collection.
# Clean up the start menu for new user accounts. Remove a bunch of pre-installed apps, or all of them (including the store). Create a more professional looking W10 experience. Changes some settings no longer
# available via GPO for Professional edition.
#
#DISCLAIMER: Most of the changes are easily undone, but some like removing the store are difficult to undo. I encourage you to research these changes beforehand, and read through the script.
@tkuennen
tkuennen / DarkMode.js
Created January 18, 2019 16:00 — forked from NickCraver/DarkMode.js
A quick and dirty re-purpose of UniFi dark elements to make them global.
// A JS example that shows they're well on their way to a dark theme:
document.body.classList.add("ubnt-mod-dark");
document.querySelectorAll(".appTable").forEach(i => i.classList.add("appTable--dark"));
document.querySelectorAll(".ubntPanelContent").forEach(i => i.classList.add("appForm--dark"));
document.querySelectorAll(".appMainButtonGroup").forEach(i => i.classList.add("appMainButtonGroup--dark"));
@tkuennen
tkuennen / update-security.sh
Created January 7, 2019 22:04
Updates only packages relevant for security on RHEL based systems
# Update security packages via yum, then run rkhunter, and OSSEC checksum updates
sudo yum update --security
sudo rkhunter --update
sudo rkhunter --propupd
sudo rkhunter --check
sudo /var/ossec/bin/ossec-syscheckd