Profile your node app:
node --prof-process app.js
Visualize the data by opening chrome and going too:
chrome://tracing
| # This setup allows you to both connect from within the docker-compose context as well as from services running on your local | |
| # machine but not as part of the docker-compose setup. Any client connecting to the broker from the outside can connect to | |
| # localhost:9092 while services running as part of the docker-compose connect to broker:9093. | |
| # | |
| # To access kafka-ui: http://localhost:7777 | |
| # | |
| # I hope this helps someone out there! :) | |
| version: '3' | |
| networks: |
| { | |
| "apps": [ | |
| { | |
| "name": "web", | |
| "script": "C:\\ws\\engineer\\titan-web\\app.js", | |
| "args": [], | |
| "cwd": "C:\\ws\\engineer\\titan-web", | |
| "merge_logs": true, | |
| "instances": 1, | |
| "exec_mode": "cluster_mode", |
Profile your node app:
node --prof-process app.js
Visualize the data by opening chrome and going too:
chrome://tracing
| RewriteRule "(^|/)\.(?!well-known\/)" - [F] |
| function isValidIsraeliID(id) { | |
| var id = String(id).trim(); | |
| if (id.length > 9 || id.length < 5 || isNaN(id)) return false; | |
| // Pad string with zeros up to 9 digits | |
| id = id.length < 9 ? ("00000000" + id).slice(-9) : id; | |
| return Array | |
| .from(id, Number) | |
| .reduce((counter, digit, i) => { |
| <?php | |
| add_action('admin_init', function () { | |
| // Redirect any user trying to access comments page | |
| global $pagenow; | |
| if ($pagenow === 'edit-comments.php') { | |
| wp_redirect(admin_url()); | |
| exit; | |
| } |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |