Skip to content

Instantly share code, notes, and snippets.

View int3hh's full-sized avatar
❤️
love to code

int3hh

❤️
love to code
View GitHub Profile
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
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
#!/bin/bash
INTERFACE=$1
ACTION=$2
safe=("MyWifi1" "OfficeWifi2")
contains() {
local e match="$1"
shift
nmcli connection show
nmcli connection modify MyWiFiConnection connection.secondaries ""
xrandr -o left &
xinput set-prop "ILITEK Multi-Touch-V5000" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 &
lipcap
make menuconfig # select libpcap
make package/libpcap/compile V=s
CC=mipsel-openwrt-linux-gcc
TARGET ?= ./build/swmon
SRC_DIRS ?= ./src
#!/bin/sh /etc/rc.common
# config device
# option name 'br-brtap'
# option type 'bridge'
# list ports 'eth0.2'
# list ports 'eth0.1'
START=99
[main]
dns=none
[device]
wifi.scan-rand-mac-address=yes
[connection]
wifi.cloned-mac-address=random
ethernet.cloned-mac-address=random
#!/usr/bin/bash
HOST="$1"
USERNAME="$2"
GPWD="changeme"
if [ -z "$HOST" ] || [ -z "$USERNAME" ]; then
echo "USAGE: sprovision.sh HOST USER"
exit 1
fi
convert -density 90 source.pdf -rotate 0.3 -attenuate 0.2 +noise Multiplicative -colorspace Gray scanned.pdf