Skip to content

Instantly share code, notes, and snippets.

@aklinker1
aklinker1 / play-books-epub-fixer.sh
Last active September 12, 2022 02:20
Script to fix EPUBs when uploading to Google Play Books and you get the "Processing Failed" error
#!/bin/bash
# Usage:
#
# bash play-books-epub-fixer.sh "./path/to/book.epub"
#
# This will rename the original epub to "./path/to/book_original.epub". You must have calibre installed for this to work:
#
# apt get calibre
#
# The EPUB is fixed in 3 steps:
@aklinker1
aklinker1 / create-mc-server.sh
Created July 31, 2021 20:53
Create Minecraft Server
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
# Create user if needed
id -u minecraft &> /dev/null
if [ $? -eq 1 ]; then
echo "Initial setup"
@aklinker1
aklinker1 / .eslintrc.yml
Last active October 14, 2021 23:20
ESLint Setup
root: true
parser: vue-eslint-parser
parserOptions:
parser: '@typescript-eslint/parser'
sourceType: module
plugins:
- '@typescript-eslint'
- only-warn
extends:
- eslint:recommended
@aklinker1
aklinker1 / .prettierrc.yml
Last active February 5, 2023 15:26
Standard Prettier Setup
singleQuote: true
trailingComma: all
endOfLine: lf
printWidth: 80
tabWidth: 2
vueIndentScriptAndStyle: false
# ~/.oh-my-zsh/custom/themes/aklinker1.zsh-theme
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[white]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
PROMPT='%{$fg_bold[green]%}%n%{$reset_color%}:%{$fg_bold[blue]%}/%1~%{$reset_color%}$(git_prompt_info)%{$reset_color%} $ '
# Oh My ZSH Config
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="aklinker1"
HYPHEN_INSENSITIVE="true"
DISABLE_UPDATE_PROMPT="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
source $ZSH/oh-my-zsh.sh
# Custom Syntax Highlighting colors