Skip to content

Instantly share code, notes, and snippets.

View gugat's full-sized avatar

Gustavo Salazar gugat

  • Buk
  • Santiago - Chile
View GitHub Profile
@gugat
gugat / README.md
Created October 23, 2013 04:29 — forked from nikcub/README.md
If:
- you add and commit with the wrong email address in git, and
- your remote has a hook set up to prevent you from pushing with the bad address
Then you need to amend the author of your commit before push can succeed:
1. fix your email address in git config:
$ git config user.name "Your Name"
@gugat
gugat / keystroke-toggle-linenumbers-settings.json
Created February 3, 2016 23:32 — forked from pid/keystroke-toggle-linenumbers-settings.json
Sublime Text keystroke toggle line numbers show/hide
{
"keys": ["ctrl+alt+l"],
"command": "toggle_setting",
"args": {
"setting": "line_numbers"
}
@gugat
gugat / Preferences.sublime-settings
Created August 8, 2016 18:37
Preferences for Sublime text editor
{
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"line_numbers": false,
"match_brackets": false,
"rulers":
[
@gugat
gugat / loop_date_range.sql
Last active May 18, 2017 16:47
SQL Server Loop Date Range
declare @fecha datetime;
declare @fecha_busqueda varchar(8);
set @fecha = '20170501';
while @fecha < '20170531'
begin
set @fecha = dateadd(day,1,@fecha);
set @fecha_busqueda = convert(varchar, @fecha , 112)
@gugat
gugat / heroku_rails.md
Last active September 11, 2017 20:39
Heroku & Rails configuration and usage

Install and add as remote repo

brew install heroku/brew/heroku
heroku login
cd my-rails-project
git remote add heroku git@heroku.com:my-heroku-project.git

Run migrations

heroku run rake db:migrate

@gugat
gugat / gist:cd10b3cf03f96018c1efa5ba1c43fefe
Created December 14, 2017 22:41 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@gugat
gugat / git-commit-emojis.md
Created December 14, 2017 22:42 — forked from jhermann/git-commit-emojis.md
Useful emoji for git commit messages

Useful emoji for git commit messages

If you add emoji to your commit messages for a GitHub repo, they become less boring, and you can convey the kind of change you're adding. See the full set of GitHub supported emoji here (also useful for easy copy&paste via a simple click).

Example commit message

The following is a possible scheme to use:

@gugat
gugat / GitCommitEmoji.md
Created December 28, 2017 17:57 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶