This file contains hidden or 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
function cleanData(data, authorizedData) { | |
if (typeof data === 'undefined') | |
throw new Error('data should not be undefined'); | |
if (typeof data !== 'object') | |
throw new Error('data should be an object'); | |
var ndata = {}; | |
for (var filterName in authorizedData) { | |
if (Object.hasOwnProperty.call(authorizedData, filterName)) { | |
var filter = authorizedData[filterName]; | |
if (Object.hasOwnProperty.call(data, filterName)) { |
This file contains hidden or 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
function clone(obj) { | |
if (obj === null || typeof obj === 'undefined' || typeof obj !== 'object') return obj; | |
cloned = {}; | |
for (key in obj) { | |
if (Object.hasOwnProperty.call(obj, key)) { | |
cloned[key] = clone(obj[key]); | |
} | |
} | |
return cloned; | |
} |
This file contains hidden or 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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker volume rm $(docker volume ls -q) | |
docker image rm -f $(docker images -q) |
This file contains hidden or 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/sh | |
### BEGIN INIT INFO | |
# Provides: smartalog | |
# Required-Start: networking postgresql nuukik-hazelcast mysql apache2 cups elasticsearch tomcat7 | |
# Required-Stop: networking postgresql nuukik-hazelcast mysql apache2 cups elasticsearch tomcat7 | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: smartalog | |
# Description: This file should be used to start and stop nuukik-hazelcast. | |
### END INIT INFO |
NewerOlder