Skip to content

Instantly share code, notes, and snippets.

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

Chase Pierce syntaqx

🤷
¯\_(ツ)_/¯
View GitHub Profile
@syntaqx
syntaqx / pslam.yml
Last active January 27, 2023 22:54
name: Psalm Static Analysis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
actions: read
Chase Pierce
:flag-ua: 12:38 PM
<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;
final class TechByteTest extends TestCase
{
public function testTodaysPresentation(): void
{
@syntaqx
syntaqx / Dockerfile
Last active August 2, 2022 20:38
Node 18 Optimized Docker
FROM node:18 AS development
RUN apt-get update && apt-get install -y openssl
WORKDIR /usr/src/app
COPY --chown=node:node package.json package-lock.json ./
RUN npm ci
@syntaqx
syntaqx / Dockerfile
Created July 27, 2022 18:23
Work in PHP 7.4 easier
FROM php:7.4
RUN apt-get update && apt-get install -y git unzip
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
WORKDIR /app
openapi: 3.0.1
info:
title: Users & Organizations API
version: 1.0.0
servers:
- url: https://api.entrata.io/users/v1
- url: http://api.entrata.io/users/v1
tags:
- name: organizations
- name: user
@syntaqx
syntaqx / example.conf
Created July 1, 2022 03:31
Using envsubst for dynamic apache configurations
<VirtualHost *:80>
ServerName $APP_SERVER_NAME
ServerAlias www.$APP_SERVER_NAME
ServerAdmin [email protected]
DocumentRoot /var/www/
</VirtualHost>
@syntaqx
syntaqx / file_access.conf
Created June 24, 2022 20:07
/etc/apache2/security
# ----------------------------------------------------------------------
# | File access |
# ----------------------------------------------------------------------
# Block access to directories without a default document.
#
# You should leave the following uncommented, as you shouldn't allow anyone to
# surf through every directory on your server (which may include rather
# private places such as the CMS's directories).
@syntaqx
syntaqx / main.yml
Last active November 24, 2021 04:07
Airflow CI & CD
name: CI
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
@syntaqx
syntaqx / Dockerfile
Last active October 12, 2021 21:04
WIP PHP Dockerfile
FROM php:7.3-fpm
ENV TZ=America/Denver
RUN rm /etc/localtime && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN add-apt-repository ppa:libreoffice/ppa
RUN apt-get update && apt-get install -y \
libreoffice \
libpq-dev \