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
| 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 |
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
| 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 |
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/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 |
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
| veto files = /._*/.DS_Store/.AppleDouble/.Trashes/.TemporaryItems/.Spotlight-V100/ | |
| delete veto files = yes |
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 | |
| 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" |
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 | |
| # | |
| # set ACPI Wakeup alarm | |
| # safe_margin - minutes to start up system before the earliest timer | |
| # script does not check if recording is in progress | |
| # | |
| # | |
| echo 1 > /timer |
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
| Host vps | |
| Hostname IP-DES-VPS | |
| User root | |
| IdentityFile /home/user/.ssh/vps | |
| DynamicForward IP-DES-LAN-SERVERS:4000 | |
| ServerAliveInterval 30 | |
| ServerAliveCountMax 3 |
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 | |
| macadress="XX:XX:XX:XX:XX:XX" | |
| ip="XXX.XXX.XXX.XXX" | |
| logfile="/var/log/nginx/site_access.log" | |
| tail -n1 -F $logfile | while read line | |
| do | |
| user=$(echo $line | cut -d " " -f3) | |
| scode=$(echo $line | cut -d " " -f9) |
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
| #Repos für PHP 7.2 und nginx hinzufügen | |
| add-apt-repository ppa:ondrej/php | |
| add-apt-repository ppa:ondrej/nginx | |
| apt-get update | |
| #Liste der installierten PHP7.0 Module anzeigen lassen | |
| dpkg --get-selections | grep -v deinstall | grep php7.0 | |
| #PHP 7.2 installieren | |
| apt-get install php7.2 |
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
| [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 |
OlderNewer