Skip to content

Instantly share code, notes, and snippets.

View vianhanif's full-sized avatar
🚀
{do} {things}

Alvian Rahman Hanif vianhanif

🚀
{do} {things}
  • Depok, Indonesia
View GitHub Profile
@vianhanif
vianhanif / gist:674cca35748ee8faeb6d31316a461ae0
Created February 15, 2017 06:19 — 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*
@vianhanif
vianhanif / Jarvis.py
Created November 4, 2016 03:52 — forked from GGulati/Jarvis.py
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()