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 / .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
@erickpatrick
erickpatrick / coc-phpcs.md
Created January 25, 2021 14:30
coc phpcs

instructions

  • Install phpcs as per their readme and add a phpcs.xml to the root of the project with your rules.
  • Install Coc-diagnostic (:CocInstall coc-diagnostic)

On you ~/.config/nvim/coc-settings.json

{
@erickpatrick
erickpatrick / init.vim
Last active September 10, 2024 15:30
Neovim CoC Intelephense configuration
" TODO: split up config into multiple files
" source $HOME/.config/nvim/vim-plug/plugins.vim
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim
set nocompatible
filetype off
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
@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="[email protected]"
CORRECT_NAME="erick patrick"
CORRECT_EMAIL="[email protected]"
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 / 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())