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
[uwsgi] | |
# 采用sock方式通信,程序在启动时会自己创建这个文件 | |
socket = /tmp/uwsgi.sock | |
pidfile = /tmp/uwsgi.pid | |
vacuum = true | |
# 指向网站目录 | |
chdir = /home/wwwroot/gen.bfdz.ink | |
# python 启动程序文件 | |
wsgi-file = app.py | |
# python 程序内用以启动的 application 变量名 |
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
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf | |
sysctl -p | |
sysctl net.ipv4.tcp_available_congestion_control | |
lsmod | grep bbr |
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/env bash | |
page_url='' | |
for ((i=1; i<=2310; i++)) | |
do | |
page_i="${page_url}$i.html" | |
mp3_i_url=$(curl -s ${page_i} |grep soundFile | awk -F\" '{print $20}') | |
mp3_i_name=$(curl -s ${page_i} |grep soundFile | awk -F\" '{print $22}') | |
curl -o "$mp3_i_name" ${mp3_i_url} |
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 | |
#encoding=utf-8 | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import sys | |
import datetime | |
uid="11111" #用户名 |
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/bash | |
ACCOUNT="user" | |
PASSWORD="123456" | |
######################################### | |
function urlEncode() { | |
python -c " | |
import urllib, commands, os; |
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/bash | |
### BEGIN INIT INFO | |
# Provides: status | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: status |
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 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 |
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/bash | |
limit=92 | |
dir=/home/bfdz/rtorrent/downloads/ | |
v_mail= | |
log=/var/log/check_size.log | |
flag=0 | |
while [ 1 ] | |
do |
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
## 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! |
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/bash | |
cd ~ | |
clear | |
echo "#########################################################################" | |
echo "# File Name: vpsins.sh" | |
echo "# Version: 2.0.6" | |
echo "# System Required: Debian, Ubuntu" | |
echo "# Author: bfdz" |