Skip to content

Instantly share code, notes, and snippets.

View akvsh-r's full-sized avatar
🙀
Building cat army to conquer the world!

Akash R akvsh-r

🙀
Building cat army to conquer the world!
View GitHub Profile
@akvsh-r
akvsh-r / podforceupdate.sh
Created March 18, 2018 09:49 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
@akvsh-r
akvsh-r / index.js
Created April 11, 2018 20:30 — forked from loic-moriame/index.js
node.js + sequelize + sqlite
'use strict';
var Sequelize = require('sequelize');
var sequelize = new Sequelize('mainDB', null, null, {
dialect: "sqlite",
storage: './test.sqlite',
});
sequelize
@akvsh-r
akvsh-r / nodejs-tcp-example.js
Created August 26, 2018 13:39 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');