Image we have the following code:
<script>
var TOKEN="abcdef";
</script>| import zxcvbn from 'zxcvbn' | |
| import axios from 'axios' | |
| import crypto from 'crypto' | |
| // Input is first validated via native Fastify JSON-schema declaration | |
| export async function passwordStrengthChecker(req, reply) { | |
| const { password } = req.body | |
| let message, pwned, ok | |
| let { score } = zxcvbn(password) | |
| try { |
| // Source: WFC v5.0 Developer's Toolkit Programmer's Guide | |
| // Chapter 3: Advanced Programming Topics | |
| // https://forge.cornell.edu/sf/docman/do/downloadDocument/projects.cit_is_customer_apps/docman.root.design_docs/doc5084 | |
| /* | |
| Copyright:Kronos, Inc. 2001 | |
| Description: | |
| This file provides the basic methods and objects needed to login, logout, and send xml requests to WFC v4.0 xml api gateway. |
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
| ; a hand-made GIF containing valid JavaScript code | |
| ; abusing header to start a JavaScript comment | |
| ; inspired by Saumil Shah's Deadly Pixels presentation | |
| ; Ange Albertini, BSD Licence 2013 | |
| ; yamal gifjs.asm -o img.gif | |
| WIDTH equ 10799 ; equivalent to 2f2a, which is '/*' in ASCII, thus starting an opening comment |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>Holy Grail</title> | |
| <style> | |
| /* some basic styles. nothing to do with flexbox */ | |
| header, footer, | |
| nav, article, aside { | |
| border: 1px solid black; |
| Getting the Source | |
| $ cd ~/source | |
| $ curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz | |
| $ tar -zxvf lame-3.99.5.tar.gz | |
| $ rm -r lame-3.99.5.tar.gz | |
| $ cd lame-3.99.5 | |
| Installing | |
| $ ./configure | |
| $ make |
| preferred_syntax = :sass | |
| http_path = '/' | |
| css_dir = 'assets/stylesheets' | |
| sass_dir = 'assets/sass' | |
| images_dir = 'assets/images' | |
| javascripts_dir = 'assets/javascripts' | |
| relative_assets = true | |
| line_comments = true | |
| # output_style = :compressed |