npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
- Either use the shell script or windows batch here instead.
'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'; |
npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
#!/usr/bin/env python | |
from __future__ import print_function | |
import re | |
import os | |
import sys | |
import glob | |
LF = '\n' |
fs = require 'fs' | |
log = console.log | |
dump = (obj) -> JSON.stringify obj, null, 2 | |
keys = Object.keys | |
src = process.argv[2] or 'package.json' | |
log src | |
pkg = JSON.parse fs.readFileSync src | |
log 'JSON: ' + dump pkg |
# Edit this file as you like and merge with $HOME/.gitconfig (global) or .git/config (given repo only) | |
# | |
# See https://help.github.com/articles/set-up-git | |
# | |
# See http://git-scm.com/docs/git-config | |
# or http://www.kernel.org/pub/software/scm/git/docs/git-config.html | |
# | |
# See http://git-scm.com/book/en/Customizing-Git-Git-Configuration | |
# or http://progit.org/book/ch7-1.html | |
# |
if (settings.mainColor) { | |
_.each(document.styleSheets, function(styleSheet) { | |
if (styleSheet.title === 'mainColor') { | |
_.each(styleSheet.cssRules || styleSheet.rules, function(rule) { | |
if (rule.type === 1 && rule.cssText && rule.style) { | |
if (rule.cssText.indexOf('BgColor') !== -1) { | |
console.log('style: background color ' + settings.mainColor + ' @ ' + rule.cssText, {rule: rule}); | |
rule.style.backgroundColor = settings.mainColor; | |
} | |
if (rule.cssText.indexOf('FontColor') !== -1) { |
#!/bin/sh | |
name="${0##*/}" | |
name="${name%.sh}" | |
edition="${name%%-*}" | |
version="${name#*-}" | |
version="${version%%-*}" | |
# use main ubuntu cdimage server | |
if [ "$edition" = 'ubuntu' ]; then |
#!/bin/bash | |
#|Usage: <command> [OPTIONS] | |
#| | |
#|Clean development VM for exporting to appliance: | |
#| | |
#| - update system: apt-get update and upgrade | |
#| - install zerofree package | |
#| - remove user ssh keys | |
#| - stop foreman and django | |
#| - stop mongodb, compact database, purge journal |
/*Enable logs from your unit tests using logging.on|off() methods. | |
Provides stringifier to stripped JSON for safe logging of objects | |
with cyclical references, DOM elements, angular scopes, or window. | |
By default, logging.on/off() works with window.console, | |
or with $log service if angular is detected. | |
By default, logging class attaches to jasmine.logging, | |
or mocha.logging, or window.logging. |