Skip to content

Instantly share code, notes, and snippets.

View dearteno's full-sized avatar

Pichate Ins dearteno

View GitHub Profile
@dearteno
dearteno / ai_agent_wp.md
Created June 27, 2025 07:06
AI Agent Insctructions to Make Blogs

WordPress Clone - AI Agent Instructions

Project Overview

Build a production-grade WordPress clone with modern architecture:

  • Frontend: Next.js 14+ with App Router, shadcn/ui, Tailwind CSS
  • Backend: Ruby on Rails API-only application
  • Database: Supabase PostgreSQL
  • Authentication: Supabase Auth
  • Storage: Supabase Storage
  • Deployment: Vercel (Frontend) + Railway/Render (Backend)
พาย ไฟ ได - Pie Fire Dire
โจทย์คือ ให้รายชื่อของเนื้อหลายชนิด ปะปนกันเช่น
Fatback t-bone t-bone, pastrami .. t-bone. pork, meatloaf jowl enim. Bresaola t-bone.
ทุกคำเป็นชื่อชนิดเนื้อทั้งหมด โดยที่ไม่ต้องสนใจ , . หรือ space
จงหารายชื่อเนื้อทั้งหมด และระบุจำนวนของเนื้อแต่ละชนิด
@dearteno
dearteno / keybase.md
Created February 15, 2020 06:48
keybase.md

Keybase proof

I hereby claim:

  • I am dearteno on github.
  • I am dearteno (https://keybase.io/dearteno) on keybase.
  • I have a public key ASBcpFLR14tSN4PyWi4S50tLfjsKYf4oF6UmEsWm2ln-5go

To claim this, I am signing this object:

jQuery("*").each(function(e,r){var a=jQuery(r);-1!=a.css("filter").search("grayscale")&&a.css("filter","grayscale(0)")});
@dearteno
dearteno / phalcon.dockerfile
Last active August 4, 2016 05:35
phalcon.dockerfile
ARG INSTALL_PHALCON=true
ENV INSTALL_PHALCON ${INSTALL_PHALCON}
WORKDIR /tmp
RUN if [ ${INSTALL_PHALCON} = true ]; then \
# Install the phalcon c extention
git clone git://github.com/phalcon/cphalcon.git && \
cd /tmp/cphalcon/build && \
./install && \
cd /tmp && \
/bin/rm -rf /tmp/cphalcon/ && \
pybot -t TC_WLSYOUSTORE_00001 -V /Users/suraches/@work/www2/qa-automate/configAlpha.yaml -V /Users/suraches/@work/www2/qa-automate/dataShopYoustoreAlpha.yaml -v BROWSER:chrome /Users/suraches/@work/www2/qa-automate/Login.txt
if (Config::get('database.log', false))
{
Event::listen('illuminate.query', function($query, $bindings, $time, $name)
{
$data = compact('bindings', 'time', 'name');
// Format binding data for sql insertion
foreach ($bindings as $i => $binding)
{
if ($binding instanceof \DateTime)
<?php namespace App\Container\Bootstrap;
use Dotenv\Dotenv;
use InvalidArgumentException;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Foundation\Bootstrap\DetectEnvironment as BaseDetectEnvironment;
class DetectEnvironment extends BaseDetectEnvironment
{
@dearteno
dearteno / Puppetfile
Created April 1, 2016 13:14
Puppetfile
forge "https://forgeapi.puppetlabs.com"
mod 'puphpet/puphpet',
:git => 'https://github.com/puphpet/puppet-puphpet.git',
:ref => 'd66c64b0b4b183bae026a2762ee7e115c8444027'
mod 'puppetlabs/stdlib',
:git => 'https://github.com/puppetlabs/puppetlabs-stdlib.git',
:ref => '4.11.0'
mod 'puppetlabs/apache',
:git => 'https://github.com/puppetlabs/puppetlabs-apache.git',
@dearteno
dearteno / gist:d09afbf126547a0b416e
Created January 23, 2015 08:37
Laravel Realtime Query
Event::listen('illuminate.query', function($query, $params, $time, $conn)
{
print_r(array($query, $params, $time, $conn));
});