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 / xcode.md
Last active November 15, 2018 20:34
Xcode interesting things
@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 / 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 / .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 / undo-like-tweets.js
Last active August 16, 2019 07:12
Unlike all liked tweets I have
let likeToUndo = document.querySelectorAll('[data-testid=unlike]')
likeToUndo.forEach(node => {setTimeout(() => node.click(), 500)})
@erickpatrick
erickpatrick / changes-git-history.sh
Created October 25, 2019 20:37
renames user and changes email from git history
git filter-branch --env-filter '
OLD_EMAIL="erick.alvarenga@erickpatrick.net"
CORRECT_NAME="erick patrick"
CORRECT_EMAIL="github@erickpatrick.net"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
@erickpatrick
erickpatrick / php-7-3-install-magento-ngnix.sh
Last active April 30, 2020 01:16
Install php7.3-magento-ngnix
PATH_TO_MAGENTO='/path/to/magento/installation/folder'
GITHUB_TOKEN='github-token-here'
MAGENTO_USER='your-key-here'
MAGENTO_PASS='your-pass-here'
MAGENTO_ADMIN_URL='http://your-server.com'
MAGENTO_ADMIN_USER='admin'
MAGENTO_ADMIN_PASS='admin123'
# ondrej best php apt-repository for php to be able to
# update and install PHP as needed
@erickpatrick
erickpatrick / .ctags
Last active June 3, 2021 22:08
~/.ctags for PHP
--recurse=yes
--exclude=.git
--exclude=vendor/*
--exclude=node_modules/*
--exclude=db/*
--exclude=log/*
--exclude="*/_*cache/*"
--exclude="*/_*logs{0,1}/*"
--exclude="*/_*data/*"
--fields=+laimS
@erickpatrick
erickpatrick / .editorconfig
Created August 15, 2021 14:42
.editorconfig for vscode
[*.js]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true