Skip to content

Instantly share code, notes, and snippets.

View lepiku's full-sized avatar
🏠
Working from home

Muhammad Oktoluqman Fakhrianto lepiku

🏠
Working from home
  • Indonesia
  • 13:47 (UTC +07:00)
View GitHub Profile
@lepiku
lepiku / ping.py
Last active July 7, 2020 10:24
Ping a server (example google) to check for internet consistency. (for windows only)
import subprocess
from time import sleep
hostname = "74.125.24.106"
host_desc = "Google"
amount = 10
time_unstable = 40
time_very_unstable = 100
time_missing = 1000
@lepiku
lepiku / default
Last active December 1, 2019 09:57
Load Balancer Settings
# /etc/nginx/sites-enabled/default
# Django load balancing
#
upstream django_server {
server localhost:9000;
server localhost:8000;
}
# Default server configuration
@lepiku
lepiku / !test-sda-tp4.md
Last active December 10, 2019 13:17
Autorun Alghi Testcases

Cannot run in CMD, run it on GIT BASH or LINUX/MAC terminal

  • Download alghi testcases from here.
  • Download the test: testcases.bash
  • Put all tests, testcases.bash, and the '.java' file in the same folder.
  • Run the test: In Linux/Mac terminal or git bash:
    bash testcases.bash
  • The diff shows if something is different:\
@lepiku
lepiku / !amfm-week-2.md
Last active November 5, 2019 12:29
AM/FM week 2

AM/FM Week 2

Outline

  • Pengenalan git
    • Install git
    • Command-command di CMD
    • Command-command di git
  • Pengenalan django
@lepiku
lepiku / !TUTORIEL.md
Last active April 28, 2024 08:18
Setup Awal project django

Membuat Website dengan Django

Dibuat oleh M. Oktoluqman F.
Melanjutkan Story 3

Your First Project

  • Buat folder project (misalkan diberi nama story). Akan muncul folder kosong bernama story. Lalu masuk ke folder baru tersebut.
@lepiku
lepiku / ppw.md
Created September 14, 2019 10:57
Catatan PPW

PPW

Week 1

Definisi

  • HTTP amplop.
  • URI alamat (url lebih spesifik dari URI)
  • HTML bahasa
  • Browser alat mengirim request dan menerima request