Skip to content

Instantly share code, notes, and snippets.

View ingmarsk's full-sized avatar

Ingemar Andrade ingmarsk

  • Tjekvik
  • Barcelona
View GitHub Profile
@ingmarsk
ingmarsk / config.json
Last active October 18, 2022 17:12
Custom CloudWatch Agent Configuration File
{
"agent": {
"metrics_collection_interval": 3600,
"region": "eu-west-3",
"run_as_user": "root"
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
@ingmarsk
ingmarsk / Rails cheatsheet
Last active March 29, 2018 14:09
Rails cheatsheet
rails s (start server)
rails console
rake about (app desc)
rake db:schema:dump (connecto db & export schema)
rake db:migrate:status
rake db:migrate (apply migrations to db)
rake db:migrate VERSION=0 (rollback)
rake db:migrate:(up/down/redo) VERSION=<version>
rake db:seed (populate db with test data from seeds.rb)
rake db:rollback (rollback the migration)
@ingmarsk
ingmarsk / subl2
Last active February 24, 2017 23:46
ST2 Theme
{
"color_scheme": "Packages/Kestrel/Kestrel.tmTheme",
"font_size": 14.0,
"ignored_packages":
[
"Vintage"
],
"soda_folder_icons": true,
"theme": "Soda Dark.sublime-theme"
}
@ingmarsk
ingmarsk / bash_profile
Created February 24, 2017 15:46
~/.bash_profile
export ANDROID_HOME=~/Library/Android/sdk
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# if [ -f ~/.git-completion.bash ]; then
# This is Git's per-user configuration file.
[user]
name = ********
email = ********
# Please adapt and uncomment the following lines:
# name = ********
# email = ********
[user]
[filter "lfs"]
@ingmarsk
ingmarsk / gitcheatsheet.txt
Last active November 10, 2017 09:34
Git cheatsheet
GIT
—————————————————————————————————
export PS1='inge$ ' (change command prompt)
Git auto-completion
-----------------------------
curl -OL https://github.com/git/git/raw/master/contrib/completion/git-completion.bash
mv ~/git-completion.bash ~/.git-completion.bash
nano .bash_profile