Skip to content

Instantly share code, notes, and snippets.

View dimasahmad's full-sized avatar

Dimas Putra dimasahmad

View GitHub Profile
@dimasahmad
dimasahmad / sql.py
Created November 18, 2021 09:24
sql.py
from flask import request
# ?location=Bandung&gender=male
filter_by = {"location": "Bandung", "gender": "male"}
where = []
for f, v in filter_by.items():
if f == "location":
where.append("location LIKE '%{}% ".format(v))
@dimasahmad
dimasahmad / auth-access-denied.txt
Last active October 15, 2020 05:55
Dapodik Webservice Response Examples
Access denied - You are not authorized to access this page. #1
@dimasahmad
dimasahmad / angka-acak.md
Created October 14, 2020 08:44
Contoh algoritma
0   pilih nomor favorit Anda dari 1 hingga 50 secara rahasia
1   minta teman Anda menebak nomor favorit Anda
2   jika teman Anda menebak angka yang lebih rendah
3      beri tahu teman Anda untuk menebak angka yang lebih tinggi
4      kembali ke baris 1
5   lain jika teman Anda menebak angka yang lebih tinggi
6      beri tahu teman Anda untuk menebak angka yang lebih rendah
7      kembali ke baris 1
8 lain
@dimasahmad
dimasahmad / Caddyfile
Last active July 22, 2022 05:15
Install Caddy 2 on Ubuntu
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
:80
reverse_proxy 10.100.100.1:80
DAPODIK 2020
http://dapo.dikdasmen.kemdikbud.go.id/files/app/Dapodik_2020.exe
https://www84.zippyshare.com/v/1zuhuMji/file.html
https://www.solidfiles.com/v/VBqBkQDkBnGvB
https://letsupload.co/kbez
https://userscloud.com/vpglpaft138b
https://www.elephant-ads.com/LP_TA/index.cfm?T=436192
https://openload.co/f/V7oVjLMLMbM/Dapodik_2020.exe
https://ddl.to/ubq4ian3lua8
https://megaup.net/5vG7B
#!/usr/local/env bash
# wget -O - https://gist.githubusercontent.com/dimasahmad/457c7c9887485807e15a4976ab44ff83/raw/c422a64d7906deea6988de66001f90eb915b635a/softether-installer.sh | bash
# How to...
# 1. Save this file as softether-installer.sh
# 2. chmod +x softether-installer.sh
# 3. Run bash file
# > ./softether-installer.sh
# Or just