This file contains hidden or 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 | |
# {MicroHOWTO|Script} to setup a NetworkManager controlled openvpn connection | |
# OVPN Config file is the parameter to the script (no checks, blind faith) | |
OVPN_CONF="$1" | |
# Install the requirements if not available | |
# SUDO REQUIRED | |
sudo apt install -y openvpn network-manager-openvpn # Debian 10/*buntu 20.04 and later | |
# yum -y install openvpn NetworkManager-openvpn # RHEL 7/Rocky 7/Fedora ?? and later |
This file contains hidden or 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 | |
# Origingal source: | |
# https://github.com/ventor-tech/odoo-install-script/blob/main/logrotate.sh | |
# RUN AS ROOT | |
OE_LOG_PATH="/var/log/odoo/log" | |
cat <<EOF > /etc/logrotate.d/odoo | |
#Path odoo logs | |
${OE_LOG_PATH}/*.log { |
This file contains hidden or 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
[ | |
{ | |
"backcolor": "#414141", | |
"name": "Hybridized Palm 3245ww - Colemak Mod-DH Ansi Edition", | |
"author": "Samveen", | |
"label": "Colemak-DH (Mod-DH)", | |
"moreInfoUrl": "https://colemakmods.github.io/mod-dh/", | |
"moreInfoText": "Colemak Mod-DH", | |
"fingerStart": { | |
"1": 29, |
This file contains hidden or 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
[ | |
{ | |
"backcolor": "#414141", | |
"name": "Hybridized Palm 3245ww - Colemak Mod-DH Ansi Edition - Left Hand", | |
"author": "Samveen", | |
"label": "Colemak-DH (Mod-DH)", | |
"moreInfoUrl": "https://colemakmods.github.io/mod-dh/", | |
"moreInfoText": "Colemak Mod-DH", | |
"fingerStart": { | |
"1": 29, |
This file contains hidden or 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
[ | |
{ | |
"backcolor": "#414141", | |
"name": "Hybridized Palm 3245ww - Colemak Mod-DH Ansi Edition - Right Hand", | |
"author": "Samveen", | |
"label": "Colemak-DH (Mod-DH)", | |
"moreInfoUrl": "https://colemakmods.github.io/mod-dh/", | |
"moreInfoText": "Colemak Mod-DH", | |
"fingerStart": { | |
"1": 29, |
This file contains hidden or 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 | |
# Install Network Manager on headless RPi0 W | |
# Source: https://gist.github.com/jlelli/018c8375ecd4b2d5fdf1eadf034318e6 | |
## Usage: | |
# curl $GIST_RAW_URL | bash -x | |
# Update system | |
sudo apt update |
This file contains hidden or 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
# µPing (MicroPing) for MicroPython | |
# copyright (c) 2018 Shawwwn <[email protected]> | |
# License: MIT | |
# Internet Checksum Algorithm | |
# Author: Olav Morken | |
# https://github.com/olavmrk/python-ping/blob/master/ping.py | |
# Fork of original code: Added average response time and fixed issue with urandom.randint() not working | |
# Author: Mike Risser |
This file contains hidden or 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
[Unit] | |
Description=Gunicorn for project %I | |
After=network.target | |
After=syslog.target | |
[Service] | |
EnvironmentFile=/etc/conf.d/django_%i | |
ExecStart=/usr/bin/start_gunicorn | |
Restart=always | |
SyslogIdentifier=gunicorn%I |
This file contains hidden or 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
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# | |
# Make sure everything is up-to-date | |
sudo apt update && sudo apt -y dist-upgrade && sudo apt -y autoremove && sudo apt -y clean | |
# Reboot once to ensure the running state uses the latest of everything. | |
sudo reboot |
This file contains hidden or 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
# Remote logging config for rsyslog | |
# Load modules (UDP,TCP) | |
module(load="imudp") | |
module(load="imtcp") | |
# Configuration for the modules | |
input(type="imudp" port="514" ruleset="writeRemoteData") | |
input(type="imtcp" port="514" ruleset="writeRemoteData") |