This file contains hidden or 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
| module.exports = { | |
| ... | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.js$/, | |
| exclude: /node_modules/, | |
| use: [ | |
| 'thread-loader', | |
| 'babel-loader' |
This file contains hidden or 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
| ngrok http 80 |
This file contains hidden or 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
| echo "NODE_EXTRA_CA_CERTS=$(mkcert -CAROOT)/rootCA.pem" >> .env |
This file contains hidden or 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
| require('dotenv').config(); | |
| const https = require('https'); | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const Express = require('express'); | |
| const app = new Express(); | |
| app.get('/', (req, res) => res.send('Hello World!!')); |
This file contains hidden or 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
| mkcert --cert-file localhost.pem --key-file localhost-key.pem localhost |
This file contains hidden or 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
| brew install mkcert | |
| brew install nss | |
| mkcert -install |
This file contains hidden or 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 | |
| header('Access-Control-Allow-Origin: *'); | |
| header('Cache-Control: private'); | |
| header('Pragma: no-cache'); | |
| Header('Connection: Keep-Alive'); | |
| Header('Proxy-Connection: Keep-Alive'); | |
| Header('Content-Type: application/json;charset=UTF-8'); | |
| // generate 2k garbage data | |
| foreach (range(0, 2048) as $key => $value) { |
This file contains hidden or 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
Show hidden characters
| { | |
| "added_words": // 新增到字典的單字 | |
| [ | |
| "php", | |
| "href", | |
| "td" | |
| ], | |
| "always_show_minimap_viewport": true, // 永遠顯示 minimap 目前顯示的區域 | |
| "binary_file_patterns": | |
| [ |
This file contains hidden or 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> | |
| <script src="http://blueimp.github.io/JavaScript-MD5/js/md5.js"></script> | |
| <script src="http://fb.me/react-with-addons-0.13.1.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> |
This file contains hidden or 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
| +(function(){ | |
| "use strict"; | |
| // only for google.com | |
| if (!window.location.host.match(/google.com/)) { | |
| return; | |
| } | |
| var input = document.querySelector("input[name=q]"); |