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 | |
echo '# ======================ของเซิฟตัวเล่น======================' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '# sysctl settings are defined through files in' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '#' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '# Vendors settings live in /usr/lib/sysctl.d/.' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '# To override a whole file, create a new file with the same in' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '# /etc/sysctl.d/ and put new settings there. To override' >> /etc/sysctl.d/99-linux.internal.conf | |
echo '# only specific settings, add a file with a lexically later' >> /etc/sysctl.d/99-linux.internal.conf |
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
#6.5.1 | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"> | |
#5.15.4 | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> | |
#4.7 | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> |
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
17584) Chongqing Mobile Company (Chongqing, CN) | |
5726) China Unicom Chong Qing Branch (Chongqing, China) | |
5530) CCN (Chongqing, China) | |
19076) China Telecom (ChongQing, China) | |
20054) YunJinTianFu (Chengdu, China) | |
11444) University of Electronic Science and Technology of China (Chengdu, China) | |
2461) China Unicom (Chengdu, China) | |
4575) China Mobile Group Sichuan (Chengdu, China) | |
16398) China Mobile,GuiZhou (Guiyang, China) | |
5292) China Mobile Group Shaanxi Company Limited (Xi'an, China) |
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
<?php | |
/* | |
Hi! | |
So this gist is not a very good implementation, it works great in chrome but the seeking is sort of glitched in firefox. | |
But it does the job and I hope it can help out! | |
(Please let me know how to improve this) | |
*/ | |
ini_set('max_execution_time', 0); | |
$url = "http://mirrors.standaloneinstaller.com/video-sample/jellyfish-25-mbps-hd-hevc.m4v"; //just some sample url, please dont overload their servers |
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
for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done |
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
# Kernel sysctl configuration file for Red Hat Linux | |
# | |
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
# sysctl.conf(5) for more details. | |
# Turn on execshield | |
# 0 completely disables ExecShield and Address Space Layout Randomization | |
# 1 enables them ONLY if the application bits for these protections are set to “enable” | |
# 2 enables them by default, except if the application bits are set to “disable” | |
# 3 enables them always, whatever the application bits |
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
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
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
user www-data; | |
worker_processes 1; # set to number of cores | |
worker_priority 15; # be nice | |
# todo: put these on tmpfs, slow write logs to non-volatile | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
# set open fd limit to 81920 | |
worker_rlimit_nofile 81920; # must be equal or higher as 'worker_processes' * 'worker_connections' |
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
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
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
http { | |
map $whitelist $limit { | |
default $binary_remote_addr; | |
1 ""; | |
} | |
limit_conn_zone $limit zone=conn_limit_per_ip:10m; | |
limit_req_zone $limit zone=req_limit_per_ip:10m rate=5r/s; | |
server { |
NewerOlder