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 / 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),

Kimia

Cabang-Cabang Ilmu Kimia

  1. Kimia Analisis: mempelajari tentang analisis bahan-bahan kimia yang terdapat dalam suatu produk.
  2. Kimia Fisik: fokus kajiannya berupa penentuan energi yang menyertai terjadinya reaksi kimia, sifat fisis zat serta perubahan senyawa kimia.
  3. Kimia Organik: mempelajari bahan-bahan kimia yang terdapat dalam makhluk hidup.
  4. Kimia Anorganik: kebalikan dari kimia organik; mempelajari benda mati.
  5. Kimia Lingkungan: mempelajari tentang segala sesuatu yang terjadi di lingkungan, terutama yang berkaitan dengan pencemaran lingkungan dan cara penanggulangannya.
  6. Kimia Inti (Radiokimia): mempelajari zat-zat radioaktif.
  7. Biokimia: cabang ilmu kimia yang sangat erat kaitannya dengan ilmu biologi.
  8. Kimia Pangan: mempelajari bagaimana cara meningkatkan mutu bahan pangan.
@lc-at
lc-at / ppkn.md
Last active December 1, 2018 15:24

Kisi-Kisi UAS Ganjil PPKn Kelas X

Soal UAS Ganjil PPKn Kelas X terdiri dari bagian pilihan ganda dan bagian uraian.

Pilihan Ganda

1. Makna Pembagian Kekuasaan

Pembagian kekuasaan (divisions of power) adalah pembagian sistem kekuasaan setiap lembaga negara dalam beberapa bagian (legislatif, eksekutif, dan yudikatif), tetapi satu sama lain tidak terpisahkan. Hal ini memungkinkan terjadinya koordinasi antarlembaga negara.

2. Salah Satu Tugas Kekuasaan Horizontal yang Berkaitan dengan Uang

  • Menetapkan dan melaksanakan kebijakan moneter secara berkelanjutan, konsisten, transparan, dan harus mempertimbangkan kebijakan umum pemerintah di bidang perekonomian.
  • Mengatur dan menjaga kelancaran sistem pembayaran.
  • Mengatur dan mengawasi bank.

3. Kewenangan Presiden sebagai Kepala Negara dan Kepala Pemerintahan

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

@lc-at
lc-at / bekkonek.py
Last active July 26, 2018 13:20
bekkonek: simple reverse shell spawner
#!/usr/bin/python
from pwn import *
import random
import time
import thread
from socket import gethostbyname
try:
import readline
except:
pass