Skip to content

Instantly share code, notes, and snippets.

View ardzz's full-sized avatar
🏠
Working from home

Naufal Reky Ardhana ardzz

🏠
Working from home
  • Politeknik Negeri Semarang
  • Semarang
View GitHub Profile
import random
from rich.prompt import Prompt
from rich.table import Table
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from rich import console, table
@erikkinding
erikkinding / kafka-local-docker-compose.yaml
Last active April 1, 2025 12:53
Docker compose for local Kafka setup with kafka-ui
# This setup allows you to both connect from within the docker-compose context as well as from services running on your local
# machine but not as part of the docker-compose setup. Any client connecting to the broker from the outside can connect to
# localhost:9092 while services running as part of the docker-compose connect to broker:9093.
#
# To access kafka-ui: http://localhost:7777
#
# I hope this helps someone out there! :)
version: '3'
networks:
@ardzz
ardzz / phpdocs_facade_generator.php
Last active March 15, 2024 18:23
PHPDocs facades laravel generator
<?php
/**
* Class FacadePHPDocs
*
* @author Ardhana <[email protected]>
*/
class FacadePHPDocs{
/**
* @var ReflectionClass
@freekmurze
freekmurze / action.yaml
Created May 8, 2020 21:00
Run psalm on GitHub Actions
name: Psalm
on:
push:
paths:
- '**.php'
- 'psalm.xml'
jobs:
psalm:
@giovanni-d
giovanni-d / allinonemigration.md
Last active April 16, 2025 10:53
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

All-in-One WP Migration Restore From Server (without pro version)

If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, open your browser’s dev tools and run the code below in the console:

Last confirmed working: March 2025 on version 7.91

Thanks @xxxdepy, and @tanveeratlogicx for confirming this still works in version 7.91!

@miguelmota
miguelmota / util.php
Last active July 31, 2024 09:14
PHP byte array to hex, hex to byte array, string to hex, hex to string utility functions
<?php
function string2ByteArray($string) {
return unpack('C*', $string);
}
function byteArray2String($byteArray) {
$chars = array_map("chr", $byteArray);
return join($chars);
}
@resarahadian
resarahadian / BufferReader.java
Created November 6, 2012 16:45
Contoh Input dengan BufferedReader
/*
* BufferReader.java
*
* Copyright 2012 resa cr <resa@resa cr>
*
* This program is free software; you can redistribute it and/or modify
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;