Skip to content

Instantly share code, notes, and snippets.

View jbelmont's full-sized avatar
💭
Weekend Mode

Jean-Marcel Belmont jbelmont

💭
Weekend Mode
View GitHub Profile
@jbelmont
jbelmont / mongo_shell_tips.md
Last active March 4, 2019 00:24
A list of commands you can use in mongodb.

Basic Commands

Action Run Command Example
Connect to local host on default port 27017 mongo mongo
Connect to remote host on specified port mongo --host --port mongo --host 192.168.65.23 --port 27020
Connect to a database mongo / mongo 192.168.65.23/api
Show current database db db
Select or switch database use use api
Execute a JavaScript file load() load (program.js)
## GIT PROMPT DISPLAY
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✚"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%} ⇡"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[014]%} ✭"
PROMPT='$FG[008][%*]%{$reset_color%} $FG[004]%~%{$reset_color%} $FG[006]$(git_current_branch)%{$reset_color%}$(git_prompt_status)
$FG[002]❯%{$reset_color%} '
@jbelmont
jbelmont / .block
Created September 23, 2017 17:32
fresh block
license: mit
@jbelmont
jbelmont / .block
Last active September 23, 2017 03:55
D3 Straight Lines in SVG
license: mit
@jbelmont
jbelmont / .block
Last active September 23, 2017 03:43
D3 Ellipses in SVG
license: mit
@jbelmont
jbelmont / .block
Last active September 23, 2017 03:25
D3 Circles in SVG
license: mit
@jbelmont
jbelmont / .block
Last active September 23, 2017 03:09
D3 Rectangle in SVG
license: mit
@jbelmont
jbelmont / .block
Last active September 22, 2017 15:41
Area Chart
license: mit
@jbelmont
jbelmont / .block
Last active September 22, 2017 14:06
Svg Enter Append Call
license: mit
@jbelmont
jbelmont / .block
Last active September 22, 2017 02:53
Svg Enter and Append
license: mit