Skip to content

Instantly share code, notes, and snippets.

View jinsley8's full-sized avatar

Jon Insley jinsley8

View GitHub Profile
@jinsley8
jinsley8 / nixpacks.toml
Last active April 18, 2024 04:28
Use the latest version of Bun in Railway deployment (bun v1.1.3)
[phases.setup]
nixpkgsArchive = '0e2e5ebac4c621a80f14c3bb3671697e960f7faf'
@jinsley8
jinsley8 / index.html
Created May 27, 2024 20:00
SVG Line Animation
<svg width="236" height="68" viewBox="0 0 236 68" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 0.5H89C90.6569 0.5 92 1.84315 92 3.5V29C92 30.6569 93.3431 32 95 32H148.5C150.157 32 151.5 33.3431 151.5 35V64C151.5 65.6569 152.843 67 154.5 67H235.5" stroke="url(#paint0_linear)"></path><defs><linearGradient id="paint0_linear" gradientUnits="userSpaceOnUse" x1="272.78000000000065" y1="0" x2="390.99050000000085" y2="49.05000000000008"><stop stop-color="#2EB9DF" stop-opacity="0"></stop><stop stop-color="#2EB9DF"></stop><stop offset="1" stop-color="#9E00FF" stop-opacity="0"></stop></linearGradient></defs></svg>
@jinsley8
jinsley8 / framer-formspark.tsx
Last active July 27, 2024 13:24
Custom Formspark form for Framer
// Button background gradient has been hard-coded in the form below
import { addPropertyControls, ControlType, RenderTarget, withCSS } from "framer"
import { HTMLMotionProps, motion } from "framer-motion"
import * as React from "react"
import {
containerStyles,
usePadding,
useRadius,
paddingControl,
@jinsley8
jinsley8 / preload-featured.php
Last active August 1, 2024 17:12
Preload featured image in WordPress
@jinsley8
jinsley8 / disable-auto-updates.php
Last active October 18, 2024 21:09
Disable WordPress auto-updates
<?php
/*
* Plugin Name: Disable Automatic Updates
* Description: Prevents WordPress from performing automatic updates
* Author: Jon Insley
* Author URI: https://joninsley.com/
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
*/