Skip to content

Instantly share code, notes, and snippets.

@srtvprateek
srtvprateek / DemoApplication.kt
Last active August 11, 2022 20:32
pluto-application-install-plugins
fun onCreate() {
....
Pluto.Installer(this)
.addPlugin(PlutoNetworkPlugin("network")) // network plugin
.addPlugin(PlutoExceptionsPlugin("exceptions")) // exceptions plugin
.addPlugin(PlutoLoggerPlugin("logger")) // logger plugin
.addPlugin(PlutoSharePreferencesPlugin("sharedPref")) // shared preference plugin
.addPlugin(PlutoRoomsDatabasePlugin("rooms-db")) // rooms database plugin
.addPlugin(PlutoDatastorePreferencesPlugin("datastore")) // datastore preferences plugin
.install()
@srtvprateek
srtvprateek / setup_letsencrypt.sh
Last active November 21, 2020 18:57
Setting SSL with LetsEncrypt & KONG, refer https://gist.github.com/srtvprateek/417ed0b2e1790389f1fdfe12dcebcccf before this
#!/bin/sh
### Please refer https://gist.github.com/srtvprateek/417ed0b2e1790389f1fdfe12dcebcccf
### to setup node and KONG before proceeding
## install GIT
sudo apt update && sudo apt upgrade
sudo apt-get install git
## download LetsEncrypt
@srtvprateek
srtvprateek / node_kong_setup.sh
Last active March 18, 2024 10:38
Setting up Node.js server with KONG
#!/bin/sh
## install nodejs on your EC2 instance
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install -y nodejs
## verify installation by checking nodejs & npm versions
nodejs -v