View check-ip-ignored.py
This file contains 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 python3 | |
import sys | |
import dns.resolver | |
def resolve_ips(domain, resolver): | |
ips = [] | |
try: | |
ips += [str(rdata) for rdata in resolver.resolve(domain, 'A')] | |
except (dns.resolver.NoAnswer, dns.resolver.Timeout): |
View weechat.conf
This file contains 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
[weechat] | |
filter = | |
enabled = false | |
banaction = nftables | |
action = nftables-allports[name=weechat] | |
backend = auto | |
logpath = /home/user/.local/share/weechat/logs/core.weechat.weechatlog | |
logencoding = utf-8 | |
port = 9000 | |
protocol = tcp |
View gist:8db4f0e060e3811acee208686bf58a34
This file contains 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
Based on https://miloserdov.org/?p=659 | |
Hardware: | |
- TP-Link TL-WN722N + TP-Link TL-ANT2408CL | |
- Raspberry Pi 3 | |
1.) Get Archlinux für Raspberry | |
RaspArch Build 181117 (http://raspex.exton.se/?p=983) | |
Download (https://sourceforge.net/projects/rasparch/files/latest/download) |
View weechat_cert.sh
This file contains 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 | |
# Acme.sh reloadcmd file | |
set -euf -o pipefail | |
# Setup the TLS file the way Weechat expects it | |
/usr/bin/cat /home/strykar/.acme.sh/i5.xxx.in/i5.xxx.in.key > /home/strykar/.config/weechat/ssl/relay.pem | |
/usr/bin/cat /home/strykar/.acme.sh/i5.xxx.in/fullchain.cer >> /home/strykar/.config/weechat/ssl/relay.pem | |
# Run the /relay sslcertkey command via Weechat's FIFO to reload the new cert | |
# Weechat's FIFO plugin must be loaded and running |
View pyradio.log
This file contains 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
2022-04-01 20:52:37,777 - pyradio.radio - INFO - <<<===--- Program start ---===>>> | |
2022-04-01 20:52:37,777 - pyradio.radio - INFO - TUI initialization on python v. 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0] on Arch Linux (AUR) | |
2022-04-01 20:52:37,777 - pyradio.radio - INFO - Terminal supports 256 colors | |
2022-04-01 20:52:37,777 - pyradio.themes - DEBUG - _do_init_pairs: {'Stations': [7, 0], 'Status Bar': [0, 2], 'Normal Cursor': [0, 5], 'Active Cursor': [0, 2], 'Active Station': [2, 0], 'PyRadio URL': [4, 0], 'Messages Border': [3, 0], 'Edit Cursor': [7, 5], 'Colors': 8, 'Name': 'dark', 'Path': ''} | |
2022-04-01 20:52:37,778 - pyradio.player - INFO - Probing available multimedia players... | |
2022-04-01 20:52:37,778 - pyradio.player - INFO - Implemented players: mpv, mplayer, vlc | |
2022-04-01 20:52:37,779 - pyradio.player - INFO - <class 'pyradio.player.VlcPlayer'> supported. | |
2022-04-01 20:52:37,779 - pyradio.radio - DEBUG - body starts at line 2, ends at line 66 | |
2022-04-01 20:52:37,782 - pyradio.radio - DEBU |
View gist:2cb2cca0eea339d6a4ce05042db4d064
This file contains 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
IP Address Location | |
89.187.177.134 NYC | |
89.187.177.138 NYC | |
89.187.177.196 NYC | |
89.187.178.130 NYC | |
89.187.179.35 NYC | |
89.187.185.130 LAX | |
89.187.185.153 LAX |
View environment
This file contains 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
ethaddr=0x1a00000000000000000000000000000000000000 | |
ethurl=https://mainnet.infura.io/v3/00000000000011111111110000000000 | |
ethpass=mywalletpassword | |
maxgas=40000000000 | |
unitprice=800 | |
serviceaddr=my.livepeer.node:8935 | |
sesh=6 | |
cliaddr=192.168.10.1:7935 | |
rew=false | |
mon=false |
View livepeer.service
This file contains 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
[Unit] | |
Description=Start the Go-Livepeer Orchestrator and Transcoder service | |
After=network.target | |
Wants=network-online.target | |
# See https://www.cyberciti.biz/faq/linux-hide-processes-from-other-users/ | |
[Service] | |
Restart=always | |
Type=simple | |
EnvironmentFile=/etc/go-livepeer/environment |
View livepeer-bin PKGBUILD
This file contains 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
# Maintainer: Strykar <strykar@hotmail.com> | |
pkgname=go-livepeer-bin | |
_pkgname=go-livepeer | |
pkgver=0.5.21 | |
pkgrel=1 | |
pkgdesc='Official Go binaries of the Livepeer protocol' | |
arch=('x86_64') | |
url='https://github.com/livepeer/go-livepeer' | |
license=('MIT') |
View upgrade_livepeer.sh
This file contains 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 | |
# Download, extract and update Livepeer binary from Github to a pre-existing directory you set below | |
# It assumes you have extracted the previous livpeer tar.gz in it and run livepeer from the same directory | |
# Not intended to be run as root | |
# | |
# Expects bash, jq, curl, grep, sed, sha256sum and tar to be installed, usually available even on embedded systems | |
# Windows Subsystem for Linux (WSL) or Cygwin should provide every utility on Windows | |
# shellcheck disable=SC2015 | |
set -euf -o pipefail |
NewerOlder