Skip to content

Instantly share code, notes, and snippets.

View MMolieleng's full-sized avatar
😃
Breaking deployment

Mohale MMolieleng

😃
Breaking deployment
View GitHub Profile
@MMolieleng
MMolieleng / .js
Created June 18, 2023 16:57
FireSMS Javascript Sample
const axios = require('axios'); //npm install axios
const options = {
method: 'POST',
url: 'https://v1.firesms.co/api/v1/send/sms',
headers: {
accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'API_KEY'
},
@MMolieleng
MMolieleng / nextjs-deploy.md
Created December 13, 2022 21:24 — forked from jjcodes78/nextjs-deploy.md
Deploying NEXTJS site with nginx + pm2

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

@MMolieleng
MMolieleng / Android Studio Tricks.md
Created September 14, 2017 19:34 — forked from arriolac/Android Studio Tricks.md
Some Android Studio Tricks.

Android Studio Notes

Android Studio keyboard shortcuts I use often.

Keyboard Shortcuts for Mac

  • SHIFT + F6 to refactor methods, classes, and variable names
  • CTRL + O to override methods
  • COMMAND + N
    • Generate getter, setter, and constructor method for a class (when in editor pane)