Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <html> | |
| <head> | |
| <title>Dynamic P Application</title> | |
| <style> | |
| * { | |
| font-size:18px; | |
| font-weight:bold; | |
| color: #2e2e2e; | |
| } | |
| </style> |
| <html> | |
| <head> | |
| <title>Move along, nothing to see here!</title> | |
| <style> | |
| /* note to myself: add CSS from Bob's repo: https://verysecurecompany.com/__internal__/repo/bob/specs.git */ | |
| * { | |
| font-size:16px; | |
| color: #c0c0c0; | |
| } | |
| </style> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/python | |
| # Replace the UID and SECRET variables with your own API keys from censys.io | |
| import sys | |
| import json | |
| import requests | |
| if len(sys.argv) < 2: | |
| print "usage " + sys.argv[0]+" <domain>"; | |
| sys.exit(); |
| ## AWS | |
| # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories | |
| http://169.254.169.254/latest/user-data | |
| http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME] | |
| http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME] | |
| http://169.254.169.254/latest/meta-data/ami-id | |
| http://169.254.169.254/latest/meta-data/reservation-id | |
| http://169.254.169.254/latest/meta-data/hostname | |
| http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.
| var filename = "/var/www/index.html" | |
| var path = filename + ".log" | |
| console.log(path) // /var/www/index.html.log | |
| filename = "/var/www/index.html\x00\x0a" | |
| path = filename + ".log" |
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.fontFamily": "monospace, 'Droid Sans Fallback'", | |
| // Controls if the minimap is shown | |
| "editor.minimap.enabled": true, | |
| "explorer.autoReveal": false, | |
| "extensions.autoUpdate": true, | |
| "editor.renderIndentGuides": false, | |
| "editor.rulers": [ | |
| 80, |
| There is [VULNERABILITY] in [MODULE] | |
| It allows [WHAT IT ALLOWS - EG. READ ARBITRARY FILES, READ DATA FROM DATABASE ETC.] | |
| ## Module | |
| **[MODULE NAME]** | |
| [DESCRIPTION - JUST FOR REFERENCE; COPIED FROM NPM MODULE PAGE] | |
| https://www.npmjs.com/package/[MODULE NAME] |
| Sed | |
| - delimiters | |
| s/// | |
| s::: | |
| s___ | |
| Anything can be used as delimiter as long as it's not in the text itself |