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 / ssh-sni-proxy-command.py
Last active February 13, 2025 13:47
ssh-sni-proxy-command.py ported to Python3
#!/usr/bin/env python
# HTTP Host header for SSH through use of ProxyCommand
# Copyright (C) 2016 Kasper Dupont
# 2025/02/13 Python 3 ported version by Faiz Jazadi
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation version 3.
@lc-at
lc-at / p0f.py
Created January 24, 2025 08:00
Simple p0f client in Python
import ipaddress
import pathlib
import socket
import sys
QUERY_MAGIC = 0x50304601.to_bytes(4, byteorder=sys.byteorder)
RESPONSE_MAGIC = 0x50304602.to_bytes(4, byteorder=sys.byteorder)
STATUS_BADQUERY = 0x00.to_bytes(4, byteorder=sys.byteorder)
STATUS_OK = 0x10.to_bytes(4, byteorder=sys.byteorder)
@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 February 13, 2025 02:53
Lirik Jingle Family Mart Lengkap 100%
// Transcribed manually from
// https://www.youtube.com/watch?v=GpUhmUVvD9Y
// Enjoy ;)
// UPDATE: 2025-02-13: They also have the lyrics here https://x.com/FamilyMart_ID/status/1752210891142291560
Hai kawan-kawan
Mari bekerja membangun bersama FamilyMart
Suka dan duka ada di FamilyMart
Semua keluarga 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 $@ $<