Skip to content

Instantly share code, notes, and snippets.

View arg2009's full-sized avatar

Ruben Funai arg2009

View GitHub Profile
@arg2009
arg2009 / phpstorm-cs-fixer.md
Created September 1, 2025 04:28 — forked from nienkedekker/phpstorm-cs-fixer.md
Set up PHP-CS-Fixer in PHPStorm

Use PHP-CS-Fixer in PHPStorm

  • Install PHP-CS-Fixer on your local machine according to these instructions: https://github.com/FriendsOfPHP/PHP-CS-Fixer
  • Open PHPStorm, Preferences > Tools > External Tools and enter these values: img
  • Program, edit to match your path where PHP-CS-Fixer lives: /.composer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer
  • Parameters: --rules=@PSR2 --verbose fix $FileDir$/$FileName$. Note that previous verions of PHP-CS-Fixer used --levels instead of --rules.
  • Working directory: $ProjectFileDir$

Click OK and Apply. Now we'll set up a shortcut.

  • Go to Preferences > Keymap and search for "PHP Fixer" (or whatever name you gave it). Add whatever shortcut you like, I'm using ctrl + cmd + ]:
@arg2009
arg2009 / bash-colors.md
Created March 10, 2025 03:56 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@arg2009
arg2009 / bash_strict_mode.md
Created February 24, 2025 00:06 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@arg2009
arg2009 / docker-compose.yaml
Last active July 27, 2023 03:58
pgAdmin Docker Compose file for local development
version: '3'
services:
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password

Keybase proof

I hereby claim:

  • I am arg2009 on github.
  • I am rubenfunai (https://keybase.io/rubenfunai) on keybase.
  • I have a public key ASCaVw9RidGPudFtmfqD13_K2c9TesOMI8Gimh_HlaWEKwo

To claim this, I am signing this object: