I hereby claim:
- I am waggertron on github.
- I am weylinw (https://keybase.io/weylinw) on keybase.
- I have a public key ASDPXFNOs1yerc_f7f3ckXN2u8JNjWFhJ0r9qOA2tER8bwo
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Weyflix LAN Test | |
| # Run from any machine on the local network to verify | |
| # all services are reachable and healthy | |
| # | |
| # Usage: ./lan-test.sh [server-ip] | |
| # Default server IP: 192.168.1.100 | |
| # |
| @echo off | |
| REM | |
| REM Weyflix Server Full Diagnostic | |
| REM Right-click → Run as Administrator | |
| REM | |
| PowerShell.exe -ExecutionPolicy Bypass -File "%~dp0server-full-diagnostic.ps1" | |
| if %ERRORLEVEL% NEQ 0 ( | |
| echo. | |
| echo [ERROR] Could not run diagnostic script. |
| #!/bin/bash | |
| # | |
| # Weyflix Connection Diagnostic (Mac / Linux) | |
| # | |
| # HOW TO RUN: | |
| # 1. Open Terminal: | |
| # - Mac: Press Command+Space, type "terminal", press Enter | |
| # - Linux: Press Ctrl+Alt+T | |
| # 2. Drag this file into the Terminal window (or type the path) | |
| # 3. Press Enter |
| @echo off | |
| REM | |
| REM Weyflix Connection Diagnostic (Windows) | |
| REM | |
| REM HOW TO RUN: | |
| REM Just double-click this file! | |
| REM Enter the server IP when prompted. | |
| REM Results will be saved to your Desktop. | |
| REM Send the results file back so we can fix your issue. | |
| REM |
I hereby claim:
To claim this, I am signing this object:
dump-sequelize-schema.js.
lodash methods, so be sure to temporarily install them—or if you feel up to it you can rewrite the script so they're not needed.npm i lodash.sortby lodash.pick lodash.omit lodash.mapvaluessequelize-schema.json and make sure it appears represent all of your tables, attributes, indexes, constraints, references, etc...sequelize-schema.json file into a migration-extras/ directory that is next to your migrations/. Name it initial-sequelize-schema.json.
migration-extras/
initial-sequelize-schema.jsonmigrations/
sequelize migration:create and then copy the contents of 2018XXXXXXXXXX-initial-migration.js into the newly generated migration script. No additional modifications are required if y| // Code to encrypt data in sequelize fields | |
| // We are using ascii85 as a way save on storage. Also, note that | |
| // the space delimiter we are using is a bit of an abuse since in | |
| // normal cases ascii85 will skip over it, but since we are using | |
| // after encoding and before encoding, it shouldn't be an issue. | |
| // | |
| // Fields are broken down to facilitate unit testing. | |
| // | |
| // based on code here: http://vancelucas.com/blog/stronger-encryption-and-decryption-in-node-js/ |
| var Sequelize = require('sequelize') | |
| var sequelize = new Sequelize('sequelize_test', 'root') | |
| //Note that the model definition does not have "fullName" | |
| var User = sequelize.define('User', { | |
| email: Sequelize.STRING, | |
| firstName: Sequelize.STRING, | |
| lastName: Sequelize.STRING, | |
| }, | |
| { |
| const git = require('nodegit') | |
| const fs = require('fs-extra') | |
| const { URL } = require('url') | |
| const REPO_URL = 'git@github.com:org/path.git' | |
| const CLONE_DIR = '/tmp/private-repo-clone-test' | |
| ;(async () => { | |
| await fs.emptyDir(CLONE_DIR) | |
| let authAttempted = false | |
| await git.Clone.clone(REPO_URL, CLONE_DIR, { |
| // https://www.reddit.com/r/dailyprogrammer/comments/98ufvz/20180820_challenge_366_easy_word_funnel_1/ | |
| const fs = require('fs'); | |
| const { promisify } = require('util'); | |
| const readFilePromise = promisify(fs.readFile); | |
| const makeWordSet = async file => new Set((await promisify(fs.readFile)(file, 'utf8')).split('\n')); | |
| function funnel(word1, word2) { |