Skip to content

Instantly share code, notes, and snippets.

View wilhelmpaulm's full-sized avatar

Wilhelm Martinez wilhelmpaulm

View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@wilhelmpaulm
wilhelmpaulm / settings.json
Created May 4, 2020 16:12
vscode settings
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "vscode-icons",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.renderWhitespace": "all",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
@wilhelmpaulm
wilhelmpaulm / easy butter chicken.txt
Last active April 9, 2018 12:01
easy butter chicken
ingredients:
- 500g chicken (cut to preferred size | 1 or 2 inch cubes)
- 500g tomatoes (cut to four parts each)
- 1 whole chopped white onion (diced or chopped)
- 4 cloves of chopped garlic (so 4 pcs nung bawang ba part)
- 1 tsp chopped ginger
- 3 tbsp cumin & 1 tsp all spice (this replaces garam masala)
- chili powder (for color and heat to the dish)
- 2 tbsp salt (or whatever you prefer)
- 3 tbsp sugar
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
apm install minimap linter atom-beautify file-icons pigments color-picker emmet git-plus merge-conflicts project-manager linter-jshint find-and-replace tree-view settings-view highlight-selected linter-php autocomplete-paths minimap-highlight-selected highlight-line git-time-machine minimap-git-diff advanced-open-file split-diff language-haml atom-autocomplete-php open-recent atom-bootstrap3 file-type-icons minimap-pigments linter-jsonlint linter-rubocop seti-icons linter-ruby git-blame pdf-view linter-erb erb-snippets erb-helper rails-snippets css-snippets bootstrap3-plus atom-bootstrap4 atom-bootstrap3
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
sudo apt-get install gcc g++ htop git zsh curl wget openjdk-8-jdk openjdk-8-jre postgresql postgresql-contrib libpq-dev nginx -y;
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -; sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc /apt/sources.list.d/jenkins.list'; sudo apt-get install jenkins; sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev;
apt-get install ruby openssl;
gem install rails minitest sinatra minitest-junit rake bundle bundler;
sudo apt-get install build-essential patch;
sudo apt-get install ruby-dev zlib1g-dev liblzma-dev;
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.3.1
rvm use 2.3.1 --default
ruby -v
rvm install 2.3.1
rvm use 2.3.1 --default
rvm reload
sudo apt-get update;
sudo apt-get install postgresql postgresql-contrib libpq-dev;
sudo -u postgres createuser -s pguser;
sudo -u postgres psql;
\password pguser #set password
\q # to quit
ssh-keygen -t rsa
# view the key on ubuntu
cat ~/.ssh/id_rsa.pub
# view key on windows
cat id_rsa.pub