Skip to content

Instantly share code, notes, and snippets.

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

Angga Lanuma lanuma

🏠
Working from home
View GitHub Profile
0x011f89Bd75ac698e37b3faca8Dd0EB0b9a52ee54
{
"id": "070356ef-7499-11ec-afbd-0afd511c093b",
"name": "KLY_Happy_5Photos",
"duration": 59.25,
"thumb": "https:\/\/assets.moovly.com\/uploads\/images\/thumbnails_f768c7c7-7484-11ec-afbd-0afd511c093b.png?t=1642121203",
"preview": "https:\/\/renders.moovly.com\/moov753e9601-74d3-11ec-afbd-0afd511c093b88110video.mp4",
"original_moov_id": "efb5c0cd-9428-40aa-84fc-2ff8ccf7a607",
"original_project_id": "efb5c0cd-9428-40aa-84fc-2ff8ccf7a607",
"public": false,
"category": null,
#!/bin/bash
DEST=/root/backup/databases
CURRDATE=$(date +"%F")
HOSTNAME=$(hostname)
USER="root"
PASS="$(cat /root/backup/pass)"
@lanuma
lanuma / whmcs_id.php
Last active July 18, 2021 13:36
Whmcs Bahasa Indonesia
<?php
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_LANG['locale'] = "id_ID";
$_LANG['accountinfo'] = "Informasi Akun";
$_LANG['accountstats'] = "Statistik Akun";
$_LANG['addfunds'] = "Tambah Saldo";
$_LANG['addfundsamount'] = "Saldo Yang Ditambahkan";
@lanuma
lanuma / my.cnf
Created January 23, 2021 15:11 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated January 2020 ~
#
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
#generate dhparam
openssl dhparam -out /etc/nginx/ssl/dhparam-2048.pem 2048
@lanuma
lanuma / publisher.py
Created August 5, 2020 15:16
Learn redsi pubsub with python
import redis
import time
alice_r = redis.Redis(db=0)
alice_r.pubsub()
i = 0
while True:
print(f"publishing {i}")
alice_r.publish('tespubsub', f'Data => {i}')

Keybase proof

I hereby claim:

  • I am lanuma on github.
  • I am lanuma (https://keybase.io/lanuma) on keybase.
  • I have a public key ASBBwxQJexuhDuBDpvx_vA09KjWgZhHyvULmQ35DWuJJlQo

To claim this, I am signing this object:

<IfModule mod_expires.c>
ExpiresActive On
# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"

Keybase proof

I hereby claim:

  • I am lanuma on github.
  • I am lanuma (https://keybase.io/lanuma) on keybase.
  • I have a public key ASBIMrtz_5elXjaK1nw6gs078-OFpQ5akSh4cjGjr661Hgo

To claim this, I am signing this object: