Skip to content

Instantly share code, notes, and snippets.

View akane10's full-sized avatar

Yapie Rosyadie akane10

View GitHub Profile

Register SW

 navigator.serviceWorker
        .register('sw.js', { scope: '.' })
        .then(function (registration) {
          console.log('Service worker registered successfully');
        })
        .catch(function (e) {
          console.error('Error during service worker registration:', e);
        });
@akane10
akane10 / InstallCertbot.md
Last active July 20, 2020 09:03
How To Secure Nginx with Let's Encrypt on Ubuntu

Original Source

- Installing Certbot

$ sudo add-apt-repository ppa:certbot/certbot

$ sudo apt install python-certbot-nginx

- Confirming Nginx’s Configuration

$ sudo nano /etc/nginx/sites-available/example.com

@akane10
akane10 / DaftarProvinsiKota.json
Last active April 5, 2020 02:44
Daftar provinsi - kota Indonesia
{
"Aceh": [
"Kabupaten Aceh Barat",
"Kabupaten Aceh Barat Daya",
"Kabupaten Aceh Besar",
"Kabupaten Aceh Jaya",
"Kabupaten Aceh Selatan",
"Kabupaten Aceh Singkil",
"Kabupaten Aceh Tamiang",
"Kabupaten Aceh Tengah",
// inherit-compose.js
// Inheritance vs Composition
//INHERITANCE
// Character > Human > Sam
// Character > Robot > x73
// Character > Cyborg > Dolph
const Character = {
talk: function(...msg){
@akane10
akane10 / composing.software.md
Created March 3, 2019 14:46 — forked from frankfaustino/composing.software.md
Eric Elliot: Composing Software Series

Eric Elliott: Composing Software

@akane10
akane10 / nodejs-cheatsheet.js
Created March 3, 2019 14:45 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@akane10
akane10 / ssh.md
Created March 3, 2019 14:43 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@akane10
akane10 / composing-software.md
Created March 3, 2019 11:56 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series