Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
dvb_stop() {
echo -n "Stop DVB Subsystem"
/usr/bin/docker stop Tvheadend-Stable
/sbin/modprobe -r ddbridge cxd2099
}
dvb_start() {
echo -n "Start DVB Subsystem"
veto files = /._*/.DS_Store/.AppleDouble/.Trashes/.TemporaryItems/.Spotlight-V100/
delete veto files = yes
console init done
U-Boot 2012.10 (Feb 24 2016 - 22:33:54) for GK7102 rb sc1045 v2.00 (GOKE)
HAL: 20151223
DRAM: 64 MiB
Flash: 16 MiB
16 MiB
NAND: SPINAND MID = 0xff, DID = 0xffff, Data = 0x1ffffff !spinand_board_init[1581]: No support this SPI nand!
root@kali:~# ifconfig eth0 up
root@kali:~# ifconfig eth0 10.0.0.1/24
root@kali:~# iptables -t nat -F
root@kali:~# iptables -F
root@kali:~# iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
root@kali:~# iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
root@kali:~# echo '1' > /proc/sys/net/ipv4/ip_forward
log-facility=/var/log/dnsmasq.log
interface=eth0
dhcp-range=10.0.0.10,10.0.0.250,12h
dhcp-option=3,10.0.0.1
dhcp-option=6,10.0.0.1
#include "FastLED.h"
#define ANALOG_MODE_AVERAGE 0
#define ANALOG_MODE_LAST_LED 1
/**************************************
S E T U P
set following values to your needs
**************************************/
#!/bin/sh
#title: c6off+c7on.sh
#description: Disables all C6 and enables all C7 core states for Baytrail CPUs
#author: Wolfgang Reimer <linuxball (at) gmail.com>
#date: 2016014
#version: 1.0
#usage: sudo <path>/c6off+c7on.sh
#notes: Intended as test script to verify whether erratum VLP52 (see
# [1]) is the root cause for kernel bug 109051 (see [2]). In order
@bjoerns1983
bjoerns1983 / ttrss.service
Last active October 30, 2019 10:55
Systemd script for ttrss updater
[Unit]
Description=ttrss_backend
After=network.target mysql.service
[Service]
User=www-data
ExecStart=/usr/bin/php7.2 /var/www/ttrss/update_daemon2.php
[Install]
WantedBy=multi-user.target
@bjoerns1983
bjoerns1983 / ttrss
Created November 7, 2016 15:02
Nginx Config for ttrss (Tiny Tiny RSS)
server {
listen 80;
listen [::]:80;
server_name reader.example.xyz;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
#!/bin/sh
ipv6="$2"
start() {
echo -n "Starting Tunnels: "
echo "$ipv6" | awk '{print "/usr/bin/6tunnel 8080 "$1" 8080"}' | /bin/sh
echo "$ipv6" | awk '{print "/usr/bin/6tunnel 21 "$1" 21"}' | /bin/sh
echo "$ipv6" | awk '{print "/usr/bin/6tunnel 443 "$1" 443"}' | /bin/sh
return