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
application: gtap | |
version: 1 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: /t/.* | |
script: main.py |
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
@echo off | |
set CurPath=%0 | |
IF NOT "%CurPath%"=="" set CurPath=%CurPath:~0,-15%" | |
set PATH=%CurPath%;%PATH% | |
set flock="%CurPath%\converting.txt" | |
:START | |
if exist %flock% goto WAIT | |
echo 文件正在转换中!请勿删除此文件! > %flock% |
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 | |
# configuration | |
DEVICE="tap0" | |
USERNAME="twitter" | |
PASSWORD="twitter" | |
# check configuration and environment | |
if [ -z $DEVICE ]; then | |
echo You must specific DEVICE first. |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>抽奖</title> | |
<style type="text/css"> | |
body { | |
background: transparent url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBuRXhpZgAASUkqAAgAAAABAGmHBAABAAAAGgAAAAAAAAABAIaSAgA6AAAALAAAAAAAAABDUkVBVE9SOiBnZC1qcGVnIHYxLjAgKHVzaW5nIElKRyBKUEVHIHY2MiksIHF1YWxpdHkgPSA5MAoA/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgClgOPAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJ |
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/sh | |
log() { | |
logger -t vpncwatch $@ | |
} | |
SH_PID="/var/run/vpncwatch.pid" | |
VPNC="/usr/sbin/vpnc" | |
VPNC_OPTS="" | |
VPNC_PID="/var/run/vpnc/pid" |
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/sh | |
PIDFILE=/var/run/dnscryptwatch.pid | |
BINPATH=/usr/sbin/dnscrypt-proxy -a 127.0.0.1:40 | |
DNSCRYPT_PIDFILE=/var/run/dnscrypt.pid | |
# Check whether script is running, and if running, exit directly | |
if [ -s $PIDFILE ] && [ -s /proc/$(cat $PIDFILE)/exe ]; then | |
exit 0 | |
fi | |
# Fork current script to background daemon | |
if [ -z "$_BACKGROUNDED" ]; then |
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
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
#!/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 |
OlderNewer