Skip to content

Instantly share code, notes, and snippets.

View cell13's full-sized avatar
🎯
Focusing

cell13

🎯
Focusing
View GitHub Profile
@cell13
cell13 / ip_blacklist.lua
Created July 4, 2019 06:04 — forked from chrisboulton/ip_blacklist.lua
Redis based IP blacklist for Nginx (LUA)
-- a quick LUA access script for nginx to check IP addresses against an
-- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403.
--
-- allows for a common blacklist to be shared between a bunch of nginx
-- web servers using a remote redis instance. lookups are cached for a
-- configurable period of time.
--
-- block an ip:
-- redis-cli SADD ip_blacklist 10.1.1.1
-- remove an ip:
-- a quick LUA access script for nginx to check IP addresses against an
-- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403.
--
-- allows for a common blacklist to be shared between a bunch of nginx
-- web servers using a remote redis instance. lookups are cached for a
-- configurable period of time.
--
-- block an ip:
-- redis-cli SADD ip_blacklist 10.1.1.1
-- remove an ip:
NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
https://www.netlimiter.com/download
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
@cell13
cell13 / glibc-update
Last active April 25, 2018 03:21
linux日常管理
wget -P /opt/src https://ftp.gnu.org/gnu/libc/glibc-2.14.tar.gz
cd /opt/src
tar -xzvf /opt/src/glibc-2.14.tar.gz
cd /opt/src/glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make -p /opt/opt/glibc-2.14
touch /opt/opt/glibc-2.14/etc/ld.so.conf
@cell13
cell13 / flask_file_upload.py
Created April 19, 2018 04:59 — forked from binderclip/flask_file_upload.py
Flask file upload
import os
from flask import Flask, request, redirect, url_for, send_from_directory
from werkzeug.utils import secure_filename
UPLOAD_FOLDER = '/tmp/flask-upload-test/'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@cell13
cell13 / nginx
Last active May 19, 2021 16:01
auto-script
#!/bin/sh
# FROM http://wiki.nginx.org/RedHatNginxInitScript \
# AND MODIFIED
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: 2345 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /opt/nginx/conf/nginx.conf
#Get links from website, demo.
#if there is no bs4, you should use the command to install it first
#pip install beautifulsoup4
from bs4 import BeautifulSoup
import urllib2
import re
html_page = urllib2.urlopen("http://arstechnica.com")
soup = BeautifulSoup(html_page,"html.parser")
for link in soup.findAll('a', attrs={'href': re.compile("^http://")}):
@cell13
cell13 / kernel-configure.md
Created January 4, 2016 19:05 — forked from laozhu/kernel-configure.md
Linux 内核编译指南

编译原则

  1. 确定 的功能一定编译进内核
  2. 可能 的功能编译为模块
  3. 不确定 的功能保留默认值,或编译为模组
  4. 选择 双号 版本内核,忽略 单号 内核

准备工作