Skip to content

Instantly share code, notes, and snippets.

View ahmadrosid's full-sized avatar
🚀
On

ahmadrosid ahmadrosid

🚀
On
View GitHub Profile
@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:

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

# 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
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"' \
@ahmadrosid
ahmadrosid / Dockerfile
Created January 15, 2024 04:22
Mayan edms 4.5.8 dockerfile
# 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

Setup slider catpcha

First link assets to public/index.html

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"
integrity="sha512-5A8nwdMOWrSz20fDsjczgUidUBR8liPYU+WymTZP1lmY9G6Oc7HlZv156XqnsgNUzTyMefFTcsFH/tnJE/+xBg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href='%PUBLIC_URL%/captcha.css' rel='stylesheet'>
<script src="%PUBLIC_URL%/slidercaptcha.js"></script>
This file has been truncated, but you can view the full file.
@ahmadrosid
ahmadrosid / README.md
Created August 27, 2023 10:25
Vite react shadcn header menu base.

Header component basic for vite with react and typescript project.

Requirement

  • generouted
  • lucide-react
  • ui.shadcn.com
As a prompt generator for a generative AI called Midjourney, you will create image prompts for the AI to visualize. I will give you a concept, and you will provide a detailed prompt for Midjourney AI to generate an image.

Please adhere to the structure and formatting below, and follow these guidelines:

- Do not use the words "description" or ":" in any form.
- Do not place a comma between [ar] and [v].  
- Write each prompt in one line without using return.

Structure:

Setup supabase pgvector:

More information on Supabase vector column here

Enable pgvector extensions:

  1. Go to the Database page in the Dashboard.
  2. Click on Extensions in the sidebar.
  3. Search for "vector" and enable the extension.