brew install [email protected]
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!!
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 |
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) => { |
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
ProCurve 2900-24G# configure terminal | |
ProCurve 2900-24G(config)# vlan 1 | |
ProCurve 2900-24G(vlan-1)# ip address 172.16.1.1 255.255.255.0 | |
ProCurve 2900-24G(vlan-1)# exit | |
ProCurve 2900-24G(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.254 | |
ProCurve 2900-24G# show ip route | |
ProCurve 2900-24G# configure terminal | |
ProCurve 2900-24G(config)# vlan 2 | |
ProCurve 2900-24G(vlan-2)# name Servers | |
ProCurve 2900-24G(vlan-1)# ip address 172.16.2.1 255.255.255.0 |
使用方法: qmlscene [參數選項] <檔案名稱>
參數選項:
--maximized ............................... 執行時最大化 (Run maximized)
--fullscreen .............................. 執行時全螢幕 (Run fullscreen)
--transparent ............................. 使用透明化視窗模式 (Make the window transparent)
--multisample ............................. 啟動多重採樣 (OpenGL 防鋸齒功能) (Enable multisampling) (OpenGL anti-aliasing)
--no-version-detection .................... 不要去嘗試檢測 .qml 檔案的版本 (Do not try to detect the version of the .qml file)
--slow-animations ......................... 使用慢動作模式運行所有動畫特效 (Run all animations in slow motion)
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> | |
<title>自動重載頁面</title> | |
<meta http-equiv="Content-Type" content="text/html"; charset="UTF-8"/> | |
<!-- <meta http-equiv="refresh" content="2"> 加入這行 meta 可以達到同樣的功能,2 指的是每隔 2 秒重載一次頁面--> | |
<script type="text/javascript" src="./scripts/main.js"></script> | |
</head> | |
<body> | |
<p>網頁重載中...</p> |
NewerOlder