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
52540f42e67b8bca7ea4fa087090ac6554d66d71 | |
src/dnsmasq.h | 1 + | |
src/forward.c | 8 ++++++++ | |
src/option.c | 19 +++++++++++++++++++ | |
3 files changed, 28 insertions(+) | |
diff --git a/src/dnsmasq.h b/src/dnsmasq.h | |
index 21a309c..efc66b4 100644 | |
--- a/src/dnsmasq.h | |
+++ b/src/dnsmasq.h |
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
# Prevent other people access my files | |
umask 077 | |
# If not running interactively, don't do anything | |
case $- in *i*) ;; *) return;; esac | |
# bash keep history | |
HISTFILESIZE=400000000 | |
HISTSIZE=10000 | |
PROMPT_COMMAND="history -a" |
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
Index: xfwm4-4.10.1/src/netwm.c | |
=================================================================== | |
--- xfwm4-4.10.1.orig/src/netwm.c 2013-05-05 23:58:42.000000000 +0800 | |
+++ xfwm4-4.10.1/src/netwm.c 2013-12-06 12:26:31.351436498 +0800 | |
@@ -1325,7 +1325,6 @@ | |
c->initial_layer = c2->win_layer; | |
TRACE ("Applied layer is %lu", c->initial_layer); | |
} | |
- FLAG_UNSET (c->xfwm_flags, XFWM_FLAG_HAS_HIDE); | |
} |
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
#!/usr/bin/env node | |
'use strict'; | |
var fs = require('fs'); | |
var http = require('http'); | |
var https = require('https'); | |
var net = require('net'); | |
var url = require('url'); | |
var util = require('util'); |
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
{ | |
"local": "127.0.0.1:8124", | |
"remote": [ | |
{ | |
"proxy": "direct", | |
"rules": [ | |
["10.0.0.0", "255.0.0.0"], | |
["100.64.0.0", "255.192.0.0"], | |
["127.0.0.0", "255.0.0.0"], | |
["172.16.0.0", "255.240.0.0"], |
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/bash | |
NDKROOT=~/android-ndk # insert android ndk path | |
DEVICE_TYPE="arm_neon" # insert device type(arm_neon, arm_tegra2, x86) | |
OS=LINUX64 # insert OS Version(LINUX64, LINUX32, WINDOWS_64, WINDOWS) | |
if [ $DEVICE_TYPE == "arm_neon" ]; | |
then | |
TOOLCHAIN=toolchain-arm | |
ARCH=arm |
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
/** | |
* 限制fn同时执行的个数,fn必须符合node函数规范,即参数最后一位是回调函数 | |
* 如果有this绑定需求,需要提前bind好,否则this会变null。 | |
* | |
* @param fn | |
* @param concurrency | |
* @returns {Function} | |
*/ | |
function throttle(fn, concurrency) { | |
if (concurrency <= 0) { |
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
package main | |
import ( | |
"bufio" | |
"errors" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
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
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
import ConfigParser | |
import codecs | |
import sys | |
import StringIO | |
def main(): | |
config = ConfigParser.RawConfigParser(allow_no_value=True) |
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
{ | |
"magisk": { | |
"version": "23.0", | |
"versionCode": "23000", | |
"link": "https://cdn.jsdelivr.net/gh/topjohnwu/[email protected]/app-release.apk", | |
"note": "https://topjohnwu.github.io/Magisk/releases/23000.md" | |
}, | |
"stub": { | |
"versionCode": "21", | |
"link": "https://cdn.jsdelivr.net/gh/topjohnwu/[email protected]/stub-release.apk" |