Skip to content

Instantly share code, notes, and snippets.

View dtsmith2001's full-sized avatar

Dale Smith dtsmith2001

View GitHub Profile
@dtsmith2001
dtsmith2001 / keep_tunnel_open.sh
Created March 27, 2021 13:30
Keep Reverse Tunnel Open
#!/usr/bin/env bash
#
# MIT License
#
# Copyright (c) 2021 Vallum Sofware, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@dtsmith2001
dtsmith2001 / backup-laptop.sh
Last active March 29, 2021 15:59
Backup Laptop
#!/usr/bin/env bash
# MIT License
#
# Copyright (c) 2021 Dale Smith
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@dtsmith2001
dtsmith2001 / my-ubuntu.dockerfile
Created April 2, 2021 18:13
Ubuntu 20 Docker Image - experiment without fear of destroying your desktop
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt upgrade && \
apt -y install ca-certificates curl gnupg2 sudo wget build-essentials \
gcc-9 g++-9 python3-minimal python3-venv python3-dev
RUN curl https://bootstrap.pypa.io/get-pip.py -o - | /usr/bin/python${python_version}
RUN /usr/bin/python${python_version} -m pip install --upgrade pip
@dtsmith2001
dtsmith2001 / monitor.service
Last active April 3, 2021 15:49
Monitor the Bandwidth Used by your Digital Ocean droplet
#
# monitor-bandwidth.service
#
[Unit]
Description=Ocean Network Allocation Monitor
After=network.target
Requires=network.target
[Service]
Type=simple