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
| { | |
| "name": "Telegram AI Chat Bot", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "promptType": "define", | |
| "text": "=幫我根據下方使用者提供的內容,拆分成一個純 JSON 輸出的格式,包含兩個欄位: 1. prompt: 表示一個整理過指示\n2. link: 如果該內容有附帶一個網址,將此網址整理至這欄位存放,如果沒有就空值。\n\n要注意,除了 JSON 格式的內容外,其他輸出完全不必要。\n\n然後幫我根據 prompt 的指示,選定一個 tool 工具執行。\n====== USER CONTENT START =====\n{{ $json.message.text }}\n===== USER CONTENT END =====", | |
| "hasOutputParser": true, | |
| "options": {} | |
| }, |
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 | |
| // 從 https://www.npmjs.com/package/oauth-1.0a 這邊改寫過來用 | |
| class OAuth { | |
| private $consumer; | |
| private $nonce_length; | |
| private $version; | |
| private $parameter_seperator; | |
| private $realm; | |
| private $last_ampersand; | |
| private $signature_method; |
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 | |
| /** | |
| * This little class records how long it takes each WordPress action or filter | |
| * to execute which gives a good indicator of what hooks are being slow. | |
| * You can then debug those hooks to see what hooked functions are causing problems. | |
| * | |
| * This class does NOT time the core WordPress code that is being run between hooks. | |
| * You could use similar code to this that doesn't have an end processor to do that. | |
| * |
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
| location ~ /wp-content/uploads/.* { | |
| if (!-f $request_filename) { | |
| rewrite ^/wp-content/uploads/(.*)$ https://www.mxp.tw/wp-content/uploads/$1 redirect; | |
| } | |
| } |
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 | |
| $twzipcode_arr = array( | |
| 0 => array( | |
| 'zipcode' => 100, | |
| 'county' => '臺北市', | |
| 'city' => '中正區', | |
| 'outlying' => 0, | |
| ), | |
| 1 => array( | |
| 'zipcode' => 103, |
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
| 103.1.220.10 => WordPress/6.1.1; http://www.gujibaili.com.tw | |
| 103.1.220.10 => WordPress/6.1; http://www.gujibaili.com.tw | |
| 103.1.220.18 => WordPress/5.6.10; http://yks.bailhai.com.tw | |
| 103.1.220.18 => WordPress/5.8.6; http://www.amahua.com.tw | |
| 103.1.220.18 => WordPress/5.8.6; http://www.speedkz.com.tw | |
| 103.1.220.18 => WordPress/5.8.6; http://yks.futhome.com.tw | |
| 103.1.220.18 => WordPress/5.8.6; http://yks.speedkz.com.tw | |
| 103.1.220.18 => WordPress/5.9.5; http://www.hds555.com.tw | |
| 103.1.220.18 => WordPress/5.9.5; https://www.hds555.com.tw | |
| 103.1.220.18 => WordPress/6.1.1; http://blog.amahua.com.tw |
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
| /** | |
| * HOW-TO | |
| */ | |
| // same param as $.ajax(option); see http://api.jquery.com/jQuery.ajax/ | |
| $.ajaxQueue.addRequest(option); | |
| // start processing one by one requests | |
| $.ajaxQueue.run(); |
This file has been truncated, but you can view the full file.
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
| { | |
| "log": { | |
| "version": "1.2", | |
| "creator": { | |
| "name": "WebInspector", | |
| "version": "537.36" | |
| }, | |
| "pages": [ | |
| { | |
| "startedDateTime": "2022-06-03T14:46:30.969Z", |
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
| # Welcome to the lightsail-wordpress-cluster wiki! | |
| ## Instructions, commands and code snippets to use and follow along the Video Tutorial on YouTube. | |
| ## Create Four LightSail Ubuntu Servers with the appropriate sizing. Name Three instances WP1, WP2, WP3, and name 4th instance LoadBalancer | |
| ## | |
| ## Open Ports 443 and 9443 (on LoadBalancer and WP1 in the LightSail Instance networking section) | |
| ## Run all commands with root (sudo su) | |
| ### Run following on each of the 3 WordPress instances | |
| `ufw allow 80,443,9443,3306,4444,4567,4568/tcp;` |
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
| // import_json_appsscript.js | |
| // https://gist.github.com/allenyllee/c764c86ed722417948fc256b7a5077c4 | |
| // | |
| // Changelog: | |
| // (Oct. 16 2019) tag: allenyllee-20191016 | |
| // 1. Fixed google script error: urlfetchapp - service invoked too many times https://stackoverflow.com/questions/10598179/google-apps-script-urlfetchapp-service-invoked-too-many-times | |
| // (Jul. 16 2018) tag: allenyllee-20180716 | |
| // 1. Fixed the issue "If you try to query /arrayA[k]/arrayB[n]/arrayC[m]/.../member, you will always get /arrayA[k]/arrayB[k]/arrayC[k]/.../member." | |
| // (Nov. 30 2017) tag: allenyllee-20171130 | |
| // 1. Add the ability to query array elements by using xpath like "/array[n]/member" where "n" is array index |
NewerOlder