Skip to content

Instantly share code, notes, and snippets.

View amiriun's full-sized avatar

Amir Alian amiriun

  • Vienna, Austria
View GitHub Profile
FOR /F "tokens=*" %%i IN (' dir /b /A %HOMEPATH%\.PhpStorm* ') DO SET PHPSTORM_DIR=%HOMEPATH%\%%i
cd %PHPSTORM_DIR%
del config\options\other.xml
del config\eval\*.evaluation.key
reg delete "HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains\phpstorm" /f
FOR /F "tokens=*" %%i IN (' dir /b /A %APPDATA%\JetBrains\PhpStorm* ') DO SET PHPSTORM_DIR=%APPDATA%\JetBrains\%%i
cd %PHPSTORM_DIR%
del options\other.xml
del eval\*.evaluation.key
@carbontwelve
carbontwelve / usefull_commands.sh
Last active June 24, 2021 06:10
Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
# Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
php -dxdebug.remote_autostart artisan
#Running phpcs for 5.3:
phpcs -pv --standards= --runtime-set testVersion 5.3 --ignore=*/public/*,*.js,*.css,*/tests/*,*/views/training/* .
@rjmoggach
rjmoggach / responsive-margins.less
Last active August 30, 2017 00:47
Responsive Margin & Padding Shortcuts for Twitter Bootstrap Using LESS CSS
//
// Responsive Margin & Padding Shortcuts for Twitter Bootstrap 3.0
// ---------------------------------------------------------------
// This is an addition to Twitter Bootstrap that allows additional margin and padding shortcuts
// for enhanced layout control purposes. It should be included after the bootstrap.less
// import statement or precompiled as you see fit. It differs from bootstrap standards in
// that for any given screen size it predetermines the margin/padding size. All you have to
// do is specify the size you want xs,sm,md,lg, or xl. The exception is for items that you
// want to be centered using auto left/right margins. This can be device responsive by
// specifying mc-xs, mc-sm, mc-md, or mc-lg depending on when you want that behavior.