Skip to content

Instantly share code, notes, and snippets.

@Ketrel
Ketrel / relBase.html
Last active June 2, 2024 21:25
Relative url base for jekyll
{% assign relBase = '' %}
{% assign tempDepth = page.url | append: 'hackish-solution' | split: '/' | size | minus: 2 %}
{% for i in (1..tempDepth) %}
{% assign relBase = relBase | append: "../" %}
{% endfor %}
{% if relBase == '' %}
{% assign relBase = './' %}
{% endif %}
@Ketrel
Ketrel / Wardrobe.lua
Created July 10, 2021 03:58
Corrected Wardrobe.lua for V3.4.2
-- ///////////////////////////////////////////////////////////////////////////////////////////
--
-- Better Wardrobe and Collection
-- Author: SLOKnightfall
-- Wardrobe and Collection: Adds additional functionality and sets to the transmog and collection areas
--
--
@Ketrel
Ketrel / .customize_prompt
Last active February 12, 2018 22:08
Bash Prompt File
#!/bin/bash
p_checkRoot(){
if [ $(id -u) -eq 0 ]; then
return 0
fi
return 1
}
p_colorSetup(){
case "$TERM" in
*color*)
@Ketrel
Ketrel / sshcon.sh
Created January 28, 2018 16:56
SSH Connect Shortcut
#!/bin/sh
e="\033"
clu(){
if [ ! -z ${1} ] && [ $(tput colors) -ge 8 ]; then
printf "${e}[${1}m"
fi
}
prog=""
default="server"
pathmod="/local"
@Ketrel
Ketrel / checkSubStr.sh
Created January 23, 2018 17:36
posix substring check
checkSubStr(){
if [ ! -z "${1}" ] && [ -z "${1%%*${2}*}" ]; then
return 0
else
return 1
fi
}
@Ketrel
Ketrel / .tmux.conf
Last active January 19, 2018 18:31
Default tmux config
# Setup Window Titles
set set-titles on
set set-titles-string '#W (#h)'
# Setup Status
set status-bg colour31
set status-fg colour16
#set status-position top
# Change Window Split Keys
@Ketrel
Ketrel / installDocker.sh
Last active January 8, 2018 20:51
Debian Docker install with compose
#!/bin/sh
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
@Ketrel
Ketrel / .nanorc
Created August 30, 2017 13:50
Default .nanorc file I use
set tabstospaces
set tabsize 4
set const