Skip to content

Instantly share code, notes, and snippets.

View fhyfirman's full-sized avatar

Firman fhyfirman

  • HungryHub
View GitHub Profile
@fhyfirman
fhyfirman / list_email_templates.rb
Created September 3, 2024 10:18
Ruby Script for List All Matching Pattern Files
require 'find'
# Define the directory to search
directory_to_search = 'app/views'
# Define the pattern to match files
file_pattern = /.*_th\.html\.erb$/
# Define the output file
output_file = 'email_templates_th.txt'
@fhyfirman
fhyfirman / swagger.io
Last active May 7, 2024 09:38
Swagger
---
openapi: 3.0.1
info:
title: API V1
version: v1
paths:
"/api/v1/restaurants/{restaurant_id}/category_menus":
get:
summary: Retrieves a All Category Menu
tags: