If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
-- vim: ts=4 sw=4 noet ai cindent syntax=lua | |
--[[ | |
Conky, a system monitor, based on torsmo | |
Any original torsmo code is licensed under the BSD license | |
All code written since the fork of torsmo is licensed under the GPL | |
Please see COPYING for details |
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>
import com.fasterxml.jackson.annotation.JsonInclude.Include | |
import com.fasterxml.jackson.core.JsonGenerator.Feature | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.twitter.finatra.json.modules.FinatraJacksonModule | |
import com.twitter.finatra.json.utils.CamelCasePropertyNamingStrategy | |
object CustomJacksonModule extends FinatraJacksonModule { | |
override val serializationInclusion = Include.ALWAYS |
#!/bin/bash | |
DB=$1 | |
COLLECTIONS=$(mongo localhost:27017/$DB --quiet --eval "db.getCollectionNames()" | jq -r '. | join(" ")') | |
for collection in $COLLECTIONS; do | |
echo "Exporting $DB/$collection ..." | |
mongoexport -d $DB -c $collection --jsonArray --pretty -o $collection.json | |
done | |