This little guide describes what to do when:
- You see a vulnerability warning for a package, and
- The package has already been fixed, and a patch version has been released.
- Delete all lock files
This little guide describes what to do when:
| const cmds = { linux: 'xdg-open', win32: 'start', darwin: 'open' }; | |
| const open = cmds[process.platform]; | |
| const tryOpen = (dirname, editors = ['sublime', 'code', open]) => { | |
| try { | |
| cp.execSync([editors[0], dirname].join(' ')); | |
| console.log('Opening in ' + editors[0]); | |
| } catch (err) { | |
| if (editors.length === 0) { | |
| throw new Error('Cannot find an editor to open'); |
| const replace = async (input, regex, replacer) => { | |
| // we need to remove the 'g' flag, if defined, so that all replacements can be made | |
| let flags = (regex.flags || '').replace('g', ''); | |
| let re = new RegExp(regex.source || regex, flags); | |
| let index = 0; | |
| let match; | |
| while ((match = re.exec(input.slice(index)))) { | |
| let value = await replacer(...match); | |
| index += match.index; |
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
Among other cherished values, the First Amendment protects freedom of speech. The U.S. Supreme Court often has struggled to determine what exactly constitutes protected speech. The following are examples of speech, both direct (words) and symbolic (actions), that the Court has decided are either entitled to First Amendment protections, or not.
| 'use strict'; | |
| const download = require('download'); | |
| /** | |
| * Download all ballots | |
| */ | |
| const dl = async (baseurl, dest) => { | |
| const pending = []; |
| 'use strict'; | |
| const colors = require('ansi-colors'); | |
| const chars = { | |
| backslash: '\\', | |
| backtick: '`', | |
| caret: '^', | |
| colon: ':', | |
| comma: ',', |