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 / 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 / Design.md
Last active February 4, 2023 02:51
Caucusus Avalanche Forecast PDF
@kellpossible
kellpossible / feh.desktop
Created April 29, 2017 15:02
A desktop file/run configuration that sets feh up to open such that you can scroll through all the other images in the same directory
[Desktop Entry]
Name=Feh
Name[en_US]=feh
GenericName=Image viewer
GenericName[en_US]=Image viewer
Comment=Fast Imlib2-based Image Viewer
Exec=bash -c "feh -. --start-at ./$(realpath --relative-to=$(dirname %f) %f)"
Terminal=false
Type=Application
Icon=feh
@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 / 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 / settings.json
Created May 7, 2018 02:28
Visual Studio Code settings for markdown heading highlighting to match emacs org mode heading highlighting
{
// heading colours matching Emacs Org Mode
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "markup.heading.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#8a8888",
}
},