$ openssl genrsa -des3 -out root.key 4096
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
<?php | |
/** | |
* 任务处理服务 | |
$taskServer = new \TaskServer( | |
100,//工作进程数量 | |
function($taskServer){//onMaster: 主进程任务 | |
//测试发任务到工作进程 | |
swoole_timer_tick(100, function () use ($taskServer) { | |
$taskServer->task("hello"); | |
}); |
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 | |
# author: terry, ben | |
# tested GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14) | |
# FYR (for Mac OS, may need some change for linux) | |
# second -> ISO8601 | |
date -u -r 1453951368 +%FT%TZ | |
## ouptput: 2016-01-28T03:22:48Z | |
# ISO8601 -> second | |
date -ju -f "%FT%TZ" 2016-01-28T03:22:48Z +%s | |
## output: 1453951368 |
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 | |
#@author forthxu.com | |
#说明 | |
#找到获取apk信息有两种方式 | |
#一种解压后读取AndroidManifest.xml,解压最好不要通过unzip因为获取的是压缩过的内容,读取不准确,可用apktool反编译解压 | |
#另外一种可通过aapt也就是官方sdk中提供的工具读取信息 | |
#aapt和apktoool工具 https://code.google.com/p/android-apktool | |
#可能存在的问题 http://www.qiansw.com/centos-apk-apktool.html | |
#扩展阅读,汉化apk http://bbs.dospy.com/thread-9991523-1-354-1.html |
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/python | |
# -*- coding:utf-8 -*- | |
# Orignal Author: FrankHacker | |
# Modified by Linson @691000737 | |
# Require requests module, python3.x+ | |
# 处理常见违禁词,全站扫描,违禁词可以从自己的网站导出成json格式,替换13行内容 | |
# 程序会在当前目录生成badword.txt文件 | |
import requests | |
import re,json |
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
www | |
ftp | |
smtp | |
pop | |
m | |
webmail | |
pop3 | |
imap | |
localhost |
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
-------------------- | |
-------------------- | |
交易:a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d | |
raw: https://btc.com/a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d.rawhex | |
01 加锁数量 | |
输出脚本: | |
0010a5d4e8000000 小头,八字节,转出数量 10000.00000000 | |
19 脚本长度 |
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
// javac test3.java | |
// java test3 | |
import java.security.Key; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.DESedeKeySpec; | |
import javax.crypto.spec.IvParameterSpec; | |
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/python2.7 | |
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import time | |
import csv | |
import sys,os | |
import pymysql | |
def get_cur_file_dir(): |
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
pragma solidity ^0.4.23; | |
/** | |
* @title ERC20 interface | |
*/ | |
contract ERC20 { | |
function totalSupply() | |
public view returns (uint256); | |
function balanceOf(address who) |
NewerOlder