Skip to content

Instantly share code, notes, and snippets.

View dylan-k's full-sized avatar

Dylan Kinnett dylan-k

View GitHub Profile
@dylan-k
dylan-k / latex.template
Created April 1, 2022 13:39 — forked from michaelt/latex.template
Template for Pandoc LaTeX File
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
@dylan-k
dylan-k / contract-template.md
Last active April 1, 2022 13:37 — forked from malarkey/Contract Killer 3.md
Template for Contract

The contract

Between [company name]

And [customer name]

Summary

I will always do my best to fulfill your needs and meet your expectations, but it's important to have things written down so that we both know what's what, who should do what and when, and what will happen if something goes wrong.

@dylan-k
dylan-k / README-Template.md
Last active April 1, 2022 13:37 — forked from PurpleBooth/README-Template.md
Template for README file

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running.

@dylan-k
dylan-k / 00-vim-keys.md
Last active November 16, 2022 16:55
Make Vim Use "Normal" Keyboard Shortcuts

Make Vim use Normal Keyboard Shortcuts

All my life I've used VXCZ keys for paste, cut, copy, undo. To me, that's what's "normal." There's a name for that style of key bindings. They're called Common User Access, or CUA.

I'd like to use vim as the text editor for the very fast writing laptop I'm putting together. My goal is startup speed with low resource usage, and vim has got that. I'm just getting started and there's a lot to learn...

But, no, thank you, I don't want to learn all-new keyboard shortcuts, because my goal is speed and learning them will slow me down and worse, it'll frustrate me, and besides I don't need to learn that right now. (I'll wait while some computer fundamentalists contain their emotions or depart.)

I'm not against learning new shortcuts gradually over time, and I'm also not against taking some time to set it up so I don't have to, at least not at first, perhaps not ever. After all, aren't we supposed to be able to customi

@dylan-k
dylan-k / barebones-ubuntu.md
Created November 9, 2021 18:28
Very Minimal Barebones Ubuntu 20.04 with i3 Window Manager

INSTALLING A BAREBONES UBUNTU

This is an configuration for an old laptop. The goal here is to make a "writing machine" so I can go from "zero to writing" in as few seconds as possible. It's a learning-as-I go project. Suggestions welcome.

Requirements:

  • fastest possible startup
  • auto login
You only need to install xorg and lightdm if you have installed Ubuntu Minimal.
If you installed a regullar Ubuntu desktop, just skip to the i3-gaps section.
xorg
====
# Xorg provides a base for a graphical environment
sudo apt install xorg
lightdm
# daylog opener
# run this at startup to have notes ready
FILE=~/Journal/_posts/$(date +%Y)-$(date +%m)_DAYLOG.txt
MONTH=$(date '+%Y-%m')
DATE=$(date '+%a %Y-%m-%d %l:%M %P')
echo "$FILE"
if test -f "$FILE"; then
@dylan-k
dylan-k / wordpress-fix-permissions.sh
Last active October 20, 2021 18:26 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# Source for this script: http://www.conigliaro.org/script-to-configure-proper-wordpress-permissions/
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
# To use this script, supply the full path to your wordpress directory
# That directory is often in /var/www, and the wordpress directory is frequently named 'wordpress'
# The example below operates on /var/www/wordpress directory
#
# sudo sh ./fix-wordpress-permissions.sh /var/www/wordpress
@dylan-k
dylan-k / git-clearHistory
Created September 19, 2019 20:39 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git