Skip to content

Instantly share code, notes, and snippets.

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

agusmakmun

🏠
Working from home
View GitHub Profile

Toko Sembako LAMIDI, menyediakan:

Produk

Kebutuhan Pokok Herbal Lainnya
Beras Air Zam-zam Aneka Sabun & Samphoo
Gas LPG Kopi Radix Aneka Jajan
Bensin/Pertalite Odol Radix Aneka Minuman
Dedak Minyak Zaitun Aneka Bumbu dapur
@agusmakmun
agusmakmun / gist:6bef2e4b4d86141b7bb248c01fa94604
Created July 24, 2019 13:58 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
# Microphone Realtime background noise reduction script
# author Luigi Maselli - https://grigio.org licence: AS-IS
# credits: http://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio
# run as: sudo && pulseaudio -k
# wget -qO - https://gist.github.com/adrianolsk/bfa32f3227dc674eff72a2008f6c0316 | sudo bash && pulseaudio -k
sudo cp /etc/pulse/default.pa /etc/pulse/default.pa.bak
sudo cat <<EOT >> /etc/pulse/default.pa
load-module module-echo-cancel source_name=noechosource sink_name=noechosink
import os
import glob
import time
import hashlib
import tempfile
user_ssl_path = 'aditya/ssl'
userdata = glob.glob('/home/agaust/%s/*' % user_ssl_path)
userdata.sort(key=os.path.getmtime)
  1. Selebgram (berpotensi mengumbar aurat)
  2. Bitcoin (gharar)
  3. Dropship (tidak boleh menjual barang yg belum dimiliki)
  4. Crack & Hack (mencuri)
  5. Jasa Asuransi (riba)
  6. Credit Card (riba)
  7. Paytren (riba)
  8. Gambling & Togel (jelas haram)
  9. Film (berpotensi mengumbar aurat & mencuri)
  10. Gaming (tidak bermanfaat)
import re
import os
file = open("/home/agaust/rsa.txt")
key_start = re.compile("-----BEGIN RSA PRIVATE KEY-----")
key_end = re.compile("-----END RSA PRIVATE KEY-----")
def re_range(f, key_start, key_end) :
for line in f:
@agusmakmun
agusmakmun / format-angka-rupiah.py
Last active March 16, 2019 01:26
Format angka menjadi uang rupiah
def as_rupiah(uang):
"""
return a number as rupiah.
eg: 2000000 => 2.000.000
"""
if uang is None:
return 'Rp. 0'
return 'Rp. {0:,}'.format(uang).replace(',', '.')
"""
# Maximum Upload Image
# 2.5MB - 2621440
# 5MB - 5242880
# 10MB - 10485760
# 20MB - 20971520
# 50MB - 5242880
# 100MB 104857600
# 250MB - 214958080
# 500MB - 429916160
pakar = ['s', 'w', 'w', 'w', 's', 's', 'w', 's', 'w', 's', 's', 's', 'w', 's', 's', 'w', 's', 'w', 'w', 's', 's', 's', 'w', 's', 's', 'w', 's', 's', 'w', 's', 'w', 's', 'w', 'w', 's', 'w', 's', 'w', 's', 'w', 'w', 'w', 's', 's', 's', 'w', 'w', 's', 's', 'w', 'w', 'w', 's', 's', 'w', 's', 's', 's', 'w', 'w', 'w', 'w', 'w', 's', 's', 'w', 's', 's', 'w', 's', 's', 'w', 's', 'w', 'w', 's', 'w', 's', 's', 's', 's', 'w', 's', 's', 's', 's', 's', 's', 's', 's', 'w', 's', 'w', 'w', 's', 'w', 's', 'w', 'w', 'w', 's', 'w', 's', 's', 'w', 's', 'w', 'w', 'w', 's', 'w', 's', 'w', 's', 's', 'w', 'w', 'w', 's', 's', 'w', 's', 's', 's', 's', 's', 'w', 'w', 'w', 's', 'w', 's', 'w', 'w', 'w', 'w', 's', 's', 't', 't', 't', 't', 't', 't', 't', 'o', 'o', 'o', 't', 'o', 't', 'o', 't', 't', 't', 't', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 't', 't', 'o', 'o', 'o', 't', 't', 't', 't', 'o', 'o', 't', 't', 'o', 'o', 't', 'o', 'o', 't', 't', 't', 'o', 'o', 'o', 'o', 't', 't', 't', 'o', 'o', 'o', 'o', 'o', 't', 'o', 't', 't', 't', 't',