Skip to content

Instantly share code, notes, and snippets.

@cr-chsn1
cr-chsn1 / know_itself.sh
Created May 4, 2021 06:32
Bash script gets to know itself
script="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
@cr-chsn1
cr-chsn1 / opi_hwbot.sh
Last active April 21, 2021 19:56
HWBOT Prime script for Orange Pi
#!/bin/bash
clear
# Bash coloring
color_reset='\033[0m'
color_cyan='\033[0;36m'
color_green='\033[0;32m'
color_red='\033[0;31m'
color_yellow='\033[0;33m'
@cr-chsn1
cr-chsn1 / rpi_hwbot.sh
Last active April 22, 2022 13:40
HWBOT Prime script for Raspberry Pi
I migrated to my GitHub repository.
Visit: https://github.com/cr-chsn1/raspiced/blob/main/hwbot_prime_benchmark/script/rpi_hwbot.sh
@cr-chsn1
cr-chsn1 / twitch_rpicam.sh
Last active May 5, 2020 19:53
Script for streaming from a Raspberry Pi Camera to Twitch
#!/bin/bash
# Note: You need ffmpeg to use this script.
# If not installed, type 'sudo apt install ffmpeg'.
# Twitch Stream-Key
STREAMKEY=live_
# Twitch Ingest: https://stream.twitch.tv/ingests/
ENDPOINTS=(rtmp://live-ber.twitch.tv/app rtmp://live-ams.twitch.tv/app rtmp://live-fra02.twitch.tv/app)
@cr-chsn1
cr-chsn1 / blocklist_och_streaming.txt
Last active July 7, 2025 17:44
Blocklist for OCH, Linkcrypter & Streaming
# Blocklist for various One-Click-Hosters, Multihosters, Link-crypters and Streamingsites.
# Infrequently updated and with outdated entries.
# Works with Pi-hole.
# [OCH / Multihoster]
127.0.0.1 202.226.240.163
127.0.0.1 0wx.cat
127.0.0.1 0wx.es
127.0.0.1 0wx.eu
@cr-chsn1
cr-chsn1 / wpa_supplicant.conf
Created December 16, 2018 21:13
WLAN-settings for Raspberry Pi (simply copy to SD-card)
country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<insert SSID here>"
scan_ssid=1
psk="<insert PSK here>"
key_mgmt=WPA-PSK
}
@cr-chsn1
cr-chsn1 / rpi_x264_ffmpeg.sh
Last active January 30, 2024 22:23
Raspberry Pi setup script for x264 Benchmark
#!/bin/bash
echo
echo "###################################"
echo "### ###"
echo "### x264 Benchmark ###"
echo "### Raspberry Pi setup script ###"
echo "### ###"
echo "###################################"
echo