Skip to content

Instantly share code, notes, and snippets.

View skellertor's full-sized avatar
🫡

Samuela Keller skellertor

🫡
View GitHub Profile
@skellertor
skellertor / .bash_profile
Created January 29, 2017 18:10
My custom terminal prompt
# Setting color of prompt variable
export PS1='\[\033[0;91m\]\h\[\033[0m\] \[\033[0;97m\]\u:\W\[\033[0m\] \[\033[0;94m\]$\[\033[0m\] '
@skellertor
skellertor / remove.md
Last active March 7, 2017 17:06
Remove sensitive data that has been commited to git

Steps copied from

$ git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA' --prune-empty --tag-name-filter cat -- --all

$ git push origin --force --all

@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]

@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 / 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 / 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 / removelink.md
Last active July 10, 2018 16:44
Remove a project that was npm linked
@skellertor
skellertor / running_node.md
Created January 29, 2018 20:45
List all running node processes

ps -ef | grep node

@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 / 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