Skip to content

Instantly share code, notes, and snippets.

View bumbummen99's full-sized avatar
๐Ÿ™ƒ
Branches come and go, but commits stay!

Patrick bumbummen99

๐Ÿ™ƒ
Branches come and go, but commits stay!
View GitHub Profile
@bumbummen99
bumbummen99 / installed.sh
Last active January 11, 2023 12:49
Helper script to determine if a given list of software is installed and available on the system.
#/usr/bin/env bash
# Helper script to determine if a given list of software is installed and available on the system.
# The script will fail and output the missing software in case a software can not be found.
#
# Author: Patrick Henninger <[email protected]>
# License: GPLv3
# Examples:
# ./installed.sh "pv rsync vim" && echo "Everything is installed"
# ...
@bumbummen99
bumbummen99 / waitForDockerServiceLog.sh
Last active January 28, 2023 12:27
Simple script to wait for a certain output from a docker container. Useful for waiting for mysql user being created after the mysql container has been started and healthy
#!/usr/bin/env bash
#
# Simple script to wait for a certain output from a docker container.
# Useful for waiting for mysql user being created after the mysql
# container has been started and healthy
#
# Author: Patrick Henninger <[email protected]>
# License: GPL 3.0 (https://choosealicense.com/licenses/gpl-3.0/)
#
@bumbummen99
bumbummen99 / clone-disk.sh
Last active January 28, 2023 12:20
Simple bash script to clone disks/drives FAST with visual feedback such as size of copied data, elapsed time, current speed, a progress bar, progress percentage, and ETA.
#!/usr/bin/env bash
# Simple script to copy disks FAST using pv. It does include
# rudimentary error checking as well as a progress bar
# and pretty colored outputs.
#
# WARNING:
# I am not responsible for any data loss or damage
# to your system and hardware, use at your own risk!
#
@bumbummen99
bumbummen99 / GCodeScripts.md
Last active November 24, 2022 16:39
These are my G-Code script's that i am using in OctoPrint with my Ender 3 Pro running the Marlin firmware.

G-Code Scripts

These are my G-Code script's that i am using in OctoPrint with my Ender 3 Pro running the Marlin firmware.

After pause

; check for paused state
{% if pause_position.x is not none %}
  ; relative XYZE
  G91
  M83
#!/usr/bin/env bash
# Download Node Exporter
wget https://github.com/prometheus/node_exporter/releases/download/v1.1.1/node_exporter-1.1.1.linux-amd64.tar.gz
tar xvfz node_exporter-*.*-amd64.tar.gz
cd node_exporter-*.*-amd64
# Install node_exporter to /usr/local/bin as grafana-agent
cp node_exporter /usr/local/bin/grafana-agent
@bumbummen99
bumbummen99 / README.md
Created April 6, 2022 02:56
Laravel Sail + Octane + YASD

Install YASD

  1. Add the following ARG to your Dockerfile
ARG YASD_VERSION=2c86a0c
  1. Add the build dependencies to the apt-get install section of your Dockerfile
apt-get install -y ... libboost-all-dev \
@bumbummen99
bumbummen99 / Readme.md
Created October 14, 2021 22:31 — forked from brgaulin/Readme.md
ESP32-S2 Keyboard on Arduino
# Use Ubuntu 20.04 LTS
FROM ubuntu:20.04
# Install common software
RUN apt update && apt install -y software-properties-common
# Add SteamCMD repository
RUN add-apt-repository multiverse \
&& dpkg --add-architecture i386
#!/bin/bash
#
# Automate mysql secure installation for debian-baed systems
#
# - You can set a password for root accounts.
# - You can remove root accounts that are accessible from outside the local host.
# - You can remove anonymous-user accounts.
# - You can remove the test database (which by default can be accessed by all users, even anonymous users),
# and privileges that permit anyone to access databases with names that start with test_.
@bumbummen99
bumbummen99 / TerminalWelcomeMessage.sh
Last active January 30, 2020 14:19
Bash script to show a customizeable text as ASCII art (Figlet) in every new terminal.
# First install figlet as this is required to render the text
sudo apt-get install figlet
# Add below lines to your ~./bashrc file. You can remove fonts from the list by adding an # in front of their entry.
# Create a data file if none does exist
if [[ ! -e ~/.terminal-welcome-message ]]; then
echo "Welcome" > ~/.terminal-welcome-message
fi
# Define available fonts (showfigfonts)