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
/* | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License version 2 as | |
published by the Free Software Foundation. * | |
dtc -O dtb -o HY28A-00A0.dtbo -b 0 -@ HY28A-00A0.dts | |
cp HY28A-00A0.dtbo /lib/firmware/ | |
echo HY28A > /sys/devices/bone_capemgr.9/slots * | |
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
/etc/ssh/sshd_config | |
AllowTcpForwarding yes | |
GatewayPorts yes | |
## Listens on 222 and forwards to example.com:22 | |
ssh -f -N -L *:222:*:22 example.com |
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
## curl -o bashrc.pac -L https://gist.github.com/pacmac/348d9db22dbe90bbe0942d6c642a79b5/raw/ | |
apt-get install autotools-dev cdbs debhelper dh-autoreconf dpkg-dev gettext libev-dev libpcre3-dev pkg-config git -y | |
cd ~ | |
mkdir udns | |
cd udns | |
wget http://ftp.de.debian.org/debian/pool/main/u/udns/udns_0.4-1.dsc | |
wget http://ftp.de.debian.org/debian/pool/main/u/udns/udns_0.4.orig.tar.gz | |
wget http://ftp.de.debian.org/debian/pool/main/u/udns/udns_0.4-1.debian.tar.gz |
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/python | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
import SimpleHTTPServer | |
import SocketServer | |
from os import curdir, sep | |
import urllib | |
import subprocess | |
import time | |
import logging |
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=Dovecot Password Service | |
After=multi-user.target | |
[email protected] | |
[Service] | |
Type=simple | |
WorkingDirectory=/root/http | |
ExecStart=/usr/bin/python /root/http/http.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
#!/bin/ash | |
# | |
# /usr/share/scripts/xvpnping.sh yes | |
# expressvpn fastest host script | |
# | |
# /etc/openvpn/hosts" | |
# uk-berkshire-2-ca-version-2.expressnetw.com | |
# uk-east-london-ca-version-2.expressnetw.com | |
# uk-london-ca-version-2.expressnetw.com | |
# uk-kent-ca-version-2.expressnetw.com |
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/sh | |
LINODE_API_KEY="12345" | |
DOMAIN_ID="12345" | |
SUB_NAME="my.sub.domain.com" | |
WAN_IP=`curl -s ipecho.net/plain`; | |
OLD_WAN_IP=`cat /tmp/CURRENT_WAN_IP.txt` | |
if [ "$WAN_IP" = "$OLD_WAN_IP" ]; then | |
echo "IP Unchanged" |
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/sh | |
HOSTNAME="my.domain.com" | |
LOGFILE=$HOME/ufw.log | |
Current_IP=$(host $HOSTNAME | head -n1 | cut -f4 -d ' ') | |
if [ ! -f $LOGFILE ]; then | |
/usr/sbin/ufw insert 1 allow from $Current_IP to any port 22 proto tcp | |
echo $Current_IP > $LOGFILE | |
else |
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/sh | |
TOKEN="" | |
DOMAIN_ID="" | |
RECORD_ID="" | |
WAN_IP=`curl -s ipecho.net/plain`; | |
OLD_WAN_IP=`cat /tmp/CURRENT_WAN_IP.txt` | |
func_go () { | |
curl -H "Content-Type: application/json" \ |
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
# /etc/systemd/system/pm2-root.service | |
[Unit] | |
Description=PM2 process manager | |
Documentation=https://pm2.keymetrics.io/ | |
After=network.target | |
[Service] | |
Type=forking | |
User=root |
OlderNewer