Skip to content

Instantly share code, notes, and snippets.

View kellpossible's full-sized avatar

Luke Frisken kellpossible

View GitHub Profile
@kellpossible
kellpossible / capture_slides.sh
Last active March 20, 2024 01:05
Capture the output of https://github.com/maaslalani/slides and produce a beamer PDF presentation
#!/bin/bash
# Copyright 2023 Luke Frisken
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@kellpossible
kellpossible / Design.md
Last active February 4, 2023 02:51
Caucusus Avalanche Forecast PDF
@kellpossible
kellpossible / init.vim
Last active December 18, 2021 21:38
My neovim Config
call plug#begin()
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update
Plug 'romgrk/nvim-treesitter-context'
" Plug 'vmchale/just-vim'
Plug 'NoahTheDuke/vim-just'
" Collection of common configurations for the Nvim LSP client
Plug 'neovim/nvim-lspconfig'
@kellpossible
kellpossible / gui_abstraction.rs
Created June 6, 2021 01:28
Rust Gui Abstraction
use serde::{Serialize, Deserialize};
use std::collections::HashMap;
use core::marker::PhantomData;
#[derive(Serialize, Deserialize, PartialEq, Eq, Copy, Clone, Hash, Debug)]
struct CallbackId(u32);
impl CallbackId {
pub fn none() -> Self {
CallbackId(0)
@kellpossible
kellpossible / HP Omen Laptop 15-en0xxx.xml
Created April 25, 2021 04:59
HP Omen 15 15-en0xxx nbfc configuration
<!-- Source https://h30434.www3.hp.com/t5/Gaming-Notebooks/OMEN-15-left-fan-always-on-what-is-wrong-with-this-computer/m-p/7954432#M37985 -->
<?xml version="1.0"?>
<FanControlConfigV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NotebookModel>HP OMEN Laptop 15-en0xxx</NotebookModel>
<Author>Generatoz</Author>
<EcPollInterval>500</EcPollInterval>
<ReadWriteWords>false</ReadWriteWords>
<CriticalTemperature>100</CriticalTemperature>
<FanConfigurations>
<FanConfiguration>
@kellpossible
kellpossible / SWAP_PAUSE_ESCAPE.md
Last active October 7, 2023 08:29
xkb swap pause with delete key for HP Omen 15 2020
@kellpossible
kellpossible / mumc-snow-safety-presentation.md
Created May 13, 2019 04:59
Presentation about snow safety for MUMC

Snow Safety Presentation

Hypothermia

Mum will cover that topic.

Ice

  • Bigger concern than avalanches. Has killed more people.
@kellpossible
kellpossible / git-ac
Created May 7, 2019 06:23
A git script to make commits with messages prepended with issue number extracted from the current branch name.
#!/bin/sh
# A git script to make commits with messages prepended with issue number
# extracted from the current branch name.
# Config Values
ISSUE_TRACKER_URL="http://your-issue-tracker/issues/"
EDITOR_COMMAND="vi -c 'set ft=gitcommit'"
# Issue Number Extraction
@kellpossible
kellpossible / perfect_documentation_markup_system.md
Last active March 27, 2019 03:43
Thinking about a markup syntax and system which will be perfect for documentation

Perfect Documentation Markup System

I've spent a lot of time over the past few years thinking about markup markup languages and systems in the context of writing documentation for commercial and open source projects. I've had the pleasure of creating a large Sphinx based document for a personal project, and in a user manual for a commercial project. I've also created a number of decent sized MkDocs based documents, and compared them with Sphinx and Hugo based alternatives. I've grappled with the practicalities of introducing such a system into a company that already has established document production workflows, and coming to grips with the fact that document production involves many more people than the original writers, and a system needs to cater for those people also. Throughout all of this, I've come to the conclusion that the current markdown based systems, as good as they are, still have a number of fundamental fl

@kellpossible
kellpossible / init.el
Created June 12, 2018 04:23
Emacs Monokai Markdown Headings same as Org Mode
(custom-set-faces
'(markdown-header-face-1 ((t (:inherit markdown-header-face :foreground "chocolate1" :height 1.5))))
'(markdown-header-face-3 ((t (:inherit markdown-header-face :foreground "#66d9ef" :height 1.15))))
'(markdown-header-face-4 ((t (:inherit markdown-header-face :foreground "#e6db74" :height 1.1))))
'(markdown-header-face-5 ((t (:inherit markdown-header-face :foreground "#a1efe4")))))