Skip to content

Instantly share code, notes, and snippets.

@BFDZ
BFDZ / hostloc.py
Last active April 15, 2019 02:33 — forked from challengeYY/hostloc.py
hostloc论坛每日翻牌
#!/usr/bin/python
#encoding=utf-8
import requests
from bs4 import BeautifulSoup
import re
import sys
import datetime
uid="11111" #用户名
@BFDZ
BFDZ / geoip.sh
Last active December 1, 2017 03:40 — forked from woods/geoip.sh
iptables geoip xtables firewall by country
# This is an example of how to use xtables / xt_geoip to block requests
# based on their source/destination country.
#
# It can be computationally expensive to have tons of iptables rules.
# According to the bottom of the following page, this xt_geoip is probably
# about as efficient as can be for doing this kind of thing:
# http://xtables-addons.sourceforge.net/geoip.php
# Install packages
apt-get install xtables-addons-common libtext-csv-xs-perl unzip
@BFDZ
BFDZ / 2dto3d.avs
Last active March 30, 2019 08:10 — forked from LunNova/2dto3d.avs
Avisynth 2D 画面转制左右 3D 画面
## 2D to 3D Realtime Video Conversion Avisynth script v0.3b
## Made by Anton Belev at 3D Vision Blog
## http://www.3dvision-blog.com
## Additionally extended by Martin Haverland at audiomh.de for quality resize
## and different output modes including interlaced format for use in non-3d specific players e.g. windows media player.
#modified by /u/nallar
#Replace all LanczosResize to LanczosResize if performance is bad.
#SetMTMode(2,0)#Uncomment if you have multithreaded avisynth!