Skip to content

Instantly share code, notes, and snippets.

View syntaqx's full-sized avatar
🤷
¯\_(ツ)_/¯

Chase Pierce syntaqx

🤷
¯\_(ツ)_/¯
View GitHub Profile
@syntaqx
syntaqx / evolution.md
Created February 9, 2025 23:49
Developer Evolution: From View Source to AI-Driven Development (1995 - Present)

Developer Evolution: From View Source to AI-Driven Development (1995 - Present)

This list is not comprehensive and I'd love to add more points, but it's just a look at how dev tools evolve, reinvent old ideas, and build on the shoulders of giants.

🌍 1995-1999: The Wild West of the Web

  • 1995: Netscape Navigator vs. Internet Explorer 1.0 kicks off the first browser war.
  • 1995: JavaScript (LiveScript) debuts in Netscape 2.0. Everyone laughs at it, then it takes over.
  • 1996: CSS1 is introduced, but we still style with <font> tags and <table> layouts.
  • 1997: View Source is our only debugging tool. Firebug and DevTools don't exist yet.
@syntaqx
syntaqx / 1.md
Last active December 2, 2024 05:40
How to Set Up Your Existing Heroku App for Docker Deployment

Setting Up Your Heroku App for Docker-Based Deployment

Follow these instructions to prepare your Heroku app for Docker-based deployment.


Step 1: Open Your Terminal and Navigate to Your Code

  • Open a terminal.
  • Move into your project directory. For example:
@syntaqx
syntaqx / create-secret.sh
Created July 2, 2024 20:00
Script to create secrets on my personal API
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 <secret_value>"
exit 1
}
# Check if a secret value is provided
if [ -z "$1" ]; then
@syntaqx
syntaqx / Dockerfile
Last active June 18, 2024 03:43
Simple Node Docker w/ Compose
FROM node:latest
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
@syntaqx
syntaqx / compose.yml
Last active February 14, 2024 20:58
DynamoDB Locally
services:
app:
image: amazon/aws-cli
ports:
- "8080"
environment:
AWS_ACCESS_KEY_ID: 'DUMMYIDEXAMPLE'
AWS_SECRET_ACCESS_KEY: 'DUMMYEXAMPLEKEY'
AWS_DEFAULT_REGION: 'us-east-1'
INSERT INTO customers (name, email, created_by)
VALUES ('John Doe', '[email protected]', ROW('namespace1', '12345'));
@syntaqx
syntaqx / urn.sql
Created November 8, 2023 20:51
URNs in Postgres
SELECT
id,
CONCAT('urn:aptive:customer:', id::text) as urn
FROM customers
LIMIT 5000
SELECT
id as id_int,
CONCAT('urn:aptive:customer:', i::text) as id_urn
FROM customers
fail_on_severity: 'low'
license-check: true
vulnerability-check: true
# You do not need Legal approval to use code licensed under these licenses, for
# any use case.
allow_licenses:
- oAFL-1.1
- oAFL-1.2
- oAFL-2.0
<?php
$unknown_format = [
'2023/05/02',
'05/02/2023',
];
foreach ($unknown_format as $fmt) {
echo date("Y-m-d", strtotime($fmt)) . PHP_EOL;
}