Skip to content

Instantly share code, notes, and snippets.

View leadscloud's full-sized avatar
💭
I may be slow to respond.

LeadsCloud leadscloud

💭
I may be slow to respond.
  • China
View GitHub Profile
@leadscloud
leadscloud / python-thread-loop.py
Created February 22, 2021 06:46
python thread多线程
import threading
import time
thread_num = 0
lock = threading.Lock()
def do_request():
global thread_num
# -------------
# my code here
@leadscloud
leadscloud / free-ss.site.js
Created March 23, 2020 06:18
获取free-ss.site的账号并生成订阅内容
var table = $('#tbss').DataTable();
var data = table.rows().data();
var groups = [];
Array.from(data).forEach(e => {
let ss = `${e[3]}:${e[4]}@${e[1]}:${e[2]}`
let str = 'ss://' + btoa(ss)
let ssr = `${e[1]}:${e[2]}:origin:${e[3]}:plain:${btoa(e[4]).replace(/=/g, "")}/?remarks=${btoa(e[6]).replace(/=/g, "")}&group=${btoa("free-ss.site").replace(/=/g, "")}`
console.info("ssr://" + btoa(ssr))
groups.push("ssr://" + btoa(ssr).replace(/\//, "_"))
var LR_BAEO = 'bd390a625de6dcd02bca537926aeaaa1333a2f8fa9cc8f8e9cc9c3631e14d6b224592f9d405d6cf31ef46f74007bc5139c8615c67a4ce4b114e4beee73bb79f1';
function Hwd8F9(s) { return Fsw3B("LR_GETDATA_DES_FUNCTION();", Fcw5O(s), 0, 0) }
function Fsw3B(beinetkey, message, encrypt, mode, iv) {
var spfunction1 = new Array(0x1010400, 0, 0x10000, 0x1010404, 0x1010004, 0x10404, 0x4, 0x10000, 0x400, 0x1010400, 0x1010404, 0x400, 0x1000404, 0x1010004, 0x1000000, 0x4, 0x404, 0x1000400, 0x1000400, 0x10400, 0x10400, 0x1010000, 0x1010000, 0x1000404, 0x10004, 0x1000004, 0x1000004, 0x10004, 0, 0x404, 0x10404, 0x1000000, 0x10000, 0x1010404, 0x4, 0x1010000, 0x1010400, 0x1000000, 0x1000000, 0x400, 0x1010004, 0x10000, 0x10400, 0x1000004, 0x400, 0x4, 0x1000404, 0x10404, 0x1010404, 0x10004, 0x1010000, 0x1000404, 0x1000004, 0x404, 0x10404, 0x1010400, 0x404, 0x1000400, 0x1000400, 0, 0x10004, 0x10400, 0, 0x1010004);
var spfunction2 = new Array(-0x7fef7fe0, -0x7fff8000, 0x8000, 0x108020, 0x100000, 0x20, -0x7fefffe0, -0x7fff7fe0, -0x
var LR_BAEO = 'bd390a625de6dcd02bca537926aeaaa1333a2f8fa9cc8f8e9cc9c3631e14d6b224592f9d405d6cf31ef46f74007bc5139c8615c67a4ce4b114e4beee73bb79f1';
function Hwd8F9(s) { return Fsw3B("LR_GETDATA_DES_FUNCTION();", Fcw5O(s), 0, 0) }
function Fsw3B(beinetkey, message, encrypt, mode, iv) {
var spfunction1 = new Array(0x1010400, 0, 0x10000, 0x1010404, 0x1010004, 0x10404, 0x4, 0x10000, 0x400, 0x1010400, 0x1010404, 0x400, 0x1000404, 0x1010004, 0x1000000, 0x4, 0x404, 0x1000400, 0x1000400, 0x10400, 0x10400, 0x1010000, 0x1010000, 0x1000404, 0x10004, 0x1000004, 0x1000004, 0x10004, 0, 0x404, 0x10404, 0x1000000, 0x10000, 0x1010404, 0x4, 0x1010000, 0x1010400, 0x1000000, 0x1000000, 0x400, 0x1010004, 0x10000, 0x10400, 0x1000004, 0x400, 0x4, 0x1000404, 0x10404, 0x1010404, 0x10004, 0x1010000, 0x1000404, 0x1000004, 0x404, 0x10404, 0x1010400, 0x404, 0x1000400, 0x1000400, 0, 0x10004, 0x10400, 0, 0x1010004);
var spfunction2 = new Array(-0x7fef7fe0, -0x7fff8000, 0x8000, 0x108020, 0x100000, 0x20, -0x7fefffe0, -0x7fff7fe0, -0x
var LR_BAEO = 'bd390a625de6dcd02bca537926aeaaa1333a2f8fa9cc8f8e9cc9c3631e14d6b224592f9d405d6cf31ef46f74007bc5139c8615c67a4ce4b114e4beee73bb79f1';
function Hwd8F9(s) { return Fsw3B("LR_GETDATA_DES_FUNCTION();", Fcw5O(s), 0, 0) }
function Fsw3B(beinetkey, message, encrypt, mode, iv) {
var spfunction1 = new Array(0x1010400, 0, 0x10000, 0x1010404, 0x1010004, 0x10404, 0x4, 0x10000, 0x400, 0x1010400, 0x1010404, 0x400, 0x1000404, 0x1010004, 0x1000000, 0x4, 0x404, 0x1000400, 0x1000400, 0x10400, 0x10400, 0x1010000, 0x1010000, 0x1000404, 0x10004, 0x1000004, 0x1000004, 0x10004, 0, 0x404, 0x10404, 0x1000000, 0x10000, 0x1010404, 0x4, 0x1010000, 0x1010400, 0x1000000, 0x1000000, 0x400, 0x1010004, 0x10000, 0x10400, 0x1000004, 0x400, 0x4, 0x1000404, 0x10404, 0x1010404, 0x10004, 0x1010000, 0x1000404, 0x1000004, 0x404, 0x10404, 0x1010400, 0x404, 0x1000400, 0x1000400, 0, 0x10004, 0x10400, 0, 0x1010004);
var spfunction2 = new Array(-0x7fef7fe0, -0x7fff8000, 0x8000, 0x108020, 0x100000, 0x20, -0x7fefffe0, -0x7fff7fe0, -0x
wget \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains website.org \
 --no-parent \
@leadscloud
leadscloud / auto-redirect-from-serp.js
Created March 11, 2020 09:03
js从搜索引擎过来的自动跳转
({
var regexp = /\.(google|yahoo|msn|goo|ask|docomo|aol|bing|biglobe|nifty|fresheye|ceek|excite)(\.[a-z0-9\-]+){1,2}\//gi;
var where = document.referrer;
if (regexp.test(where)) {
window.location.href = 'https://leadscloud.github.io/';
}
});
@leadscloud
leadscloud / mqg.zoosnet.net.js
Created March 19, 2019 12:50
忠仕商务通源码 原版
var LR_AFGK = 'ee9e4a5d8cf97feeeabc229b12fdc05377ff52295c390e0380d524f7611b634e175b43ef4d89a0c8e5d3eb9ecba73dae169e016527a478136fe4dfbcbeea2393';
eval(function(p, a, c, k, e, d) {
e = function(c) {
return (c < a ? "" : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if (!''.replace(/^/, String)) {
while (c--) d[e(c)] = k[c] || e(c);
k = [function(e) {
return d[e]
}];
@leadscloud
leadscloud / change_ip_for_gfw.bat
Created July 6, 2017 05:33
Windows下 切换IP脚本, 方便一键切换翻墙
:: Created by Ray <http://www.love4026.org>
:: Date 2017-07-06
@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
color 0c
@echo =================================
@echo 请以管理员权限运行此脚本!
@echo =================================
@leadscloud
leadscloud / recursive_find_replace_string.md
Created September 26, 2016 03:35
批量替换文件夹中的文件中的字符

find /home/wwwroot/ -type f -print0 | xargs -0 sed -i 's/string/replacement/g'

find /home/wwwroot/ -type f -exec sed -i 's/string/replacement/g' {} \;