Skip to content

Instantly share code, notes, and snippets.

View cvsolutions's full-sized avatar
😂
Drogato di tecnologia per passione e per lavoro! :)

Concetto Vecchio cvsolutions

😂
Drogato di tecnologia per passione e per lavoro! :)
View GitHub Profile
# Add Homebrew `/usr/local/bin` and User `~/bin` to the `$PATH`
# PATH=/usr/local/bin:/Applications/MAMP/bin/php/php7.0.0/bin:/Applications/MAMP/Library/bin:$PATH
PATH=/usr/local/bin:$PATH
PATH=$HOME/bin:$PATH
export PATH
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@cvsolutions
cvsolutions / Remove_PHPStorm old folder
Last active July 25, 2019 10:16
Remove PhpStorm2019.1 settings from Mac OS X 10.14.4 Mojave
#!/usr/bin/sh
rm -rf "$HOME/Library/Preferences/PhpStorm2019.1"
rm -rf "$HOME/Library/Caches/PhpStorm2019.1"
rm -rf "$HOME/Library/Application Support/PhpStorm2019.1"
rm -rf "$HOME/Library/Logs/PhpStorm2019.1"
@cvsolutions
cvsolutions / variables_from_PHP_to_JS
Last active August 29, 2015 14:23
How to pass variables and data from PHP to JavaScript?
<?php define('NAME', 'Pippo'); ?>
<?php $name = NAME; ?>
<script type="javascript">
<?php
echo <<<JS
var name = '{$name}';
alert(name);
JS;
?>