Skip to content

Instantly share code, notes, and snippets.

View Khuirul-Huda's full-sized avatar
:octocat:
Studying

Muhammad Khuirul Huda Khuirul-Huda

:octocat:
Studying
  • Semarang, Central Java, Indonesia
  • 12:31 (UTC +07:00)
  • X @khuirul_huda
View GitHub Profile
@Khuirul-Huda
Khuirul-Huda / Selenium in google colab, crawling SPA pages using Selenium and BeautifulSoup.ipynb
Last active March 5, 2025 01:00
Selenium in google colab, crawling SPA pages using Selenium and BeautifulSoup
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def sieve_of_eratosthenes(limit):
print("Masukkan batas bilangan yang diuji:")
if limit < 2:
return []
# Step 6: Coret angka 0 dan 1
bilangan = [True] * (limit + 1)
bilangan[0] = bilangan[1] = False
# Step 8: Mulai dari p = 2
@Khuirul-Huda
Khuirul-Huda / convert-systemd-unit-to-runit.sh
Created December 31, 2025 04:05
convert-systemd-unit-to-runit.sh
#!/bin/bash
# Configuration
SYSD_DIR="/usr/lib/systemd/system"
RUNIT_DIR="/etc/sv"
SERVICE_DIR="/etc/service"
# Ensure we are root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"