Skip to content

Instantly share code, notes, and snippets.

View claudiofreitas's full-sized avatar
🤠
Adventure

Claudio Freitas claudiofreitas

🤠
Adventure
  • Tokyo, Japan
  • 08:42 (UTC +09:00)
View GitHub Profile
@claudiofreitas
claudiofreitas / bash
Created November 30, 2021 12:44
Count number infractions for each eslint rule in the project
yarn eslint --config .eslintrc.js . | grep ' error \| warn ' | rev | cut -f 1 -w | rev | sort | uniq -c
# output format:
# error Command failed with exit code 1.
# 229 arrow-body-style
# 23 consistent-return
# 869 import/extensions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.17263323068618774</real>
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
local ret_status=""
PROMPT='%F{blue} %n %F{green} %m %F{yellow} %~ %f$(git_prompt_info)
%F{red}> %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%F{blue} "
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
@claudiofreitas
claudiofreitas / PHPUnit on Docker.md
Last active August 31, 2018 08:17
PHPUnit on Docker

PHPUnit on Docker

CLI Interpreter

  1. Open preferences pane (Cmd+,)
  2. Go to Languages & Frameworks > PHP.
  3. On CLI Interpreter, click the ... button.
  4. Click + and From Docker, Vagrant, VM, Remote....
  5. Select Docker, one of the images being used for the project. Then OK.
  6. Click OK again and the CLI Interpreter setting will be complete.
@claudiofreitas
claudiofreitas / maketex
Created July 4, 2013 20:48
Shell script to "compile" LaTeX documents and generate PDF.
#! /bin/bash
TEXFILE=$1
if [ ! -f $1.tex ]; then
echo "$1.tex doesn't exist";
exit 0;
fi