Skip to content

Instantly share code, notes, and snippets.

View fdjean's full-sized avatar

j fer fdjean

  • Luxembourg
View GitHub Profile
@fdjean
fdjean / sphp
Last active March 29, 2023 08:54 — forked from Rwrf9/sphp
MAMP switch php version
#!/bin/bash
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
exit 1
fi
# Usage
if [ $# -ne 1 ]; then
echo "Usage: sphp [phpversion]"
@fdjean
fdjean / gist:1e98111444ec034f6a305197c745295c
Created August 2, 2018 08:32 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@fdjean
fdjean / .babelrc
Last active February 12, 2018 09:15
nodejs + babel + build
{
"presets": ["env"]
}