npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
- Either use the shell script or windows batch here instead.
#!/usr/bin/env python | |
from __future__ import print_function | |
import re | |
import os | |
import sys | |
import glob | |
LF = '\n' |
npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
'use strict'; | |
var gulp = require('gulp'); | |
var path = require('path'); | |
var CWD = path.resolve('.'); | |
var API_SPEC = path.resolve(CWD, '../api/api.raml'); | |
var API_DEST = path.resolve(CWD, '../server/static/docs/api'); | |
var API_HTML = 'index.html'; |
@echo off | |
setlocal enableextensions | |
::: echo === "%~f0" %* >&2 | |
set vcArgs=%* | |
set vcVersions=14 11 10 | |
call :poparg vcArgs vcVersions 10 10 %1 && shift | |
call :poparg vcArgs vcVersions 11 11 %1 && shift |
// ==UserScript== | |
// @name Medium: remove location hash | |
// @namespace http://efcl.info/ | |
// @description Remove location hash from medium | |
// @include https://medium.com/* | |
// @include https://uxdesign.cc/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
# See https://help.github.com/ignore-files/ for more about ignoring files. | |
# logs | |
*.log* | |
# tools settings and other hidden directories | |
/.*/ |
FROM alpine | |
WORKDIR /data | |
COPY . . | |
CMD ls -l /data |
version: '3.7' | |
services: | |
whoami: | |
image: jwilder/whoami | |
ports: | |
- 127.0.0.1:7000:8000 | |
cors: |
# Format: https://git-scm.com/docs/gitignore#_pattern_format | |
*.json | |
*.yaml | |
.DS_Store | |
*.log | |
*.log.* | |
/.*/ |
const hide = (s: string) => '*'.repeat(s.length); | |
const hideEachSecondMatch = (_match: string, ...matches: string[]) => | |
matches | |
.slice(0, -2) | |
.map((m, i) => (i % 2 ? hide(m) : m)) | |
.join(''); | |
// Hide all characters in email name, except first and last character | |
// FIXME: Better hide at least one character for 1-2 character names | |
const hideEmail = (email: string, options?: { domain?: boolean }) => | |
email.replace( |