Skip to content

Instantly share code, notes, and snippets.

View skellertor's full-sized avatar
🫡

Samuela Keller skellertor

🫡
View GitHub Profile
@skellertor
skellertor / c_2_postman.md
Created February 9, 2018 01:01
Translate curl request to postman
  • cURL -u ------------> Authorization: username:password
@skellertor
skellertor / webstorm_indexing.md
Last active January 31, 2018 20:07
Temporary workaround to webstorm indexing issue

Temp fix

File > Invalidate Caches & Restart

Follow progress here

@skellertor
skellertor / start_mongo.md
Last active January 30, 2018 22:58
Stop and start mongodb with homebrew

Start

brew services start mongodb

Stop

brew services stop mongodb
@skellertor
skellertor / delete_submodule.md
Created January 30, 2018 21:20
Deleting a git submodule
  1. Delete the relevant section from the .gitmodules file. The section would look similar to:
[submodule "vendor"]
	path = vendor
	url = git://github.com/some-user/some-repo.git
  1. Stage the .gitmodules changes via command line using:
git add .gitmodules
@skellertor
skellertor / running_node.md
Created January 29, 2018 20:45
List all running node processes

ps -ef | grep node

@skellertor
skellertor / removelink.md
Last active July 10, 2018 16:44
Remove a project that was npm linked
@skellertor
skellertor / CLI_Prompt_lightning.md
Last active January 18, 2018 03:40
CLI_Prompt_lightning.md

export PS1='\[\033[0;91m\][\u]\[\033[0m\]@\[\033[0;97m\]\s:\W\[\033[0m\]\[\033[0;94m\]⚡︎⚡︎⚡︎\[\033[0m\] '

@skellertor
skellertor / Truthy.txt
Created April 26, 2017 15:42
Javascript truthy/falsey
// Outputs: "Truthy!"
logTruthiness(true);
// Outputs: "Truthy!"
logTruthiness({});
// Outputs: "Truthy!"
logTruthiness([]);
// Outputs: "Truthy!"
@skellertor
skellertor / optimize.txt
Created April 25, 2017 15:04
Optimize Webstorm
Go to Preferences and do next:
Appearance & Behaviour > System Settings > Updates: disable auto update
Appearance & Behaviour > System Settings > Using Statistics: Uncheck allowing sending data
Editor > Live Templates: disable all, leave only what you are really use
Editor > Emmet: disable all emmets
Editor > Intentions: I leave only: CSS, Declaration, JavaScript and Language Injection
Plugins: leave only next (* - can be also disabled in case you don't need them):
CoffeeScript *
CSS Suport
CVS Integration
@skellertor
skellertor / reset_couchbase.md
Last active March 13, 2017 21:10
Reset couchbase password on mac

$ cd /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/
$ ./cbreset_password [host]:[port]