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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://movie.douban.com/subject/26323782/* | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
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 | |
# lrdcq | |
# usage python2 unwxapkg.py filename | |
import sys, os | |
import struct | |
class WxapkgFile(object): | |
nameLen = 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
var CryptoJS = require('crypto-js') | |
var request = require('request-promise') | |
/* | |
* npm install crypto-js request-promise request | |
* node wx_t1t_hack.js | |
*/ | |
// export function testEncription(msg, fullKey) { | |
// var fullKey = fullKey.slice(0, 16) |
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 ( | |
"io" | |
"os" | |
"fmt" | |
"sync" | |
"strconv" | |
"strings" |
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
//飞船燃料 | |
["600301"] = {robotIndex = 6003, ignoreGravity = true, ignoreContactSpace = true, updateFixture = true, | |
basic = { health = 50, attack = 1, defense = 0, }, | |
resource = { shipEnergy = 5}, | |
activate = {location = {x = 0.3, y = 1, valueType = "float"}, fixDirection = "right"}, | |
zChase = { | |
[1] = { | |
target = { | |
target = "pathCollision", | |
}, |
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
# coding: utf-8 | |
import json | |
import re | |
import requests | |
# 替换成你自己的经纬度数据 | |
# 查询方式 打开饿了么官网 -> 开发者模式 -> 输入送餐地址 -> 观察请求 -> 找到经纬度数据 | |
latitude = 31.23978 | |
longitude = 121.49968 |
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
--宠物配置解析配置 | |
monster = { | |
id = 1, name = "2", defaultGrade = 3, defaultLevel = 4, general = 5, group = 6, | |
additionAttack = 7, | |
skills = {id = 8, maxLevel = 9}, | |
class = "10", order = 11, | |
qualitySkill = {id = 12}, --新增品质技能id | |
}, | |
214,Helper,2,1,1,2081,0.2,266,15,SingleAttack,15,297 --最后一项是品质技能id |
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
[1841] 24 Nov 17:29:43.025 * 1 changes in 900 seconds. Saving... | |
[1841] 24 Nov 17:29:43.026 * Background saving started by pid 23387 | |
[23387] 24 Nov 17:29:43.026 # Failed opening .rdb for saving: Permission denied | |
[1841] 24 Nov 17:29:43.126 # Background saving error | |
[1841] 24 Nov 17:29:48.357 # Failed opening .rdb for saving: Permission denied | |
[1841] 24 Nov 17:29:48.357 # Failed opening .rdb for saving: Permission denied | |
[1841] 24 Nov 17:29:49.040 * 1 changes in 900 seconds. Saving... | |
[1841] 24 Nov 17:29:49.041 * Background saving started by pid 23390 | |
[23390] 24 Nov 17:29:49.807 * DB saved on disk | |
[23390] 24 Nov 17:29:49.807 * RDB: 32 MB of memory used by copy-on-write |
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
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf | |
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备 | |
# Version 2.0 | |
[General] | |
# 日志等级: warning, notify, info, verbose (默认值: notify) | |
loglevel = notify | |
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS | |
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理 | |
# 设置中.) |
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 | |
# Make sure to: | |
# 1) Name this file `backup.sh` and place it in /home/ubuntu | |
# 2) Run sudo apt-get install awscli to install the AWSCLI | |
# 3) Run aws configure (enter s3-authorized IAM user and specify region) | |
# 4) Fill in DB host + name | |
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket) | |
# 6) Run chmod +x backup.sh | |
# 7) Test it out via ./backup.sh |
NewerOlder