Skip to content

Instantly share code, notes, and snippets.

View f33rx's full-sized avatar

Dalton f33rx

View GitHub Profile
@f33rx
f33rx / linux-cleanup
Created November 23, 2022 22:39
script to cleanup proxmox root volume
#!/bin/bash
################################################
# Cleanup Linux Installation
# Author: Thomas Burger
# Version 2.0
# Date: 2022-08-10
# NO WARRANTIES. ABSOLUTELY USE AT OWN RISK!
# Version 2.0 implements a new method - script
# works read only in dry run by default. Use
# -e parameter to execute the changes.
@f33rx
f33rx / renice.sh
Created February 28, 2019 18:42
Recursively renice
#!/bin/sh
PID_LIST=
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
platform='freebsd'
@f33rx
f33rx / styles.css for VSCode
Created May 10, 2018 17:57
VSCode style for multiple fonts
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'flottflott';
font-size: 1.7em;
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.decorator.name, .decorator.punctuation:not(.block), .import.keyword {
### Keybase proof
I hereby claim:
* I am f33rx on github.
* I am f33rx (https://keybase.io/f33rx) on keybase.
* I have a public key ASB-2fmsbeVr2i5bmUU9Xsx9SSUHKkpjBuQu1J6x4dASQwo
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am f33rx on github.
* I am sekur (https://keybase.io/sekur) on keybase.
* I have a public key ASAkzWZqOyJAG9Ku-f96282klAoJ88WMGLI_FhIwFzeAygo
To claim this, I am signing this object:
@f33rx
f33rx / freebsd10_cheatsheet.md
Created June 5, 2017 20:41
FreeBSD Cheatsheet
#
# Perform the Puppet master migration by changing the server value in
# puppet.conf
# and reset nodes certificates
#
class puppet::migrate ( $puppetmaster ) {
if $puppetmaster == undef {
fail('You must define the targeted Puppet master to perform the migration')
}
@f33rx
f33rx / vagrant_virtualbox_centos7.md
Created April 14, 2017 18:39 — forked from hareeshpc/vagrant_virtualbox_centos7.md
Vagrant installation on Headless ubuntu server (14.04.1) with CentOS and remote ssh login

Installation of virtual box headless

This was obtained from y-yoshinoya at https://gist.github.com/y-yoshinoya/413fcd3f6bfcfce54456

wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise non-free contrib" >> /etc/apt/sources.list.d/virtualbox.org.list'
sudo apt-get update
sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-4.3 dkms
@f33rx
f33rx / gist:52e44b06f1cde17a6a40
Created October 15, 2015 22:09 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat