Skip to content

Instantly share code, notes, and snippets.

View SpiZeak's full-sized avatar

Max SpiZeak

View GitHub Profile
/* Comment Class */
.mtk3 {
font-family: 'Monaspace Radon', monospace;
}
.mtki.mtkb.mtku.mtks {
font-family: 'Monaspace Xenon', monospace;
font-weight: 300;
font-style: normal;
text-decoration: none;
@SpiZeak
SpiZeak / minecraft
Created June 23, 2020 21:31
A script for controlling a minecraft server
#!/bin/bash
# Author: Max Trewhitt <[email protected]>
# Template: https://natelandau.com/boilerplate-shell-script-template/
# Description: A script for controlling a minecraft server
# Config
FILENAME=Paper-latest.jar
SERVER_PATH=/home/mc-server
SERVER_DOWNLOAD_URL=https://yivesmirror.com/files/paper/$FILENAME
@SpiZeak
SpiZeak / deploy.sh
Created May 7, 2020 07:11
A bash deploy script for safe Wordpress deployments
#
# Author: Max Trewhitt - Osolo
# Description: A safe deployment routine script
#
ROOT_FOLDER=example.com
THEME=example_theme
# Stop script on error signal
set -e
@SpiZeak
SpiZeak / search.php
Last active February 24, 2021 03:26
Search filter for wordpress
<?php
/**
* [list_searcheable_acf list all the custom fields we want to include in our search query]
* @return [array] [list of custom fields]
*/
function list_searcheable_acf(){
$list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF");
return $list_searcheable_acf;
}
@SpiZeak
SpiZeak / svn2git.sh
Last active May 14, 2020 12:32 — forked from mlocati/svn2git.sh
Convert SVN repository to GIT
#!/bin/bash
# This script was written for Ubuntu 14.04 and 16.04
# Other operating systems may need a few changes
WORK_DIR=~/svn2git
AUTHORS_FILE=$WORK_DIR/authors.txt
GITDIR_DIRTY=$WORK_DIR/dirty
GITDIR_FINAL=$WORK_DIR/final