Skip to content

Instantly share code, notes, and snippets.

View guangrei's full-sized avatar
💭
I may be slow to respond.

Am K guangrei

💭
I may be slow to respond.
View GitHub Profile
@guangrei
guangrei / upload.sh
Last active February 8, 2021 09:07
bash upload
curl https://bashupload.com/grei/file.zip --data-binary @file.zip
#!/bin/bash
KEYS=$1
CMDS=$2
if [ $# -eq 0 ] ; then
echo "No arguments supplied"
echo "Usage: command KEY CMD"
exit 1
fi
@guangrei
guangrei / q.lua
Created February 20, 2022 12:39
Qlua Helper
--[[this is simple script to help interpreted .lua file directly, run luarocks and luarocks admin in Qlua.
author: guangrei
--]]
require "android"
c = android.dialogGetInput("Qlua Helper!", "Please Choice:\n1.interpreted .lua file directly\n2.run luarocks command\n3.run luarocks-admin command")
command = {"/data/data/com.quseit.qlua5pro2/files/bin/lua5","/data/data/com.quseit.qlua5pro2/files/bin/lua5 /data/data/com.quseit.qlua5pro2/files/bin/luarocks","/data/data/com.quseit.qlua5pro2/files/bin/lua5 /data/data/com.quseit.qlua5pro2/files/bin/luarocks-admin"}
if tonumber(c.result) == 1
then
i = android.dialogGetInput("Qlua Helper!", "please enter .lua file location")
else
@guangrei
guangrei / change_db_password.py
Created September 15, 2023 02:15
script untuk mengganti password pada MariaDB
# -*-coding:utf8;-*-
import subprocess
"""
script untuk mengubah password MariaDB pada xampp docker.
ganti root@123 dengan password yang diinginkan dan tidak mudah ditebak!
author: guangrei
"""
@guangrei
guangrei / holiday.go
Last active December 24, 2023 08:04
pengecekan hari libur dengan golang dan api hari libur v2
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func holiday(date string) (string, error) {