Skip to content

Instantly share code, notes, and snippets.

View fernandoPalaciosGit's full-sized avatar
🎯
Focusing

Fernando Palacios Landi fernandoPalaciosGit

🎯
Focusing
View GitHub Profile
@fernandoPalaciosGit
fernandoPalaciosGit / .jshintrc.md
Last active December 15, 2015 22:11
linter javascript, jshint, rules
{
    "quotmark": "single",
    "indent": 2,
    "multistr": true,
    "undef": true,
    "unused": true,
    "sub": true,
    "scripturl": true,
 "nonbsp": true,
@fernandoPalaciosGit
fernandoPalaciosGit / idea64.exe.vmoptions.md
Last active December 2, 2015 08:14
Intellij idea configuration

/bin/idea64.vmoptions

-Xms512m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
@fernandoPalaciosGit
fernandoPalaciosGit / .bashrc.md
Created November 28, 2015 12:29
linux user configuration bash
force_color_prompt=yes

parse_git_branch() {
	git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ "$color_prompt" = yes ]; then
	PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ '
else
	PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ '
@fernandoPalaciosGit
fernandoPalaciosGit / Preferences.sublime-settings.md
Last active December 15, 2015 22:16
sublime, user settings, default
{
	"auto_complete": false,
	"auto_indent": true,
	"bold_folder_labels": true,
	"caret_extra_width": 2,
	"caret_style": "smooth",
	"color_scheme": "Packages/User/SublimeLinter/Monokai Phoenix (SL).tmTheme",
	"default_encoding": "UTF-8",
	"default_line_ending": "unix",
@fernandoPalaciosGit
fernandoPalaciosGit / .editorconfig.md
Last active December 15, 2015 22:17
editorconfig
# Editorconfig files will stop at this path
root = true

[*]
charset = utf-8
trim_trailing_whitespace = true

# Unix-style newlines with a newline ending every file
end_of_line = lf
@fernandoPalaciosGit
fernandoPalaciosGit / .gitconfig.md
Last active November 28, 2015 12:10
Git configuration

[user]

  name = Fernando Palacios Landi
  email = fernandopalacioslandi@gmail.com

[color]

  diff = auto
 status = auto
@fernandoPalaciosGit
fernandoPalaciosGit / git-commands.md
Last active January 22, 2020 14:38
Git commands

listar repositorios remoto

$git remote -v

sincronizar remoto con local

$git remote add [remote-name] [remote-url]

$git push -u [remote-name] [remote-url]

sincronizar forks remotos en local antes del PR (sobreescribimos por encima de nuestro master)

@fernandoPalaciosGit
fernandoPalaciosGit / .eslintrc.md
Last active December 15, 2015 22:27
linter javascript, eslint, complete rules
{
  "documentation": "http://eslint.org/docs/rules",
  "ecmaFeatures": {
    "binaryLiterals": false,                    // enable binary literals
    "blockBindings": false,                     // enable let and const (aka block bindings)
    "defaultParams": false,                     // enable default function parameters
    "forOf": false,                             // enable for-of loops
    "generators": false,                        // enable generators
    "objectLiteralComputedProperties": false,   // enable computed object literal property names
@fernandoPalaciosGit
fernandoPalaciosGit / mercurial.ini.md
Last active August 5, 2017 18:25
Mercurial configuration

[alias]

s = !$HG status ; $HG heads
lg = glog --template "\033[31m{node|short}\033[0m \033[1;34m<{author|person}>\033[0m \033[32m({date|age})\033[0m \n\t\t{desc}\n" --limit $1

[ui]

username = Fernando Palacios Landi <fernando.palacios@team.com> 
@fernandoPalaciosGit
fernandoPalaciosGit / mecurial-commands.md
Last active November 16, 2017 08:05
Mercurial commands

export last | specific commit to patch

$hg export -o [absulute\path\mypatch.patch] -r [IDChangeset1:IDChangeset2:IDChangeset3 | tip]

export working space changes (not commited) to patch

$hg diff -r tip > [absulute\path\mypatch.patch]

apply/import patch to HEAD [to Working directory]

$hg import [absulute\path\mypatch.patch] --no-commit