[server]
-
生成SSH Key:
ssh-keygen -t rsa
-
在vps上生成密钥对,公钥复制多一份叫authorized_keys
-
更改权限
[root@host .ssh]$ chmod 600 authorized_keys
[root@host .ssh]$ chmod 700 ~/.ssh
/* | |
* bluebird 顺序批量下载 | |
*/ | |
const Promise = require("bluebird"); | |
const cmd = require('node-cmd'); | |
const cmdRuner = Promise.promisify(cmd.get, { multiArgs: true, context: cmd }); | |
let arr = []; | |
const makePromise = function(i) { | |
return new Promise((resolve, reject) => { |
const fs = require('fs'), path = require('path') | |
fs.readdirSync('./').filter(item => item.indexOf('.png') > 0) | |
.forEach((item, index) => { | |
let newItem = item.replace(/\.\w+\./, '.') | |
fs.renameSync(path.join(__dirname, item), path.join(__dirname, newItem)) | |
}) |
const Koa = require('koa'); | |
const Router = require('koa-router'); | |
const static = require('koa-static') | |
const nunjucks = require('koa-nunjucks-2'); | |
const multer = require('koa-multer'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const app = new Koa(); | |
const router = new Router(); | |
const AipOcrClient = require("baidu-aip-sdk").ocr; |
const Koa = require('koa'); | |
const Router = require('koa-router'); | |
const static = require('koa-static') | |
const nunjucks = require('koa-nunjucks-2'); | |
const multer = require('koa-multer'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const app = new Koa(); | |
const router = new Router(); | |
const AipOcrClient = require("baidu-aip-sdk").ocr; |
function C(arr, num) | |
{ | |
var r=[]; | |
(function f(t,a,n) | |
{ | |
if (n==0) | |
{ | |
return r.push(t); | |
} | |
for (var i=0,l=a.length; i<=l-n; i++) |
(async function () { | |
const obj = top.window.Core['OFFL5Plug'].GetDataCtl()._set_sign(); | |
obj.page = 1; | |
const searchParams = Object.keys(obj).map((key) => { | |
return encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]); | |
}).join('&'); | |
const result = await fetch('http://115.com/web/lixian/?ct=lixian&ac=task_lists', { | |
method: "POST", | |
credentials: "same-origin", |
IP6TABLES=/system/bin/ip6tables | |
IPTABLES=/system/bin/iptables | |
ULIMIT=/system/bin/ulimit | |
SS_UID=`dumpsys package com.github.shadowsocks | grep userId | cut -d= -f2 - | cut -d' ' -f1 -` | |
WZRY_UID=`dumpsys package com.tencent.tmgp.sgame | grep userId | cut -d= -f2 - | cut -d' ' -f1 -` | |
PORT_DNS=5450 | |
PORT_TRANSPROXY=8200 | |
$ULIMIT -n 4096 | |
$IP6TABLES -F | |
$IP6TABLES -A INPUT -j DROP |
var express = require('express'), | |
weixin = require('weixin-api'), | |
app = express(), | |
bodyParser = require('body-parser'); | |
var OAuth = require('wechat-oauth'); | |
var setting = { | |
id: '', | |
sceret: '' | |
} |
[server]
生成SSH Key: ssh-keygen -t rsa
在vps上生成密钥对,公钥复制多一份叫authorized_keys
更改权限
[root@host .ssh]$ chmod 600 authorized_keys
[root@host .ssh]$ chmod 700 ~/.ssh
var datasource = [{ | |
"text": "null",//根节点 | |
"expanded": true, | |
"items": [ | |
{ | |
"text":"user1",//第一个子菜单 | |
"expanded": true, | |
"items":[ | |
{ | |
"text":"user2",//二级菜单 |