Skip to content

Instantly share code, notes, and snippets.

View ahmadrosid's full-sized avatar
🚀
On

ahmadrosid ahmadrosid

🚀
On
View GitHub Profile
@ahmadrosid
ahmadrosid / google-trend.js
Created November 15, 2024 17:40
Get google trend using selenium scripts.
const {Builder, By, Key, until} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const options = new chrome.Options();
// Add headless mode configurations
options.addArguments('--headless'); // Run in headless mode
options.addArguments('--disable-gpu'); // Disable GPU hardware acceleration
options.addArguments('--no-sandbox'); // Bypass OS security model
options.addArguments('--disable-dev-shm-usage'); // Overcome limited resource problems

Menjawab pertanyaan dari group telegram ngooding

Untuk bisa jalankan project laravel di dalam subfolder laravel yg berjalan ada yg tau ?

Disini saya coba mau akses subdomain.domain.id/v2 untuk akses project latest nya.

Sudah coba2 atur Vhost Nginx masih belum berhasil. Siapa tau temen2 ada yg pernah mencoba.

Terimakasih

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
@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

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
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: [
@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:

@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 / 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