Skip to content

Instantly share code, notes, and snippets.

@Silfen
Silfen / Mongo.md
Last active December 14, 2017 19:53
Mongo

Select database

use database

Show collections

show collections

Remove

File name

find . -name "*.png" | xargs mogrify -resize 10%

Regex

find -E . -regex '.*/big/.*\.png' | xargs mogrify -resize 10%

Resize

find . -name "*.png" | xargs mogrify -resize 10%

Platform

cordova platform add ios

Build

cordova build

Emulate

cordova emulate ios

Plugin

@Silfen
Silfen / Sharer.md
Last active January 3, 2016 23:49
Sharer

Twitter

http://twitter.com/share?text={description}&url={url}&hashtags={hashtags}

Facebook

http://www.facebook.com/share.php?u={url}

Pinterest

http://pinterest.com/pin/create/button/?url={url}&media={picture_url}&description={description}

Tumblr

http://www.tumblr.com/share/link?url={url}&name={name}&description={description}

@Silfen
Silfen / gist:5598245
Last active December 17, 2015 10:58
Git reminder

Creer un projet

git init

Cloner un projet

git clone http://abc.git

Afficher le status des fichiers

@Silfen
Silfen / gist:5598239
Created May 17, 2013 10:14
Express reminder

Init

var express = require('express'),
  app = express();

app.listen(process.env.PORT || 8080);