Navigation Menu

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;

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

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

@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
@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/
**/
@TaylorJadin
TaylorJadin / gtmetrix
Last active August 30, 2022 18:16
Submit multiple URLS to gtmetrix using their API
#!/bin/bash
# Config
GTMETRIX_API_KEY=
SLEEP_TIME=5
# Functions
function submit_test {
curl -s -u $GTMETRIX_API_KEY: \
-X POST -H Content-Type:application/vnd.api+json \
@TaylorJadin
TaylorJadin / docker-compose.yml
Last active July 12, 2022 05:42
docker compose for nextcloud
version: '3.3'
services:
app:
image: nextcloud
restart: always
ports:
- '8080:80'
volumes:
- 'nextcloud:/var/www/html'
volumes: