Skip to content

Instantly share code, notes, and snippets.

View matthewpaulking's full-sized avatar

Matt King 🌵 matthewpaulking

View GitHub Profile
@conradfuhrman
conradfuhrman / herd-reverb-ssl.md
Last active December 30, 2024 17:31
Laravel Herd, SSL, and Reverb with Herd

Currently validated through Herd 1.9.1. Last Updated August 7th, 2024

There are a few options to get Herd/Reverb working with SSL & across your local network among other devices:

  • Use a dedicated reverb domain (reverb.test)
  • Integrate it into your existing domain (mynewcoolsite.test)
  • Open it up to your local Network.

Use a Dedicated Reverb Domain

The biggest issue with Herd Pro is that you cannot use Reverb out of the box with a site that has SSL enabled. Here is the workaround for it all to play nicely together.

Seven different types of CSS attribute selectors
// This attribute exists on the element
[value]
// This attribute has a specific value of cool
[value='cool']
// This attribute value contains the word cool somewhere in it
[value*='cool']
@bbqtd
bbqtd / macos-tmux-256color.md
Last active April 24, 2025 11:52
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

@brambow
brambow / postgis-to-geojson-feature-collection.sql
Last active April 25, 2023 15:44
PostGIS query to build a GeoJSON FeatureCollection
SELECT json_build_object(
'type', 'FeatureCollection',
'crs', json_build_object(
'type', 'name',
'properties', json_build_object(
'name', 'EPSG:4326'
)
),
'features', json_agg(
json_build_object(
@wch
wch / rowwise.Rmd
Last active February 28, 2023 03:35
---
title: "Applying a function over rows of a data frame"
author: "Winston Chang"
output: html_document
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
@clhenrick
clhenrick / README.md
Last active March 3, 2025 23:02
PostgreSQL & PostGIS cheatsheet (a work in progress)
@staltz
staltz / introrx.md
Last active April 24, 2025 06:10
The introduction to Reactive Programming you've been missing
@scaryguy
scaryguy / change_primary_key.md
Last active February 4, 2025 02:09
How to change PRIMARY KEY of an existing PostgreSQL table?
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of  your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;