Create a directory and run the following command.
npm init
For this tutorial, I will be adding an index.js file to the src
folder, and this will be our entry point.
Our file directory should look like this.
/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml
.bzexclusions
tag:<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
""" | |
A bare bones examples of optimizing a black-box function (f) using | |
Natural Evolution Strategies (NES), where the parameter distribution is a | |
gaussian of fixed standard deviation. | |
""" | |
import numpy as np | |
np.random.seed(0) | |
# the function we want to optimize |
/** | |
* Created at 03/17/2017 | |
* Developed by Jorge Cuesta <[email protected]> | |
* Developed by Jeffrey Soriano <[email protected]> | |
*/ | |
// ### Use cases | |
/* | |
keys & data -> result |
/* App creator */ | |
import { extendObservable } from 'mobx' | |
import AppStore from '../app/AppStore' | |
export default (initialState = false) => { | |
const stores = { | |
App: AppStore | |
} |
################################## INSTRUCTIONS ################################## | |
# 1. Make sure docker-machine is installed on your machine # | |
# 2. Download the file # | |
# 3. Run using $ . swarm-with-docker-machine.sh so that DOCKER_HOST is exported # | |
################################################################################## | |
# Clean any existing machines | |
yes | docker-machine rm manager | |
yes | docker-machine rm agent1 | |
yes | docker-machine rm agent2 |
/* | |
* $ gcc -Wall -shared -fPIC -o patch_inotify_init1.so patch_inotify_init1.c | |
* | |
* LD_PRELOAD=patch_inotify_init1.so java ... | |
* | |
* [11.27.15 12:43:37.040 ERROR main .service.backup.BackupController] Exception setting up BackupController! , java.lang.UnsatisfiedLinkError: Error looking up function 'inotify_init1': /usr/local/crashplan/jre/bin/java: undefined symbol: inotify_init1 | |
* STACKTRACE:: java.lang.UnsatisfiedLinkError: Error looking up function 'inotify_init1': /usr/local/crashplan/jre/bin/java: undefined symbol: inotify_init1 | |
* at com.sun.jna.Function.<init>(Function.java:208) | |
* at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:536) | |
* at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:513) |
docker run -d --name es elasticsearch
docker run -d --name logstash --link es:elasticsearch logstash -v /tmp/logstash.conf:/config-dir/logstash.conf logstash logstash -f /config-dir/logstash.conf
docker run --link es:elasticsearch -d kibana
LOGSTASH_ADDRESS=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' logstash)
/****************************************************************************** | |
How to load Javascript modules into postgres | |
******************************************************************************/ | |
CREATE EXTENSION IF NOT EXISTS plv8 | |
/****************************************************************************** | |
First step is download the Javascript module file | |
Example with undescore-min and node-jpath | |
******************************************************************************/ |