Skip to content

Instantly share code, notes, and snippets.

View sarthakpranesh's full-sized avatar
💻
Engineering

Sarthak Pranesh sarthakpranesh

💻
Engineering
View GitHub Profile
@sarthakpranesh
sarthakpranesh / temp-to-thinkspeak.js
Last active June 27, 2019 07:46
Code for sending data to thinkspeak
var wifi = require("Wifi");
var http = require("http");
wifi.setHostname("nodeMCU-espruino");
wifi.connect(YourSSID, {password: YourPassWord}, function(err){
setTimeout(function(){
if(err !== null){
console.log("Unable to connect");
return;
}
console.log("Info: ", wifi.getIP());
@sarthakpranesh
sarthakpranesh / xcode.txt
Last active November 28, 2019 05:21
installing xcode on macOS
xcode-select --install
@sarthakpranesh
sarthakpranesh / build-ubuntu.txt
Last active November 28, 2019 05:26
Installing C compiler on Ubuntu
sudo apt-get install build-essential
sudo apt-get install libssl-dev
//If you don't have cURL then install cURL from the following command
sudo apt-get install curl
@sarthakpranesh
sarthakpranesh / nvm-cURL.txt
Created November 28, 2019 05:28
Installing NVM using cURL
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
@sarthakpranesh
sarthakpranesh / nvm-check.txt
Created November 28, 2019 05:36
Check if nvm is installed
nvm --version
@sarthakpranesh
sarthakpranesh / gist:0f975c9e4aa183dff15c15441cb449c2
Created November 28, 2019 05:48
Listing out all Node versions using NVM
nvm ls-remote
nvm install v13.2.0
@sarthakpranesh
sarthakpranesh / node-version.txt
Created November 28, 2019 06:04
Check Node version
node -v
@sarthakpranesh
sarthakpranesh / nvm-install-v12.txt
Created November 28, 2019 06:12
Just another nvm install
nvm install v12.13.1
@sarthakpranesh
sarthakpranesh / nvm-ls.txt
Created November 28, 2019 06:24
Listing out all versions on node
nvm ls