Skip to content

Instantly share code, notes, and snippets.

View quericy's full-sized avatar
🎯
Focusing

quericy quericy

🎯
Focusing
View GitHub Profile
@quericy
quericy / checknetwork.sh
Last active March 10, 2023 13:46
AsusMerlin(koolshare)Router-network-checker
#!/bin/sh
# name: koolshare联网检测+自动重启网络脚本
# scriptFilePath: /koolshare/scripts/checknetwork.sh
# referenceLink: https://post.m.smzdm.com/p/a25dgzmq/
#
# usage:
# vim /jffs/scripts/services-start
# #!/bin/sh
# #services-start创建定时任务添加本脚本,每2分钟一次检测网络,多次探测均断网则自动重新拨号
# /usr/sbin/cru a checknetwork "*/2 * * * * /bin/sh /koolshare/scripts/checknetwork.sh"
@quericy
quericy / semantic-commit-messages.md
Created February 13, 2022 15:33 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

<?php
$cookie_name = $cookie_val = '';
$lines = [
'用户名||密码',
];
foreach ($lines as $line) {
list($username, $password) = explode('||', $line);
$username = trim($username);
@quericy
quericy / checkin_surgio_traffic.js
Created March 18, 2020 08:29
surgio 流量统计(QuantumultX定时脚本)
/**
* @fileoverview check surgio traffic
* @version 1.0.0
* @supported Quantumult X (v1.0.5-build166)
*/
// add in QuantumultX config:
// [task_local]
// 0 5 */12 * * checkin_surgio_traffic.js
@quericy
quericy / BaiduPCS-appid-getter.py
Created January 7, 2019 05:40 — forked from pcmid/BaiduPCS-appid-getter.py
获取有效的百度app_id
from __future__ import print_function
import requests
import threading
import sys
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
@quericy
quericy / bench.sh
Created January 1, 2018 14:59 — forked from TimothyYe/bench.sh
Bench test script
#!/usr/bin/env bash
#
# Description: Auto test download & I/O speed script
#
# Copyright (C) 2015 - 2016 Teddysun <i@teddysun.com>
#
# Thanks: LookBack <admin@dwhd.org>
#
# URL: https://teddysun.com/444.html
#
@quericy
quericy / auto_update.sh
Last active August 23, 2020 03:21
Auto update tracker list of aria2 config in Mac OSX
#!/bin/bash
DAEMON=/usr/local/Cellar/aria2/1.31.0/bin/aria2c
PID_NAME=aria2c
PID=$(ps ux | awk '/aria2c/ && !/awk/ {print $2}')
CONFIG_PATH='/path/to/aria2.conf'
TRACKER_URL='https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all_ip.txt'
#####
@quericy
quericy / duoshuo-migrate-to-disqus.php
Created May 21, 2017 12:24
将多说文章和评论数据迁移到disqus的处理脚本
<?php
header('content-type:text/html; charset=utf-8');
ini_set('date.timezone', 'Asia/Shanghai');
/**
* 获取多说评论
* @var json
*/
$export = file_get_contents('./export.json');
@quericy
quericy / Laravel_validation.php
Last active July 1, 2019 04:01
Localization Validation Message For Chineses With Laravel 5
<?php
/* Last Update : 20170208 ,Laravel 5.3 */
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by