Skip to content

Instantly share code, notes, and snippets.

View abelgvidal's full-sized avatar
🏠
Working from home

Abel González Vidal abelgvidal

🏠
Working from home
View GitHub Profile
@abelgvidal
abelgvidal / sublime_hot_keys.txt
Created November 29, 2022 14:39 — forked from ollar/sublime_hot_keys.txt
sublime hot keys
Sublime Text 2 Tips
Useful URLs
http://www.sublimetext.com/dev
http://docs.sublimetext.info/en/latest
http://wesbos.com/sublime-text-code-folding
http://benmccormick.org/blog/2013/01/01/sublime-text-for-javascript-configuration/
Command Palette
Ctrl+Shift+P (Tools > Command Palette...)
@abelgvidal
abelgvidal / gem_env.sh
Created March 18, 2018 10:41 — forked from thinkerbot/gem_env.sh
Illustrates GEM_HOME vs GEM_PATH
# Two ENV variables control the 'gem' command:
#
# GEM_HOME: the single path to a gem dir where gems are installed
# GEM_PATH: a standard PATH to gem dirs where gems are found
#
# A gem directory is a directory that holds gems. The 'gem' command will lay
# out and utilize the following structure:
#
# bin # installed bin scripts
# cache # .gem files ex: cache/gem_name.gem
@abelgvidal
abelgvidal / sparse-checkout
Created December 27, 2017 21:11 — forked from jmjf/sparse-checkout
An Ansible playbook and sparse-checkout file to test sparse checkout functionality
mu-plugins/
README.md
@abelgvidal
abelgvidal / ansible-github.yml
Created December 22, 2017 16:52 — forked from devynspencer/ansible-github.yml
Example playbook for cloning a private git repository with Ansible.
---
hosts: all
tasks:
- name: add github ssh key
copy: >
src=files/id_rsa.github
dest=/root/.ssh/id_rsa.github
owner=root
group=root
@abelgvidal
abelgvidal / postgres-cheatsheet.md
Last active January 21, 2016 17:08 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

  • \q: Quit/Exit
  • \c __database__: Connect to a database