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 (global) { | |
| var FauxElement = function (tagName) { | |
| this.id = ""; | |
| this.tagName = tagName; | |
| this.attributes = {}; | |
| this.children = []; | |
| this.lastChild = null; | |
| this.firstChild = null; | |
| }; |
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
| [mergetool] | |
| prompt = false | |
| keepBackup = false | |
| keepTemporaries = false | |
| [merge] | |
| tool = winmerge | |
| [mergetool "winmerge"] | |
| name = WinMerge |
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
| #/bin/sh | |
| # Update YUM with Cloud SDK repo information: | |
| sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM | |
| [google-cloud-sdk] | |
| name=Google Cloud SDK | |
| baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 | |
| enabled=1 | |
| gpgcheck=1 | |
| repo_gpgcheck=1 |
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
| # Create an environment variable for the correct distribution | |
| export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" | |
| # Add the Cloud SDK distribution URI as a package source | |
| echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
| # Import the Google Cloud Platform public key | |
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| # Update the package list and install the Cloud SDK |
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
| #!/bin/bash | |
| [email protected] | |
| DOMAINS=example.com,www.example.com,foo.example.com,example.org.example.net,www.example.org,www.example.net | |
| git clone https://github.com/letsencrypt/letsencrypt | |
| cd letsencrypt/ | |
| mkdir -p /var/lib/letsencrypt/global-webroot | |
| # Setup the global alias |
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"; | |
| Object.defineProperty(String.prototype, 'trimQuotes', { | |
| get() { | |
| return function () { | |
| return this.replace(/^"(.+(?="$))"$/, '$1'); | |
| } | |
| } | |
| }); | |
| })(); |
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
| <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" > | |
| <!-- Some applications state they are dpiAware when they are not. Mainly Installation programs --> | |
| <asmv3:application> | |
| <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> | |
| <dpiAware>false</dpiAware> | |
| </asmv3:windowsSettings> | |
| </asmv3:application> | |
| </assembly> |
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
| var express = require('express'); | |
| var path = require('path'); | |
| var favicon = require('serve-favicon'); | |
| var logger = require('morgan'); | |
| var cookieParser = require('cookie-parser'); | |
| var bodyParser = require('body-parser'); | |
| var index = require('./routes/index'); | |
| var user = require('./routes/user'); | |
| var auth = require('./routes/auth'); |
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
| const sp = require('secure-password'); | |
| const pwd = sp(); | |
| var b1 = Buffer.from('Apples13'); | |
| var b2 = Buffer.from('Apples13'); | |
| var h1 = pwd.hashSync(b1); | |
| var h2 = pwd.hashSync(b2); | |
| var c1 = h1.toString('base64'); |
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
| ssh-keygen -t rsa -b 4096 -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |