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
#!/usr/bin/env bash | |
# https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-armv7.tar.gz | |
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz | |
tar xzvf node_exporter-1.3.1.linux-amd64.tar.gz | |
sudo cp node_exporter-1.3.1.linux-amd64/node_exporter /usr/local/bin | |
sudo useradd -m -s /bin/bash node_exporter | |
sudo mkdir /var/lib/node_exporter | |
sudo chown -R node_exporter:node_exporter /var/lib/node_exporter |
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
#!/usr/bin/env bash | |
# package update and favorites | |
sudo apt update && sudo apt dist-upgrade -y | |
sudo apt install htop jq tmux silversearcher-ag tree iotop vim git openssl | |
# install oh my bash | |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" | |
# awesome vim config |
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 -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# oh my zsh with some plugins and themes | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
sed -i '' 's/^ZSH_THEME=.*/ZSH_THEME="wezm+"/g' ~/.zshrc | |
sed -i '' 's/^plugins=.*/plugins=(ansible brew common-aliases colorize docker git github history kubectl)/g' ~/.zshrc | |
# sdkman | |
curl -s "https://get.sdkman.io" | bash |
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 -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# oh my zsh with some plugins and themes | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
sed -i '' 's/^ZSH_THEME=.*/ZSH_THEME="wezm+"/g' ~/.zshrc | |
sed -i '' 's/^plugins=.*/plugins=(ansible brew common-aliases colorize docker git github history kubectl)/g' ~/.zshrc | |
# sdkman | |
curl -s "https://get.sdkman.io" | bash |
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
#!/usr/bin/env bash | |
for i in *.pdf; do | |
echo "Uploading $i..." | |
curl --form "file=@\"$i\"" http://10.11.99.1/upload | |
echo | |
done |
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
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not known. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal |
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
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="0001", SYMLINK+="ttyVitoIR" |
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
// | |
// ESP32 in DeepSleep reading a BME280 every few seconds | |
// | |
#include <Arduino.h> | |
#include <Wire.h> | |
#include <HardwareSerial.h> | |
#include <Adafruit_BME280.h> | |
#define SERIAL_BAUD 9600 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.github.schm1tz1</groupId> | |
<artifactId>JsonSimpleSerde</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<build> |
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
# | |
# put this in /usr/lib/systemd/system/ folder | |
# | |
[Unit] | |
Description=Jupyter Notebook | |
[Service] | |
Type=simple | |
PIDFile=/run/jupyter.pid | |
# Step 1 and Step 2 details are here.. |