Skip to content

Instantly share code, notes, and snippets.

View dtsmith2001's full-sized avatar

Dale Smith dtsmith2001

View GitHub Profile
@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
@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 / 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 / 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 / cubejs-mongodb.vagrantfile
Last active March 27, 2021 12:53
Install MongoDB and code-server for CubeJS Dashboard Project
# MIT License
#
# Copyright (c) 2021 Vallum Software, 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
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dtsmith2001
dtsmith2001 / tf2-raspi-buster.md
Last active December 15, 2019 02:14
Building Tensorflow 2.0.0 on the Raspberry PI with Buster
@dtsmith2001
dtsmith2001 / tf-rasp.md
Created December 9, 2019 21:08 — forked from EKami/tf-rasp.md
Building TensorFlow for Raspberry Pi: a Step-By-Step Guide

Building TensorFlow 1.3.0-rc1 for Raspberry Pi/Ubuntu 16.04: a Step-By-Step Guide

Here you'll learn how to build Tensorflow for the raspberry pi 3 with either the Python API or as a standalone shared library which can be interfaced from the C++ API and eventually as a library which can be used in other languages.

For the C++ library this tutorial will show you how extract tensorflow library and headers to use in any environment you want.

(This tutorial couldn't be possible without the help of the people from the References section)

What You Need

@dtsmith2001
dtsmith2001 / sources.list
Created December 8, 2019 17:53 — forked from josephlr/sources.list
/etc/apt/sources.list for Ubuntu Bionic 18.04
deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse
@dtsmith2001
dtsmith2001 / update-tensorflow.sh
Created December 4, 2019 18:24 — forked from PatWie/update-tensorflow.sh
simple cronjob script to frequently build TensorFlow from source automatically
#!/bin/bash
# Patrick Wieschollek
# =============================================================
# UPDATE SOURCE
# =============================================================
git checkout -- .
git pull origin master