Skip to content

Instantly share code, notes, and snippets.

Fatih Metin teaddict

Block or report user

Report or block teaddict

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
teaddict /
Last active Feb 6, 2019
Export all MongoDB collections to JSON array
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
teaddict / CustomJacksonModule.scala
Last active Jun 8, 2018
CustomJacksonModule for Finatra with CamelCase strategy, default finatra jackson module uses SNAKE_CASE as namin strategy
View CustomJacksonModule.scala
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

AngularJS Directive Attribute Binding Explanation

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.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
teaddict /
Created Feb 6, 2018 — forked from solderjs/
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set "Your Name"
npm set ""
npm set ""

npm adduser
teaddict / .conkyrc
Last active Nov 21, 2017
conky profile
View .conkyrc
-- 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
You can’t perform that action at this time.