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 ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"net/url" | |
"time" | |
) |
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 | |
echo "start msfrpcd..." | |
pkill msf | |
msfrpcd -U msf -P msf -f -S -a 127.0.0.1 & | |
echo "wait..." | |
sleep 20 | |
echo "start armitage..." | |
export MSF_DATABASE_CONFIG=~/.msf4/database.yml | |
armitage & |
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
/** | |
* 检查密码是否符合规则,如果符合规则返回true | |
* @param {string} pwd | |
* @return {boolean} | |
*/ | |
function check(pwd) { | |
return ( | |
notSeries(pwd, "1234567890", 3) && | |
notSeries(pwd, "abcdefghijklmnopqrstuvwxyz", 3) && | |
notSeries(pwd, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 3) && |
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
const httpRequest = require("http").request; | |
const httpsRequest = require("https").request; | |
const parseUrl = require("url").parse; | |
const connect = require("connect"); | |
const colors = require("colors"); | |
const PORT = Number(process.env.PORT || 6666); | |
const REGISTRY_CDN = | |
process.env.REGISTRY_CDN || "https://registry.npm.taobao.org"; | |
const REGISTRY_PRIVATE = |
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
import * as immutable from 'immutable'; | |
export type State = immutable.Map<string, any>; | |
export type Listener = () => void; | |
export const LISTENER_ALL = '@@@@ALL'; | |
export class Store { | |
protected state: State; |
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 ( | |
"fmt" | |
"encoding/json" | |
"github.com/mitchellh/mapstructure" | |
) | |
type A struct { |
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
/** | |
* DNSPOD 动态更新域名 | |
* | |
* 参考:https://gist.github.com/chuangbo/833369 | |
* https://www.dnspod.cn/docs/records.html#dns | |
*/ | |
const os = require('os'); | |
const request = require('request'); |
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>本地视频截图演示</title> | |
<style> | |
#videoInfo { | |
padding: 20px; | |
background: antiquewhite; |
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 ( | |
"os" | |
"image/color" | |
"image/jpeg" | |
"image" | |
"time" | |
"fmt" | |
) |
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, body { | |
font-family: "Biaodian Pro Sans CNS","Helvetica Neue",Helvetica,Arial,"Zhuyin Heiti","Han Heiti",sans-serif; | |
-webkit-font-smoothing: subpixel-antialiased; | |
line-height: 1.7; | |
word-break: break-word; | |
color: #333; | |
background-color: #f3f2ee; | |
} |