This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FORGE CONFIG (DO NOT REMOVE!) | |
include forge-conf/www.example.com/before/*; | |
server { | |
location /admin { | |
allow 123.456.789.001; # your ip here | |
deny all; | |
try_files $uri $uri/ /index.php?$query_string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
table_schema as `Database`, | |
table_name AS `Table`, | |
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` | |
FROM information_schema.TABLES | |
ORDER BY (data_length + index_length) DESC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.shh/config | |
# Defaults for all hosts | |
Host * | |
UseKeychain yes | |
AddKeysToAgent yes | |
Host github.com | |
IdentityFile ~/.ssh/id_github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FORGE CONFIG (DO NOT REMOVE!) | |
include forge-conf/oldsite.com/before/*; | |
server { | |
http2 on; | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name oldsite.com; | |
server_tokens off; | |
root /home/forge/oldsite.com/public; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@layer base { | |
:root { | |
--tw-prose-body: var(--color-gray-900); | |
--tw-prose-headings: var(--color-brand-blue); | |
--tw-prose-lead: var(--color-gray-900); | |
--tw-prose-links: var(--color-brand-cyan-a11y-any); | |
--tw-prose-bold: var(--tw-prose-body); | |
--tw-prose-counters: var(--tw-prose-body); | |
--tw-prose-bullets: var(--color-brand-gold); | |
--tw-prose-hr: var(--color-gray-400); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | |
"vcs": { | |
"enabled": false, | |
"clientKind": "git", | |
"useIgnoreFile": false | |
}, | |
"files": { | |
"ignoreUnknown": false, | |
"ignore": [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# Non-blocking Web Fonts - check to ensure display:swap is also used #} | |
{% if getenv('ADOBE_FONTS_URL') %} | |
<link rel="preconnect" href="https://use.typekit.net" crossorigin> | |
<link rel="preconnect" href="https://p.typekit.net" crossorigin> | |
<link rel="preload" href="{{ getenv('ADOBE_FONTS_URL') }}" as="style"> | |
<link rel="stylesheet" href="{{ getenv('ADOBE_FONTS_URL') }}" media="print" onload="this.media = 'all'" /> | |
<noscript> | |
<link rel="stylesheet" href="{{ getenv('ADOBE_FONTS_URL') }}"> | |
</noscript> | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Look up DNS records in Terminal - dig or nslookup | |
$ dig example.com ANY | |
$ host example.com | |
$ nslookup -type=any example.com | |
$ nslookup -type=A example.com | |
$ nslookup -type=CNAME example.com | |
$ nslookup -type=TXT example.com | |
$ nslookup -type=MX example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this script from the project root: | |
# Usage: deploy.sh <branch-name:string> [build-assets=true] | |
# Example - Deploy staging (with assets building by default): `bash ./deploy.sh staging` | |
# Example - Deploy main without building assets: `bash ./deploy.sh main false` | |
# Check if a branch name argument is provided | |
if [ $# -eq 0 ]; then | |
echo "Error: Branch name argument is required" |
NewerOlder