Skip to content

Instantly share code, notes, and snippets.

View jdecode's full-sized avatar
🦾
Automate and Chill

Jagdeep Singh Kalsi jdecode

🦾
Automate and Chill
View GitHub Profile
@jdecode
jdecode / key-steps.md
Created April 10, 2024 18:39
Laravel + Statamic + Blogo + SSG

Laravel (10.x, at the time of writing this)

Statamic:

  • composer.json
"post-autoload-dump": [
    "@php artisan statamic:install --ansi"
],
@jdecode
jdecode / uncle-bob-expecting-professionalism.md
Last active March 31, 2024 16:45
Uncle Bob - Expecting professionalism
@jdecode
jdecode / Postgres-CLI-commands.md
Last active March 19, 2024 07:36
psql-cli.md

Informational (options: S = show system objects, + = additional detail)

  \d[S+]                 list tables, views, and sequences
  \d[S+]  NAME           describe table, view, sequence, or index
  \da[S]  [PATTERN]      list aggregates
  \dA[+]  [PATTERN]      list access methods
  \dAc[+] [AMPTRN [TYPEPTRN]]  list operator classes
  \dAf[+] [AMPTRN [TYPEPTRN]]  list operator families
  \dAo[+] [AMPTRN [OPFPTRN]]   list operators of operator families
@jdecode
jdecode / dockerfile-for-php80-rc2-mysql-postgres.md
Last active February 28, 2024 09:11
Dockerfile for PHP 8.0 RC2 with MySQL and Postgres support
@jdecode
jdecode / platform-docs.md
Created February 8, 2024 07:20
beta-version

Laravel Boilerplate [LBP] Docs

User Profile API

  1. Get Profile

    • Endpoint: GET /profile
    • Description: Retrieves the profile of the authenticated user.
    • Response: Returns a JSON object containing the user's profile information. The structure includes 'id', 'first_name', 'last_name', 'email', and 'email_verified_at'.
  2. Update Profile

@jdecode
jdecode / aws-s3-and-iam-policies.md
Last active January 17, 2024 11:45
S3 and IAM policy and configuration setup

Following is the CORS configuration that goes under Bucket > Permissions

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedHeader>*</AllowedHeader>
@jdecode
jdecode / dockerfile-notes.md
Created November 11, 2023 19:41
Dockerfiles

jdecode/devops:php8.2.11

  • PHP 8.2.11 + Postman CLI

jdecode/devops:php8.2.11-n20p / jdecode/devops:php8.2.11-n20

  • PHP 8.2.11 + Postman CLI + Node 20.x
@jdecode
jdecode / postman-setup.md
Created October 31, 2023 06:01
Postman setup

Postman setup instructions

Account sign-up

  1. Using founder's email (like fnl_dev@product.com) or project account email (like project_admin@founderandlightning.com)
  2. Add Founder's credit card to the account
  3. Rename the "My Workspace" to "Product/Project Personal Workspace"
  4. Create a new workspace (Team Workspace, not Personal Workspace) - labelled "API Workspace" (or something appropriate)
  5. Create a new team, and add project members with "Developer" level access (without "Billing/Admin" access)
  6. Copy over the collections from the platform APIs (ci, dev, and qa collections) and have those setup in the Postman - update the required collection variables
@jdecode
jdecode / upgrade-google-chrome.md
Created September 28, 2023 06:29
Upgrade Chrome in Ubuntu

sudo apt update

sudo apt --only-upgrade install google-chrome-stable