Skip to content

Instantly share code, notes, and snippets.

View codybrom's full-sized avatar

Cody Bromley codybrom

View GitHub Profile
@bpmarkowitz
bpmarkowitz / ContentView.swift
Created April 3, 2024 16:09
Simple Swift UI Video Player
//
// ContentView.swift
//
// Created by Ben Markowitz
//
import SwiftUI
import AVKit
struct ContentView: View {
@AndrewKvalheim
AndrewKvalheim / mastodon-notes.md
Last active February 9, 2024 18:30
Notes on running a personal Mastodon instance

Personal Mastodon instance

Effective total cost: $3–5/mo

Setup

Decide on an EC2 instance type:

  1. At AWS Console → EC2 → Instance Types, filter for ≥1 GB RAM and sort by price.
  • t4g.micro is lowest.
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@eric1234
eric1234 / README.md
Last active May 2, 2024 08:26
Protect page with simple password

Purpose

Unauthorized access to a PHP page prompts the user for a password. Once the password is entered the original page will show.

Features

  • The access is recorded in the session so it only needs to be