note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
cd hoodie-plugin-chat && npm link && cd .. && | |
cd hoodie-plugin-cordovafb && npm link && cd .. && | |
cd hoodie-plugin-image && npm link && cd .. && | |
cd hoodie-plugin-notification && npm link && cd .. && | |
cd hoodie-plugin-oauthio && npm link && cd .. && | |
cd hoodie-plugin-paranoia && npm link && cd .. && | |
cd hoodie-plugin-profile && npm link && cd .. && | |
cd hoodie-plugin-pubsub && npm link && cd .. && | |
cd hoodie-plugin-socialmedia && npm link && cd .. && | |
cd hoodie-utils-plugins && npm link && cd .. |
./node_modules/.bin/$@ |
<?php | |
/** | |
* Changelog Markdown | |
* | |
* This is a script to transform GIT LOG into a cute format Changelog.md | |
* | |
* To use, set executable permissions to this file and execute: | |
* $ php changelog.php > CHANGELOG.md | |
* | |
* Copyright (c) 2014 João Pinto Neto |
# Put .bashrc_ps1 in your home (~/) and at the end of your .bashrc add follow lines: | |
# if [ -f ~/.bashrc_ps1 ]; then | |
# . ~/.bashrc_ps1 | |
# fi | |
RED='\[\e[0;31m\]' | |
BRED='\[\e[1;31m\]' | |
BLUE='\[\e[0;34m\]' | |
BBLUE='\[\e[1;34m\]' | |
CYAN='\[\e[0;36m\]' |
var winston = require('winston'); | |
var fs = require('fs'); | |
fs.mkdir('./logs', function(err) { | |
if (err) throw err; | |
}); | |
// Define levels to be like log4j in java | |
var customLevels = { | |
levels: { |
note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
var express = require('express'); | |
var app = express(); | |
var mongo = require('mongodb'); | |
var MongoClient = require('mongodb').MongoClient; | |
var GridStore = mongo.GridStore; | |
var ObjectID = require('mongodb').ObjectID; | |
function StreamGridFile(req, res, GridFile) { |
/** | |
* `objFromFlatKeys` Convert the template string into a tree path and set the value into the referenced object path. | |
* | |
* @param {string} strPath - template string path to convert in nested object tree | |
* @param {Object} prevobj - reference for the nested object result | |
* @param {*} value - value to set at the end of the nested object tree | |
* | |
* @example | |
* // define the target object | |
* const obj = {}; |
# Delete the possibly existing autocomplete test index | |
curl -X DELETE localhost:9200/autocomplete_test | |
# Put the config of the autocomplete index | |
curl -X PUT localhost:9200/autocomplete_test -d ' | |
{ | |
"settings" : { | |
"index" : { | |
"analysis" : { | |
"analyzer" : { |
# memcached requires libevent | |
cd /usr/local/src | |
curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz | |
tar -xvzf libevent-2.0.17-stable.tar.gz | |
cd libevent-2.0.17-stable* | |
./configure | |
make | |
sudo make install | |
# Compile memcached utility |