Skip to content

Instantly share code, notes, and snippets.

@jhahspu
jhahspu / start.md
Last active February 8, 2025 15:28
Supabase
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"log"
	"net/http"
@jhahspu
jhahspu / local.md
Last active January 13, 2025 09:30
Redis
docker run -d --name CONTAINER_NAME -p 6379:6379 -e REDIS_PASSWORD=SecureString redis
REDIS_CONN=rediss://default:SecureString@localhost:6379
@jhahspu
jhahspu / code-editor-rules.md
Created January 9, 2025 06:09 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@jhahspu
jhahspu / extensions.md
Last active July 13, 2024 12:19
vsCode
  • prettier

  • live server

  • gistpad

  • htmx

  • hugo

  • tailwindcss

  • thunder

  • rest client

@jhahspu
jhahspu / q.md
Last active August 16, 2024 18:34
QII

SalesDeliveryNotes?customer__code[eq]=CODE&sort=date[dsc]&fetch=1 CustomerPricing?customer=CODE&products=CODE,CODE,CODE Products?fetch=10&offset=0

@jhahspu
jhahspu / cloud_init.md
Last active May 31, 2024 08:18
cloudCfg
#cloud-config
users:
  - name: USERNAME
    ssh_authorized_keys:
      - "ssh-ed25519 SSH_KEY PUB"
    sudo: ALL=(ALL:ALL) ALL
    groups: sudo
    shell: /bin/bash
chpasswd:
@jhahspu
jhahspu / next14.md
Last active April 12, 2024 09:19
Next

‎‎​

@jhahspu
jhahspu / old.md
Last active February 2, 2025 20:22
Strapi
// let existingProd = await strapi.db.query("api::product.product").findOne({
//   where: {iiqID: product.iiqID},
// })

// if (existingProd) {
//   await strapi.db.query('api::product.product').update({
//     where: { iiqID: product.iiqID },
//     data: {...product},
//   })

brightlocal

Home page

The Home Page is by far the most important page on a website. It usually carries the most weight in SEO as well. Search engines will want to know what the business name is, where it’s located and, what the business does. You can teach the search engines this information by using Organization Schema.

<script type="application/ld+json">
{
@jhahspu
jhahspu / daisyui.md
Last active August 16, 2023 11:55
tailwindcss

Setup

yarn add daisyui

// tailwind.config.js
module.exports = {
  //...
  plugins: [require("daisyui")],
}