brew install python@3.9
python3.9 -m pip install pycryptodome
python3.9 -m pip install docopt
python3.9 -m ozipdecrypt CPH2089EU_11_OTA_0400_all_zce8BgCfYuJK.ozip
ozipdecrypt 1.31 (c) B.Kerler 2017-2021
Found correct AES key: 1C4416A8A42717AE441523B336513121
Decrypting...
DONE!!
- Cain & Abel
- SuperScan
- [Angry IP](Scanner http://angryip.org/w/Download)
- Zenmap
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
docker run - rm -v travis:/travis cybermiles/travis node init - home /travis | |
WARN [12–12|23:17:15.205] The travis database already exists! | |
INFO [12–12|23:17:15.206] Allocated cache and file handles database=/travis/vm/chaindata cache=16 handles=16 | |
INFO [12–12|23:17:15.217] Persisted trie from memory database nodes=3 size=423.00B time=50µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B | |
INFO [12–12|23:17:15.217] successfully wrote genesis block and/or chain rule set hash=131599…ff6994 |
註:Formula 就是套件名稱,你在官方文件或 help 上會經常看到 FORMULA... 這個英文字彙,在 Homebrew 中,它即是套件名稱。
- 查看有哪些指令可以使用
% brew help
- 查詢有無 MongoDB 的套件
% brew search mongodb
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
class getCountry { | |
getCountry() { | |
// Return a new promise. | |
return new Promise((resolve, reject) => { | |
// Do the usual XHR stuff | |
const xhr = new XMLHttpRequest(); | |
const url = “https://freegeoip.net/json/” | |
xhr.overrideMimeType(“application/json”); | |
xhr.onreadystatechange = () => { |
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
'use strict'; | |
module.exports = function () { | |
return function(file, callback, errorCallback) { | |
var xhr = new XMLHttpRequest(); | |
xhr.callback = callback; | |
if (xhr.overrideMimeType) { | |
xhr.overrideMimeType('application/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
Job Title: JavaScript Engineer | |
Location: Neihu, Taipei City | |
On-board Date: ASAP, 2017 | |
Base Salary: NT$ 40,000~60,000, negotiable | |
Minimum Requirements: | |
1. Empirical experiences in ES6 environment of over 1.5 years | |
2. Professional knowledge in Node.js runtime environment | |
3. Familiar with the design and construction of RESTful API | |
4. Familiar with cloud architectures (PaaS/IaaS) |
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
User.pre('save', wrap(async () => { | |
var user = this; | |
if (!user.isModified('password')) return; | |
var salt = await bcrypt.genSalt(10); | |
var hash = await bcrypts.hash(user.password, salt, null); | |
user.password = hash; | |
})); | |
const wrap = (fn) => { | |
return (next) => { |
NewerOlder