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
| iptables -F DOCKER-USER | |
| ip6tables -F DOCKER-USER | |
| iptables -I DOCKER-USER -j RETURN | |
| ip6tables -I DOCKER-USER -j RETURN | |
| iptables -I DOCKER-USER -p tcp -m multiport --dports http,https -j DROP | |
| ip6tables -I DOCKER-USER -p tcp -m multiport --dports http,https -j DROP | |
| for i in `curl -s https://www.cloudflare.com/ips-v4`; do | |
| iptables -I DOCKER-USER -p tcp -i eth0 -m multiport --dports http,https -s $i -j RETURN | |
| done | |
| for i in `curl -s https://www.cloudflare.com/ips-v6`; do |
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
| ffmpeg -y -f lavfi -i " | |
| color=black:1280x720:d=60, | |
| format=rgb24, | |
| drawtext= | |
| fontcolor=white: | |
| fontsize=600: | |
| text='%{eif\:(600-t)/60\:d\:1}\:%{eif\:mod(600-t, 60)\:d\:2}': | |
| x=(w-text_w)/2: | |
| y=(h-text_h)/2 | |
| " 10min.mkv |
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 | |
| INTERFACE=$1 | |
| ACTION=$2 | |
| safe=("MyWifi1" "OfficeWifi2") | |
| contains() { | |
| local e match="$1" | |
| shift |
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
| nmcli connection show | |
| nmcli connection modify MyWiFiConnection connection.secondaries "" |
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
| xrandr -o left & | |
| xinput set-prop "ILITEK Multi-Touch-V5000" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 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
| lipcap | |
| make menuconfig # select libpcap | |
| make package/libpcap/compile V=s | |
| CC=mipsel-openwrt-linux-gcc | |
| TARGET ?= ./build/swmon | |
| SRC_DIRS ?= ./src |
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 /etc/rc.common | |
| # config device | |
| # option name 'br-brtap' | |
| # option type 'bridge' | |
| # list ports 'eth0.2' | |
| # list ports 'eth0.1' | |
| START=99 |
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
| [main] | |
| dns=none | |
| [device] | |
| wifi.scan-rand-mac-address=yes | |
| [connection] | |
| wifi.cloned-mac-address=random | |
| ethernet.cloned-mac-address=random |
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
| #!/usr/bin/bash | |
| HOST="$1" | |
| USERNAME="$2" | |
| GPWD="changeme" | |
| if [ -z "$HOST" ] || [ -z "$USERNAME" ]; then | |
| echo "USAGE: sprovision.sh HOST USER" | |
| exit 1 | |
| fi |
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
| convert -density 90 source.pdf -rotate 0.3 -attenuate 0.2 +noise Multiplicative -colorspace Gray scanned.pdf |