Skip to content

Instantly share code, notes, and snippets.

View juancolacelli's full-sized avatar
💩

Juan Colacelli juancolacelli

💩
View GitHub Profile
let g:profstart=reltime() | for i in range(1,50) | exec "normal \<C-E>" | redraw | endfor | echo reltimestr(reltime(g:profstart)) . ' seconds'
@juancolacelli
juancolacelli / install-git-completion.sh
Created June 21, 2017 20:39 — forked from johngibb/install-git-completion.sh
Mac OS X - Install Git Completion
URL="https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash"
PROFILE="$HOME/.profile"
echo "Downloading git-completion..."
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1
fi
@juancolacelli
juancolacelli / vim_lua.sh
Last active July 21, 2016 00:55
Vim with lua support
brew install vim --with-cscope --with-lua
brew install macvim --with-cscope --with-lua
brew install vim --override-system-vi
@juancolacelli
juancolacelli / chown_lib.sh
Created July 20, 2016 14:34
/usr/local/lib is not writable.
sudo chown -R $(whoami) /usr/local/lib/
@juancolacelli
juancolacelli / .gitignore
Last active April 9, 2020 17:14
Apply gitignore on an existing repository already tracked
git clean -xdf
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
git push
@juancolacelli
juancolacelli / gist:065a1326ec042b3bab93
Created December 17, 2015 15:52
DBUS bug Android Studio
export IBUS_ENABLE_SYNC_MODE=1
fgrep -R -l http: . --include=*.{jade,coffee,sass} | xargs sed -i 's/http:/https:/g'
fgrep -R -l \"// . --include=*.{jade,coffee,sass} | xargs sed -i 's/"\/\//\"https:\/\//g'
@juancolacelli
juancolacelli / gist:40eded5b192db1104b81
Created October 27, 2015 23:14
Xfce-4 multiple displays
xrandr --output DVI-I-2 --mode 1920x1080 --output HDMI-0 --mode 1920x1080 --left-of DVI-I-2
@juancolacelli
juancolacelli / bashrc.sh
Last active April 9, 2016 04:28
bashrc
# Prompt
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
export GIT_PS1_SHOWDIRTYSTATE=1
# JAVA_HOME finder
JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
# Solves Android Studio DBUS bug
export IBUS_ENABLE_SYNC_MODE=1