Skip to content

Instantly share code, notes, and snippets.

View SpiZeak's full-sized avatar

Max Trewhitt SpiZeak

View GitHub Profile
#!/bin/bash
# A list of top domains to ensure we aren't just hitting a single cached record
DOMAINS=(
"google.com" "youtube.com" "facebook.com" "baidu.com" "yahoo.com" "amazon.com" "wikipedia.org" "google.co.in" "twitter.com" "qq.com"
"live.com" "taobao.com" "bing.com" "instagram.com" "weibo.com" "vk.com" "yandex.ru" "google.ru" "ebay.com" "reddit.com"
"google.co.uk" "google.com.br" "mail.ru" "t.co" "pinterest.com" "amazon.co.jp" "google.fr" "netflix.com" "tmall.com" "360.cn"
"google.it" "microsoft.com" "google.es" "paypal.com" "sohu.com" "wordpress.com" "tumblr.com" "blogspot.com" "imgur.com" "xvideos.com"
"apple.com" "stackoverflow.com" "github.com" "imdb.com" "google.ca" "google.co.kr" "ok.ru" "pornhub.com" "whatsapp.com" "office.com"
"rakuten.co.jp" "google.co.id" "diply.com" "amazon.de" "craigslist.org" "google.com.tr" "t.me" "uol.com.br" "google.pl" "nicovideo.jp"
/* 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 <max@trewhitt.se>
# 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