Skip to content

Instantly share code, notes, and snippets.

@BradKnowles
BradKnowles / fast_firefox.md
Created August 8, 2024 18:53 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@BradKnowles
BradKnowles / copy-to-docker-volume.sh
Created March 5, 2022 20:52 — forked from maiermic/copy-to-docker-volume.sh
Copy files to Docker volume
# Usage: copy-to-docker-volume SRC_PATH DEST_VOLUME_NAME [DEST_PATH]
copy-to-docker-volume() {
SRC_PATH=$1
DEST_VOLUME_NAME=$2
DEST_PATH="${3:-}"
# create smallest Docker image possible
echo -e 'FROM scratch\nLABEL empty=""' | docker build -t empty -
# create temporary container to be able to mount volume
CONTAINER_ID=$(docker container create -v my-volume:/data empty cmd)
# copy files to volume
@BradKnowles
BradKnowles / .editorconfig
Created January 27, 2022 03:46
My .editorconfig
# editorconfig.org
# top-most EditorConfig file
root = true
# Default settings:
[*]
charset = utf-8
insert_final_newline = true
indent_style = space
@BradKnowles
BradKnowles / improving-as-a-software-developer.md
Created March 25, 2021 03:19 — forked from BennieCopeland/improving-as-a-software-developer.md
Always hungry for more. This is a list of resources I've used or that I plan to use as a way to improve my knowledge and technical skills as a software developer.

Some of the books I'll be recommending are based on .NET. Do not be discouraged. We shouldn't strive to stick to a specific technology stack. Your ambitions and goals will evolve over time and that might lead you a completely new space. Moreover, there are lessons to be learned from an environment that's different from what you're used to.

Software Development

@BradKnowles
BradKnowles / dotnetlayout.md
Created March 25, 2021 03:13 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@BradKnowles
BradKnowles / RdfToJson.xslt
Created February 4, 2021 06:11
XSLT for Gutenburg RDF to JSON
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0" xml:base="http://www.gutenberg.org/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:cc="http://web.resource.org/cc/"
xmlns:pgterms="http://www.gutenberg.org/2009/pgterms/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dcam="http://purl.org/dc/dcam/"
xmlns:marcrel="http://id.loc.gov/vocabulary/relators/">
@BradKnowles
BradKnowles / FirefoxHardening.md
Last active July 13, 2019 04:36
Settings to harden Firefox from PrivateInternetAccess.com
using System;
/// <summary>
/// The exception is thrown when the requested aggregate is not found by the <see cref="IEventStore"/> implementation.
/// </summary>
public class AggregateNotFoundException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="AggregateNotFoundException"/> class.
/// </summary>
@BradKnowles
BradKnowles / keybase.md
Created May 23, 2017 03:10
Keybase Proof

Keybase proof

I hereby claim:

  • I am bradknowles on github.
  • I am bradknowles (https://keybase.io/bradknowles) on keybase.
  • I have a public key ASAtq30R1jqFb5YsLA7t569TAYbTQXoeSY47yfAOB5CqpQo

To claim this, I am signing this object:

@BradKnowles
BradKnowles / ContextCmder-Disable.reg
Created August 2, 2016 14:31 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]