Skip to content

Instantly share code, notes, and snippets.

View TaylorJadin's full-sized avatar

Taylor Jadin TaylorJadin

View GitHub Profile
@TaylorJadin
TaylorJadin / nginx.conf
Created December 18, 2023 05:06
rollforcheese.com nginx.conf
user nginx;
worker_processes auto;
worker_rlimit_nofile 2048;
load_module modules/ngx_stream_module.so;
#load_module modules/ngx_http_modsecurity_module.so;
error_log /var/log/nginx/error_log info;
events {
worker_connections 2048;
@TaylorJadin
TaylorJadin / backup.sh
Last active December 18, 2023 04:52
backup script
#!/bin/bash
TARGET="/root/foundry"
DESTINATION="/root/backups"
BACKUPS_TO_KEEP=20
NOW=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
slow() {
start=`date +%s`
tar -cvJf "$DESTINATION/$NOW.tar.xz" $TARGET

Domains Camp - Building a site with WordPress

Now that you've installed WordPress and logged in, we can get started building your site!

After logging in to WordPress, you will be greeted with your site's Dashboard. We'll be checking out the several parts of the Dashboard, but the first thing to pay attention to is the Home icon at the top left. Clicking on this will exit the Dashboard and bring you to the public home page of your site. To return to the Dashboard, click the Speedometer icon .

Posts

Posts in WordPress are the core of what make up a blog, they of course can let you write and put other content on a webpage, but they also display metadata about themselves, like when they were written, who the author was, and what category they belong to. We'll get started building our website by makin

Demo document

This lets me write some text.

Side-by-side mode is the best!

Hedgedoc is a markdown editor

Hedgedoc is a self-hostable tool...

All about markdown

@TaylorJadin
TaylorJadin / isitwp.sh
Last active October 4, 2023 19:15
isitwp?
#!/bin/bash
# Colors
INVALID='\033[0;31m'
WP='\033[0;34m'
NOWP='\033[0;33m'
NC='\033[0m'
for URL in "$@"
do
@TaylorJadin
TaylorJadin / composer.json
Created September 26, 2023 20:24
basic pressbooks composer.json
{
"require": {
"pressbooks/pressbooks": "*",
"pressbooks/pressbooks-aldine": "*",
"pressbooks/pressbooks-book": "*",
"pressbooks/pressbooks-clarke": "*",
"pressbooks/pressbooks-donham": "*",
"pressbooks/pressbooks-jacobs": "*"
},
"config": {
@TaylorJadin
TaylorJadin / open-close-obs.applescript
Created July 12, 2023 16:27
Open (or Close) OBS and hide the window
set appname to "OBS"
if application appName is running then
log appName & " is already running"
do shell script "killall OBS"
else
do shell script "open -a /Applications/OBS.app --args --startvirtualcam"
delay 3
tell application "System Events"
repeat until visible of process appname is false
set visible of process appname to false
#!/bin/bash
#
# Uses ffmpeg to stabilize video. Give the script one or more files and it will do its thing.
#
# Needs an ffmpeg binary compiled with support for vidstab, you can find that at the site if this script doesn't work:
# https://www.johnvansickle.com/ffmpeg/
#
# More info / based on:
# https://www.imakewebsites.ca/posts/2018/02/17/stabilizing-gopro-video-with-ffmpeg-and-vid.stab/
# https://rainnic.altervista.org/en/how-stabilize-video-using-ffmpeg-and-vidstab?language_content_entity=en
@TaylorJadin
TaylorJadin / checkboxes.html
Last active January 10, 2023 16:20
checboxes with saved states
<div class="checkbox-list">
<p>
<input type="checkbox" class="save-cb-state" name="unique-name-1" value="no">
</p>
</div>
<script src="https://code.jquery.com/jquery.js"></script>
<script>
// Avoid scoping issues by encapsulating code inside anonymous function
@TaylorJadin
TaylorJadin / plugin.php
Created October 21, 2022 16:48
WordPress Plugin starter
<?php
/**
* Plugin Name: My neato plugin
* Plugin URI: https://github.com/TaylorJadin/tiny-wordpress-plugins
* Description: This plugin does things, probably.
* Version: 1.0
* Author: Taylor Jadin
* Author URI: https://jadin.me/
**/