This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is just some things to do after first boot | |
# YMMV | |
# | |
## First, some local defines | |
# if you define these, they'll be added as a default connection | |
SSID="" | |
WIFIPW="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* usbreset -- send a USB port reset to a USB device */ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/ioctl.h> | |
#include <linux/usbdevice_fs.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* For RockPro64 boards only!! */ | |
/dts-v1/; | |
/plugin/; | |
/ { | |
fragment@0 { | |
target-path = "/pcie@f8000000"; | |
__overlay__ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/ntpsec/ntp.conf, configuration for ntpd; see ntp.conf(5) for help | |
# Drift file etc. | |
# Ensure that the directory exists, and is writable by whichever user | |
# the ntpd daemon runs as. | |
driftfile /var/lib/ntpsec/ntp.drift | |
leapfile /usr/share/zoneinfo/leap-seconds.list | |
# Enable this if you want statistics to be logged. | |
statsdir /var/log/ntpsec/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install in /etc/systemd/system | |
# enable as '[email protected]' or other interface(s) | |
# | |
[Unit] | |
Description=ethtool configuration to enable 2500mbps speed for the specified card | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
ExecStart=/usr/local/sbin/renegotiate-eth %i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$(command -v docker)" ] | |
then | |
# Check if it's installed at all... | |
if [ -n "$(docker container ls --all | grep grafana)" ] | |
then | |
# it's installed, so first check if it's running... | |
if [ -n "$(docker container ls | grep grafana)" ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Don't forget to mv /usr/bin/pkexec /usr/bin/pkexec.bin; chmod 0 /usr/bin/pkexec.bin; before using this | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin | |
PROG="${0##*/}" | |
SYSLOG=localhost #change to a remote collector if you have one | |
PID=$$ | |
cmdline=$(tr '\0' ' ' </proc/$PPID/cmdline | tr -dc '[:print:]') | |
logger --priority auth.alert -n ${SYSLOG} -t "${PROG}-watch" "called by $USER, PID=$PID, Parent=$PPID, cmdline=[${cmdline}]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$(command -v docker)" ] | |
then | |
# Check if it's installed at all... | |
if [ -n "$(docker container ls --all | grep grafana)" ] | |
then | |
# it's installed, so first check if it's running... | |
if [ -n "$(docker container ls | grep grafana)" ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/pulseaudio -nF | |
.include /etc/pulse/default.pa | |
# Set up some mono-single-channel maps | |
load-module module-remap-sink sink_name=Left-to-Mono sink_properties="device.description='Stereo-to-Left-Only'" master=combined channels=2 master_channel_map=left,left channel_map=left,left | |
load-module module-remap-sink sink_name=Right-to-Mono sink_properties="device.description='Stereo-to-Right-Only'" master=combined channels=2 master_channel_map=right,right channel_map=right,right | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for module in $(dkms status | sed 's/, /\//g; s/:.*//g'); | |
do | |
dkms build $module -k | |
done |
NewerOlder