This file contains 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
'use strict' | |
module.exports = Mongoose => { | |
const Schema = Mongoose.Schema | |
const fooSchema = new Schema({ | |
name: { | |
type: Schema.Types.String, | |
trim: true, | |
select: true, |
This file contains 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
'use strict' | |
const _ = require( '../' ) | |
const Code = require('code') | |
const Lab = require('lab') | |
const lab = exports.lab = Lab.script() | |
const suite = lab.suite | |
const it = lab.test | |
const before = lab.before |
This file contains 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
'use strict' | |
import path from 'path' | |
import fs from 'fs' | |
import _ from 'moar-lodash' | |
import * as appRoot from 'app-root-path' | |
const log = appRoot.require('./dist/lib/utils/logger')({ model: 'Index (loader)' }) | |
module.exports = ( Mongoose ) => { |
This file contains 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
// File: real-plugin-src.js | |
module.exports = ( plugin, options, next ) => { | |
// Do stuff... | |
next() | |
} | |
module.exports.attributes = { | |
pkg: { | |
name: "test-plugin", |
This file contains 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
'use strict' | |
import _ from 'moar-lodash' | |
import path from 'path' | |
import * as appRoot from 'app-root-path' | |
import * as Winston from 'winston-color' | |
const config = appRoot.require('./dist/lib/config').logs | |
const _internals = {} |
This file contains 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
'use strict' | |
// Tools | |
const _ = require( 'lodash' ) | |
const appRoot = require( 'app-root-path' ) | |
const Util = require( 'util' ) | |
// Unit test related | |
const Code = require( 'code' ) | |
const Lab = require( 'lab' ) |
This file contains 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
'use strict' | |
// Tools | |
const _ = require( 'lodash' ) | |
const appRoot = require( 'app-root-path' ) | |
const Util = require( 'util' ) | |
// Unit test related | |
const Code = require( 'code' ) | |
const Lab = require( 'lab' ) |
This file contains 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
cp /etc/my.cnf{,.orig} && \ | |
echo "# | |
# This group is read both both by the client and the server | |
# use it for options that affect everything | |
# | |
[client-server] | |
# | |
# include all files from the config directory | |
# |
This file contains 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 | |
# Summary: Script to quickly show a summary of the servers stats, showing any possible issues (mainly regarding to resource utilization) | |
# Author: Justin Hyland | |
# Created: 05/11/16 | |
# Screenshot: http://d.pr/i/2nTm | |
# Settings and thresholds | |
# These are set at odd limits just for testing | |
disk_thresh=10 # Percent | |
cpu_thresh='0.02' |
This file contains 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
/** | |
* Jenkins Custom JavaScript/jQuery Code | |
* Author: Justin Hyland | |
* Created: 06/01/16 | |
* This file is loaded by Jenkins via the Simple Theme Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin) | |
* in combination with the jQuery Plugin (https://wiki.jenkins-ci.org/display/JENKINS/jQuery+Plugin), and is used to introduce any | |
* customized functionality for the UI, such as setting parameter values based on other parameter values or the job name, etc. | |
* | |
* Logic: The controller.init gets executed on document.ready, and attempts to deduce the viewers username (via the profile link | |
* in the upper right), and details about the job (via the URL). Since all jobs are separated into the appropriate folder named |
OlderNewer