Skip to content

Instantly share code, notes, and snippets.

View erickpatrick's full-sized avatar
🎯
Focusing

Erick Patrick erickpatrick

🎯
Focusing
View GitHub Profile
@erickpatrick
erickpatrick / .vimrc
Last active July 21, 2019 16:53
.vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" EVERYTHING RUNS SMOOTLY ONLY ON *VIM 8* "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" NECESSARY PLUGINS "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" PLUGIN MANAGER "
" - https://github.com/VundleVim/Vundle.vim "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible
@erickpatrick
erickpatrick / magento-aliases-functions.sh
Last active March 22, 2019 09:47
BASH function for daily work with Homestead+Magento2+Yarn+Webpack
function setup:recompile() {
cd ~/code
php bin/magento setup:upgrade
php bin/magento setup:di:compile
cd -
}
function setup:di:compile() {
cd ~/code
php bin/magento setup:di:compile
@erickpatrick
erickpatrick / summary-creation-publication.md
Created January 18, 2019 16:28
Summary to create publications (scientific papers or not)

-- precise word use, past tense, active voice, brevity.

Title of post

  • categories

Abstract

225 chars

Introduction

  • not fully in details but more detailed than Abstract
@erickpatrick
erickpatrick / xcode.md
Last active November 15, 2018 20:34
Xcode interesting things
@erickpatrick
erickpatrick / .zshrc
Created November 10, 2018 00:57
my ZSHCONFIG
export PATH=/usr/local/bin:$PATH
# If you come from bash you might have to change your $PATH.
export ZSH="/Users/<user>/.oh-my-zsh"
ZSH_THEME="agnoster"
export UPDATE_ZSH_DAYS=7
plugins=(
git
)
@erickpatrick
erickpatrick / fzf-colored-preview.md
Created November 10, 2018 00:36
When working with FZF use Rouge gem to have coloured output of preview pane
@erickpatrick
erickpatrick / undo-saved-stories.js
Created July 11, 2018 14:42
Unsave all saved medium publications I have
let savedPosts = document.querySelectorAll('[data-action=remove-from-queue]')
savedPosts.forEach(button => button.click())
@erickpatrick
erickpatrick / xdebug-homestead-config.txt
Created January 17, 2018 15:12
Configuration for xDebug with Homestead
zend_extension=xdebug.so
xdebug.remote_autostart=1
xdebug.remote_host=10.0.2.2 // same as the one showed when vagrant ssh "last log in from"
xdebug.remote_enable = 1
xdebug.remote_log=/home/vagrant/output.txt
xdebug.remote_handler=dbgp
xdebug.collect_params=1
xdebug.show_local_vars=1
xdebug.remote_port = 9000
xdebug.max_nesting_level = 512
export ZSH=/home/vagrant/.oh-my-zsh
ZSH_THEME="powerlevel9k/powerlevel9k"
export UPDATE_ZSH_DAYS=13
plugins=(git php composer ruby python git-flow node npm ubuntu svn sudo symfony2)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
export EDITOR='vim'
export SSH_KEY_PATH="~/.ssh/rsa_id"