Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

agusmakmun

🏠
Working from home
Block or report user

Report or block agusmakmun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Lamidi Store.md

Toko LAMIDI, menyediakan:

Produk

  • Beras
  • Dedak
  • Sentrat
  • Gas LPG
  • Pertalite
  • Herbal (HPA)
View gist:6bef2e4b4d86141b7bb248c01fa94604
<!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>
View fix-microphone-background-noise.sh
# 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
View autoremove-new-hash.py
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)
View proyek-haram.md
  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)
View django-email-configuration.md
View rsa.py
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 Mar 16, 2019
Format angka menjadi uang rupiah
View format-angka-rupiah.py
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(',', '.')
"""
View basic-file-upload-validation.txt
# Maximum Upload Image
# 2.5MB - 2621440
# 5MB - 5242880
# 10MB - 10485760
# 20MB - 20971520
# 50MB - 5242880
# 100MB 104857600
# 250MB - 214958080
# 500MB - 429916160
View swot-result.py
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',
You can’t perform that action at this time.