Skip to content

Instantly share code, notes, and snippets.

View stdrc's full-sized avatar
😁

Richard Chien stdrc

😁
View GitHub Profile
@satouriko
satouriko / main.py
Created October 19, 2018 19:40
CQHTTP 版本发布桥接 Bot
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ldbg_jsonrpc import client
import sys
import uuid
if __name__ == "__main__":
c = client.Client("localhost", 4700)
c.connect()
c.init_channel({
@jakobii
jakobii / HTTPServer.ps1
Last active May 4, 2024 14:02
A Basic Powershell Webserver
# You Should be able to Copy and Paste this into a powershell terminal and it should just work.
# To end the loop you have to kill the powershell terminal. ctrl-c wont work :/
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
#!/bin/bash
# Use ss-redir to proxy all tcp connections.
RED='\033[0;31m'
NC='\033[0m'
# Options for ss-redir.
SERVER="233.com.cn"
PORT=""
METHOD="chacha20"
@ntzyz
ntzyz / makeUserName.sh
Created January 11, 2017 07:56
Generate PAP/CHAP user name for CMCC PPPoE server.
#!/bin/zsh
uuid=`uuidgen -t`
text1=`echo $uuid | sed "s/-//g"`
text2="YourPhoneNumberHere"
number=0
for ((i=0;i<3;++i)); do;
number=$((number + $(printf '%d ' "'${text1:$i:1}")))
done
@mine260309
mine260309 / gist:70da43f6799efb9277c12172c65f8940
Last active March 8, 2019 08:15
Permissions used in Alipay 9.6.6
APK is pulled from Nexus6p and dumped with `aapt dump permissions base.apk`
package: com.eg.android.AlipayGphone
uses-permission: name='com.alipay.permission.ALIPAY_UPDATE_CREDENTIALS'
uses-permission: name='com.android.launcher.permission.INSTALL_SHORTCUT'
uses-permission: name='android.permission.BLUETOOTH'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
@soffchen
soffchen / surge.conf
Last active March 4, 2024 05:23
surge.conf
[General]
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom
@lanceliao
lanceliao / dnsmasq-gfwlist.py
Last active June 19, 2024 00:35
将gfwlist转换成带ipset的dnsmasq规则,适用于OpenWrt智能上网
#!/usr/bin/env python
#coding=utf-8
#
# Generate a list of dnsmasq rules with ipset for gfwlist
#
# Copyright (C) 2014 http://www.shuyz.com
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules
import urllib2
import re
@yyx990803
yyx990803 / starcounter.js
Last active May 29, 2024 20:41
Count your total stars!
var https = require('https'),
user = process.argv[2],
opts = parseOpts(process.argv.slice(3))
request('/users/' + user, function (res) {
if (!res.public_repos) {
console.log(res.message)
return
}
var pages = Math.ceil(res.public_repos / 100),
@luw2007
luw2007 / 词性标记.md
Last active June 29, 2024 14:17
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@leemour
leemour / FontFix RubyMine
Last active October 6, 2018 06:42
Fixing font anti-aliasing for Ubuntu.
# Change Java Runtime:
sudo update-alternatives --config java
# Delete Open-JDK
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
# Change fonts - remove hinting:
http://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font
# Change RubyMine AntiAliasing first: