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 /etc/rc.common | |
# /etc/init.d/clash | |
USE_PROCD=1 | |
START=95 | |
start_service() | |
{ | |
procd_open_instance | |
procd_set_param respawn | |
procd_set_param stderr 1 |
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
# This file is interpreted as shell script. | |
# Put your custom iptables rules here, they will | |
# be executed with each firewall (re-)start. | |
# Internal uci firewall chains are flushed and recreated on reload, so | |
# put custom rules into the root chains e.g. INPUT or FORWARD or into the | |
# special user chains, e.g. input_wan_rule or postrouting_lan_rule. | |
# /etc/init.d/firewall restart |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Code Demo</title> | |
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> | |
</head> | |
<body> | |
<div class="stage"> |
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
-- Helper Functions | |
local function pressFn(mods, key) | |
if key == nil then | |
key = mods | |
mods = {} | |
end | |
return function() hs.eventtap.keyStroke(mods, key, 1000) end | |
end |
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
// CHEAT | |
(function() { | |
var moduleName = 'dice-pc'; | |
// SCRIPT EXEC LOG | |
window._GRD && window._GRD.triggerStats && window._GRD.triggerStats(moduleName); | |
if (Math.DICE) { return; } | |
Math.DICE = 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
(function() { | |
if (!document.body) { | |
return setTimeout(arguments.callee, 50); | |
} | |
var maxReplace = 5; | |
var doneCount = 0; | |
var slot_250_250_o = '_guanggao_pub = "d9c93a99008600ba3009"; _guanggao_slot = "8a86dc48598208373f2e";'; | |
var slot_250_250_s = 'http://x.chaoad.com/js/d9c93a99008600ba3009'; |
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
# Monitor Aliases | |
alias mon-dell 1920x1080 | |
# Position Aliases | |
alias win-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-dell} | |
alias win-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-dell} | |
alias win-max move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-dell} | |
# Key Bindings | |
bind ,:alt;cmd ${win-left} |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Poker</name> | |
<identifier>private.poker</identifier> | |
<autogen>__KeyToKey__ KeyCode::A, ModifierFlag::OPTION_R, KeyCode::CURSOR_LEFT</autogen> | |
<autogen>__KeyToKey__ KeyCode::D, ModifierFlag::OPTION_R, KeyCode::CURSOR_RIGHT</autogen> | |
<autogen>__KeyToKey__ KeyCode::W, ModifierFlag::OPTION_R, KeyCode::CURSOR_UP</autogen> | |
<autogen>__KeyToKey__ KeyCode::S, ModifierFlag::OPTION_R, KeyCode::CURSOR_DOWN</autogen> | |
</item> |
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
var request = require('request'); | |
var fs = require('fs'); | |
var url = 'http://storage.yunpro.cn/upload'; | |
var req = request.post(url, function(err, res, body) { | |
!err && console.log(body); | |
}); | |
var form = req.form(); |
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 | |
project_name=$1 | |
project_path=/nodejs/$project_name | |
project_outlog=/var/log/xiaoyun/$project_name.log | |
project_errlog=/var/log/xiaoyun/$project_name.err | |
project_action=$2 | |
project_start () { | |
echo "====================" |
NewerOlder