Skip to content

Instantly share code, notes, and snippets.

View lc-at's full-sized avatar
🧀
eating cheese

Faiz Jazadi lc-at

🧀
eating cheese
View GitHub Profile
@lc-at
lc-at / index.html
Created February 17, 2024 17:34
colortable: simple tool to help convert a color theme or anything that can be done by converting colors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>colortable</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1/new.min.css"
/>
@lc-at
lc-at / jingle-family-mart.txt
Last active October 9, 2024 10:57
Lirik Jingle Family Mart Lengkap 100%
// Transcribed manually from
// https://www.youtube.com/watch?v=GpUhmUVvD9Y
// Enjoy ;)
Hai kawan-kawan
Mari bekerja membangun bersama FamilyMart
Suka dan duka ada di FamilyMart
Semua keluarga kita
Mari menyapa pelanggan kita
@lc-at
lc-at / ektp_image_reader.py
Last active November 1, 2023 02:45
Read E-KTP image using PN532
"""
Author: Faiz J <[email protected]>
Date: 2023-11-01
Another proof of concept of a CompactByte blog article
https://blog.compactbyte.com/2018/06/10/membedah-e-ktp/
To run this script successfully, you must connect a PN532 reader to the USB
port of your computer using a USB-to-TTL converter (I use CH340). Enjoy!
"""
@lc-at
lc-at / monerowin.py
Created January 23, 2023 13:26
Simulate monero.win winning probability
# Test how profitable is monero.win
# it's not :/
import random
import time
balance = 0.1
bet_size = 0.01
profit_per_bet = 0.009
@lc-at
lc-at / auto_edom.py
Created January 19, 2023 07:41
auto-edom -- automatically fill your lecturer evaluation questionnaires on SIMASTER UGM
"""
auto-edom -- automatically fill your lecturer evaluation questionnaires
on SIMASTER UGM
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2023 Faiz Jazadi <[email protected]>
@lc-at
lc-at / main.py
Last active July 1, 2022 10:27
notigrade: a watchdog for SIMASTER KHS page
import re
import logging
import sys
import time
import requests
from simaster import get_simaster_session
KHS_URL = 'https://simaster.ugm.ac.id/akademik/mhs_khs/view'
@lc-at
lc-at / README.md
Last active June 3, 2022 15:10
DarkenLINE: a dark mode css hack for LINE (Chrome extension version)

DarkenLINE

A simple Python script designed to invert the color scheme of the LINE app (Chrome extension version). It basically does the following things:

  • Read the contents of the current line_chrome.min.css
  • Invert all colors contained in rgba(..., ..., ...) and #...... (only invert if luminosity > 40)
  • Add an additional CSS at the top
  • Print the output to stdout
@lc-at
lc-at / Makefile
Last active October 11, 2021 17:44
Praktikum Pemrograman I: Tugas dan Kuis 6
CC = g++
CFLAGS = -Wall
PROGS = $(patsubst %.cpp, %, $(wildcard *.cpp))
default: $(PROGS)
%: %.o
$(CC) -o $@ $<
@lc-at
lc-at / main.py
Last active June 27, 2020 05:39
Score scraper: e-Rapor Direktorat PSMA Kemdikbud
"""
Usage: python main.py <semester identifier> <student national id list file>
Semester identifier consists of year + period (even or odd, 1 or 2)
File list.txt contains student nasional identifiers separated by newline character
Example: python main.py 20192 list.txt
This script has these possible output formats:
TOTAL_SCORE,STUDENT_ID,NAME (not sorted, no exception)
0,STUDENT_ID,EXCEPTION (not sorted, with exception)
@lc-at
lc-at / mux.py
Created January 7, 2020 11:29
pymux: run multiple services in one port (connection multiplexer)
import select
import socket
import socketserver
__author__ = 'loncat <[email protected]>'
services = [
{
'name': 'ssh',
'address': ('127.0.0.1', 22),