Skip to content

Instantly share code, notes, and snippets.

View husniadil's full-sized avatar
😄

Husni Adil Makmur husniadil

😄
View GitHub Profile
@husniadil
husniadil / main.go
Last active January 23, 2021 18:00
Hack The Box: Emdee five for life
package main
import (
"crypto/md5"
"fmt"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/url"
"strings"
@husniadil
husniadil / main.go
Created January 23, 2021 17:59
Hack The Box: Phonebook
package main
import (
"errors"
"fmt"
"net/http"
"net/url"
)
// Solve https://app.hackthebox.eu/challenges/153
@husniadil
husniadil / extract-6969.sh
Created January 24, 2021 15:09
Hack The Box: Eternal Loop
#!/bin/bash
set -e
# Solve https://app.hackthebox.eu/challenges/56
# Eternal Loop
# Can you find a way out of this loop?
# Usage: ./solve.sh
# crack last zip file
@husniadil
husniadil / README.md
Last active September 6, 2024 13:35
Proxmox LXC Docker Backup and Restore

Proxmox Docker Volume Backup and Restore Script

This script performs backup and restore operations for Docker volumes within Proxmox LXC containers.

Requirements

  • Ensure that sshpass is installed. For installation instructions, visit: Cyberciti: SSH Password Provider.
  • Root login with a password must be enabled on the Proxmox host. Follow these steps:
    1. Edit the /etc/ssh/sshd_config file and apply the following configuration settings:
      • ListenAddress 0.0.0.0

BCA Time Deposit Calculator

This project provides a Python class for calculating returns on BCA time deposits.

Features

  • Calculates interest earned, tax, and total amount based on principal, period, and current interest rates.
  • Handles different interest rates for varying deposit amounts and periods.
  • Provides a function to determine the required principal to achieve a target interest after tax.
  • Formats numbers with thousand separators for better readability.
@husniadil
husniadil / cursor-vs-windsurf-vs-cline.md
Created January 28, 2025 10:49
AI Coding Platform Pricing Analysis by DeepSeek-R1

AI Coding Platform Pricing Analysis by DeepSeek-R1

AI Coding Pricing Plans

1. Windsurf Plan ($15/month)

  • Premium Model Access:
    • 500 credits/month for Anthropic Claude Sonnet 3.5 (1 credit per query).
  • Flow Action Credits:
    • 1,500 credits/month for IDE tasks (Create, Modify, Analyze, Search, Terminal).
  • Usage: 1 credit per tool call.

ChatGPT - Advanced Conversational AI by OpenAI

Contact Information


Summary

@husniadil
husniadil / README.md
Last active February 19, 2025 03:44
Run Cursor Composer from Terminal

This is how to run Cursor Composer from Terminal

image

Save this into a file, e.g.: cursor_prompt.scpt using Apple's Script Editor.

on run argv
	if (count of argv) is 0 then
		return
	end if
@husniadil
husniadil / product-owner-request.md
Last active February 19, 2025 17:34
Recipe Remix - Created by three collaborating agents, powered by Google Gemini Pro 2.0 Experimental.

I envision a web application called "Recipe Remix" that allows users to input a list of ingredients they have on hand and receive recipe suggestions that utilize those ingredients, minimizing food waste and inspiring creativity in the kitchen. It's for home cooks of all skill levels who want to reduce food waste, save money, and discover new recipes based on what they already have. This app helps users make the most of their existing groceries, reduce their environmental impact, and avoid the "what should I cook tonight?" dilemma.

@husniadil
husniadil / umar-bakri.md
Created April 9, 2025 07:09
GPT-4o Image Generation

Create a landscape ratio image of two collectible figure boxes in isometric view, part of the “Legendary Educator Series – Limited Edition”, with an educational theme centered around SDN 1 KONOHA.

  • The first box features the figure “Umar Bakri”, styled as a classic Indonesian male teacher from SDN 1 KONOHA, wearing a batik shirt, black trousers, and a black peci. Accessories include glasses, a watch, and a book. The figure is displayed beside the box in the same pose as shown on the packaging, rendered in photorealistic style.
  • The second box contains a vintage sepeda onthel bicycle, also shown outside the box as a demo, styled to match the figure.

Position both boxes side by side in the scene. The demo figure should be posed riding the sepeda onthel, creating a unified and dynamic collector display. Add subtle educational motifs to both boxes — chalkboard elements, school icons, and handwritten notes — and include the name “SDN 1 KONOHA” as part of the packaging design. Prominently display a “Limited Edit