Skip to content

Instantly share code, notes, and snippets.

@akeeton
akeeton / extension.vsixmanifest
Last active November 2, 2021 19:50
extension.vsixmanifest for Custom Document Well extension for Visual Studio 2019
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
<Metadata>
<Identity Id="CustomDocumentWell.ae5b5116-8be8-42af-ae24-212ccb14b1a6" Version="15.0.6" Language="en-US" Publisher="Microsoft" />
<DisplayName>Custom Document Well</DisplayName>
<Description xml:space="preserve">Provides configurable behavior for the document well in Visual Studio.</Description>
<MoreInfo>https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.CustomDocumentWell</MoreInfo>
<License>EULA.rtf</License>
<ReleaseNotes>ReleaseNotes.txt</ReleaseNotes>
<Icon>CustomDocumentWell_icon_90x.png</Icon>
open log4net.Appender
open log4net.Core
open log4net.Layout
open log4net.Repository.Hierarchy
let setup () : unit =
let hierarchy = LogManager.GetRepository() :?> Hierarchy
let patternLayout = PatternLayout()
patternLayout.ConversionPattern <- "%date [%thread] %-5level %logger - %message%newline"
patternLayout.ActivateOptions()
@akeeton
akeeton / raspberry-pi-heatsink-benchmark.sh
Created May 31, 2018 15:18
Script to run `sysbench` in a loop for benchmarking a Raspberry Pi and a DIY heatsink
#!/bin/bash
# Adapted from https://github.com/aikoncwd/rpi-benchmark
NUM_RUNS=20
[ "$(whoami)" == "root" ] || { echo "Must be run as sudo!"; exit 1; }
vcgencmd measure_temp
vcgencmd get_config int | grep arm_freq
vcgencmd get_config int | grep core_freq
#!/bin/bash
set -u
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <input directory> <output directory>"
exit
fi
scriptdir="$(dirname "$0")"
indir=$(realpath "$1")
@akeeton
akeeton / dark-theme-mtggoldfish.user.css
Last active May 14, 2018 22:53
Dark theme for mtggoldfish.com - Stylus (Stylish, userstyles.org)
/* ==UserStyle==
@name Dark MTG Goldfish (WIP)
@namespace github.com/openstyles/stylus
@version 0.1.0
@description A simple, dark style for mtggoldfish.com. Feel free to fork and reupload. Coverage is lacking because I made it for my use case.
@author Andrew Keeton
@preprocessor uso
@var color bg-color-main "Main background color" #222
@var color bg-color-highlight "Highlight background color" #333
@var color font-color-main "Main font color" #eee