Skip to content

Instantly share code, notes, and snippets.

View ahmadrosid's full-sized avatar
🔥
On fire

ahmadrosid ahmadrosid

🔥
On fire
View GitHub Profile
curl 'https://api.rumbia.id/cpm/customersvc/api/v1/investor/step-profile/personal-data' \
-X 'PUT' \
-H 'authority: api.rumbia.id' \
-H 'accept: application/json, text/plain, /' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vY3BtLWFjY291bnQtc2VydmljZS5ydW1iaWEuaWQvYXBpL3YxL2xvZ2luIiwiaWF0IjoxNzA1MzA4MjMzLCJleHAiOjE3MDUzMTE4MzMsIm5iZiI6MTcwNTMwODIzMywianRpIjoiZlpMdWppcWVpYTZic0E1MyIsInN1YiI6IjE4OSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjciLCJuYW1lIjoiQmFybiBEZXciLCJpZCI6MTg5LCJlbWFpbCI6ImJhcm5kZXczQG1haWwuY29tIiwicm9sZV9pZCI6MywiaW52ZXN0b3JfaWQiOjE4OSwicm9sZXMiOlsiY3BtX2N1c3RvbWVyIl0sInBlcm1pc3Npb24iOltdfQ.1tJrQvgRTCPI8-aRUCiPJKOelLpVvgkjjEMIKgjgXV0' \
-H 'content-type: application/json' \
-H 'origin: https://phb.rumbia.id' \
-H 'referer: https://phb.rumbia.id/' \
-H 'sec-ch-ua: "Not_A Brand";v="8", "Chromium";v="120", "Microsoft Edge";v="120"' \
# syntax=docker/dockerfile:1.2
# vim:set ft=dockerfile:
####
# base_image - Bare bones image with the base packages needed to run
# Mayan EDMS.
####
FROM debian:12.2-slim as base_image

Title: So far so good! Body: I literally just received my glow serum (and the ginseng cleansing oil). After a two hour commute from work. I was so happy to wash my face and get my cozy velour onesie on! So I used the cleansing oil- it has no scent and felt nice. Then I applied the serum and WOW! It feels so dreamy! My skin is loving it, I can almost feel it thanking me. Now you may think- you can’t really tell after one application. And on some levels you are correct- only time will tell if it improves anything. But if you have thirsty skin like I do and live in a dry climate like LA, you can tell how hydrating a product is almost immediately. Most moisturizers dry up- either my skin drinks it all up or it doesn’t stand up to the climate and my needs. I can already tell this is very hydrating and has created a a lovely, smooth barrier on my skin. I’ll come back and add to this after a couple of weeks, but let me just say I try SO MANY moisturizers in search of the holy grail. I even bought Dermalogica inten

@ahmadrosid
ahmadrosid / read_into_one_file.py
Last active February 28, 2024 07:52
Read entire folder file and append into one file, currently for python file only. This is good to feed LLM to talk with your code.
import os
def write_directory_structure(directory, file, ignore_folders, indent=""):
for item in os.listdir(directory):
item_path = os.path.join(directory, item)
if os.path.isdir(item_path):
if item not in ignore_folders:
file.write(indent + "|-- " + item + "/\n")
write_directory_structure(item_path, file, ignore_folders, indent + "| ")
else:
@ahmadrosid
ahmadrosid / write-fixer.py
Created April 17, 2024 10:02
Fixed typos, spelling mistakes, and grammar while maintaining clarity and a concise tone using Claude.
import sys
import anthropic
from dotenv import load_dotenv
load_dotenv()
client = anthropic.Anthropic()
prompt_template = """
Please review and edit the following text to ensure it is grammatically correct, clear, and concise. Aim to maintain a casual tone without being overly informal. Provide suggestions for improvement and explain any changes you make. Do not add double quotes in you rewrite answer. Answer in direct response.
@ahmadrosid
ahmadrosid / README.md
Last active May 12, 2024 13:35
Create your own github copilot.

Place your prompt in the ./prompts folder.

Install python dependencies:

pip install -r requirements.txt

Usage:

import OpenAI from "openai";

const openai = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

const response = await openai.chat.completions.create({
  model: "gpt-3.5-turbo",
 messages: [
curl --request POST \
  --url https://api.firecrawl.dev/v0/scrape \
  --header 'Authorization: Bearer fc-xxx' \
  --header 'Content-Type: application/json' \
  --data '{
	"url": "https://lwn.net/Articles/976822/",
	"pageOptions": {
		"includeHtml": true,
 "onlyMainContent": false
@ahmadrosid
ahmadrosid / Better Laravel Jetstream Team Invitations.md
Created August 1, 2024 11:08
Better Laravel Jetstream Team Invitations

Source: https://mariogiancini.com/making-laravel-jetstream-team-invitations-better

Making Laravel Jetstream Team Invitations Better | Mario Giancini

Tags: UX, PHP, Laravel, Code

Jetstream is a powerful package for Laravel that allows you to create a Team-based experience (Jetstream Teams) for your new web application. I've used it in several projects and the latest version 2.x has added a number of improvements that I appreciate.

The Problem With Team Invitations

JavaScript/TypeScript Stack vs Laravel Ecosystem Comparison

Laravel Ecosystem JS/TS Equivalent or Potential Solution
1. Breeze Could be implemented with Remix templates
2. Cashier Potential for a custom solution using Stripe/Paddle APIs
3. Dusk Playwright or Cypress for E2E testing
4. Echo Socket.io or custom WebSocket solution
5. Envoyer CI/CD tools like GitHub Actions or custom scripts
6. Forge Cloud platforms like Vercel, Netlify, or custom server management