Skip to content

Instantly share code, notes, and snippets.

View TheFerryman's full-sized avatar

The Ferryman TheFerryman

View GitHub Profile
#!/bin/sh
function print_usage () {
echo "Usage: $0 JDK_HOME"
echo " JDK_HOME directory containing the JDK"
exit 2
}
if [ $# -ne 1 ]; then
print_usage
#!/bin/bash
print_usage_device () {
echo "Usage: $1 DEVICE"
echo " DEVICE: name of interface device, e.g. eth0, wlan0"
}
print_usage_device_route () {
echo "Usage: $1 DEVICE ROUTE"
echo " DEVICE: name of interface device to configure, e.g. eth0, wlan0"
# /etc/logrotate.d/network-manager
/var/log/network-manager.log {
rotate 6
monthly
compress
missingok
notifempty
}
#!/bin/bash
# /etc/NetworkManager/dispatcher.d/50-network-routing.sh
# 700 root:root
# symlinks to this file in /etc/NetworkManager/dispatcher.d/pre-up.d/
# and /etc/NetworkManager/dispatcher.d/pre-down.d/
INTERFACE=$1
ACTION=$2
@TheFerryman
TheFerryman / MakeMkvSettings.rb
Last active April 8, 2025 01:15 — forked from teuffel/gist:6203734
Script to get makemkv key for linux
require 'nokogiri'
require 'open-uri'
require 'colorize'
class MakeMkvSettings
attr_accessor :makemkv_settingsfile
def initialize