- Docker inserts iptables rules when it's started by default
- buster uses nftables by default
- let's make Docker use nftables instead
- PROFIT
Install Docker CE and nftables:
| #!/bin/bash | |
| # Cloudflare as Dynamic DNS | |
| # From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/ | |
| # Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/ | |
| # Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/ | |
| # Fixed and documented version by Christian Gambardella (https://gambo.io) | |
| # 1. Create a cloudflare account | |
| # 2. Create a zone and a record with any ip address. | |
| # It will be updated by the script. |
Install Docker CE and nftables:
| #!/bin/bash | |
| # A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
| # Used to provide DDNS service for my home | |
| # Needs the DNS record pre-creating on Cloudflare | |
| # Proxy - uncomment and provide details if using a proxy | |
| #export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
| # Cloudflare zone is the zone which holds the record |
| /* | |
| * Migrate Fontawesome 4 to Fontawesome 5 | |
| * @website https://www.litecart.net/ | |
| */ | |
| (function(){ | |
| var icons = { | |
| "fa-500px": "fab fa-500px", | |
| "fa-address-book-o": "far fa-address-book", | |
| "fa-address-card-o": "far fa-address-card", |
| #! /usr/bin/env python | |
| """ | |
| A skeleton python script which reads from an input file, | |
| writes to an output file and parses command line arguments | |
| """ | |
| from __future__ import print_function | |
| import sys | |
| import argparse | |
| def main(): |
| #!/bin/bash | |
| # Restarts Bumblebee for multi-screen functionality. | |
| tee /proc/acpi/bbswitch <<<ON | |
| modprobe bbswitch | |
| optirun true | |
| intel-virtual-output | |
| xrandr |
| #!/bin/bash | |
| # Initializes Bumblebee for multi-screen functionality. | |
| xorg_process=$(ps aux | grep 'Xorg' | awk '{print $2}') | |
| kill -15 $xorg_process | |
| rmmod nvidia | |
| tee /proc/acpi/bbswitch <<<OFF |
| #!/bin/bash | |
| # Initializes Bumblebee for multi-screen functionality. | |
| modprobe bbswitch | |
| optirun true | |
| intel-virtual-output | |
| xrandr |
| #!/bin/bash | |
| #Found at http://askubuntu.com/a/193065/35729 | |
| #don't forget to 'chmod +x <thisFile>' | |
| sudo add-apt-repository ppa:motumedia/mplayer-daily | |
| sudo add-apt-repository ppa:videolan/stable-daily | |
| sudo apt-get update | |
| sudo apt-get upgrade |