Skip to content

Instantly share code, notes, and snippets.

View Matthew-McRaven's full-sized avatar

Matthew McRaven Matthew-McRaven

View GitHub Profile
@Matthew-McRaven
Matthew-McRaven / descendantproxymodel.cpp
Created March 7, 2024 17:43
Proxy model which limits the "top level" to be the child element of some other model. Uses Qt 6.6.0.
#include "descendantproxymodel.hpp"
DescendantProxyModel::DescendantProxyModel(QObject *parent)
: QAbstractProxyModel(parent)
{}
void DescendantProxyModel::setSourceRootIndex(const QModelIndex index)
{
beginResetModel();
sourceRootIndex = index;
@Matthew-McRaven
Matthew-McRaven / conventions.md
Last active February 6, 2024 17:52
Commit conventions

Derived from: https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit

Commit Message Guidelines

We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the Angular change log.

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special

@Matthew-McRaven
Matthew-McRaven / audio-video.sh
Last active December 29, 2020 22:01
Installs
# Needed to for equalizer.
sudo apt install pulseeffects lsp-plugins
@Matthew-McRaven
Matthew-McRaven / install-rabbitmq.sh
Last active November 1, 2019 17:22
Install dependencies of racecar
## If sudo is not available on the system,
## uncomment the line below to install it
# apt-get install -y sudo
sudo apt-get update -y
## Install prerequisites
sudo apt-get install curl gnupg -y
## Install RabbitMQ signing key
@Matthew-McRaven
Matthew-McRaven / Setup.dist
Created October 11, 2019 17:26
Custom setup file for python.
# -*- makefile -*-
# The file Setup is used by the makesetup script to construct the files
# Makefile and config.c, from Makefile.pre and config.c.in,
# respectively. The file Setup itself is initially copied from
# Setup.dist; once it exists it will not be overwritten, so you can edit
# Setup to your heart's content. Note that Makefile.pre is created
# from Makefile.pre.in by the toplevel configure script.
# (VPATH notes: Setup and Makefile.pre are in the build directory, as
# are Makefile and config.c; the *.in and *.dist files are in the source
@Matthew-McRaven
Matthew-McRaven / build-klee.sh
Last active October 12, 2019 02:18
Collect all klee dependencies and build klee in the current directory.
#Install python dependencies
sudo apt-get -y install python-pip
#Add python to path
export PATH=$PATH:~/.local/bin
#Install LLVM6.0 dependencies
sudo apt-get -y install build-essential curl libcap-dev git cmake libncurses5-dev python-minimal python-pip unzip libtcmalloc-minimal4 libgoogle-perftools-dev
#Install LLVM6.0
0eNrlnd1u4zgShd/F1/Gs+E/1xb7IYtBwEm3amMQ2bKWxjUHefe04TmSHZJ1DyYPs7M30JI4/FYtFFlnFov6c3T4+d5vtctV/v12v/5h9+/PjN7vZt38Nfjx8trxbr46/3i0fVovHw+/6X5tu9m227Lun2c1stXg6/LRdLB9nLzez5eq++8/sm3r5/WbWrfplv+yO33/94df31fPTbbfd/8H7N3f9/rsPP/r5K+Jmtlnv9t9arw6P2pPm9mb2a/+Pal5ebj5hNIrRJYphhYkpiiVlSUIcK4pPUTwpShISWFFsihJJUZKQlhVFpyiqIWVJU1jTTZqcIi03DWENN90g0nDTENZwk/2sSMNNQ1jDTVq/Ig03DWENNzknaNJu0xDWbDMTLmm3B8reFbw6i28D33Iz+9ltd69/HUyjvA9aO//hQJrDs7+aK9KYK7p73v7s7nMQc4S4vYT3y213d/zMFd3SATV/a3aC+Jt78yi/uVGOaY55pnL7VLJ9tuilyu1rhu0TqYFtrR/ltuaY3yrrrD2OlfPG6bILK+ssnHSmLnWmyj4NMV4l2y7u3+b+5GzPoKbs7xAbVLKxsL7vUkpXdoVFKV1KyFD2isVON9k+N2U3WTYlpd+4zSVWl/1mGesoaotRFQPV4GCKFBR3J+q0KJOh+GhSGobiq8fDtANCcWcTYaYj5xKE6emls8xkXQ/ChB0R3kUtu94XkQZeocLKNPA4gvvcwKMINk0DjyF8CBl4COFj3ThqJRIAoicHpZVdkgns9k9eQ0fGGQfZGZuW9G/+N2CpbxvOv32CpkS1tCuKcr9b2hUhUNoVIVDWFSFM1hUhTE8HCWQm64oQJumKEGTLRjZEpCNdEYIkXRGCJF0RgmRdEcJkXRHCdOy+o72c7HwKC26S2jy0Jk6lvmKc6m1HrfSolElTohhamGZUaKopUdhJOR3g8qQssZw0Ka+zwpFh5KXBxX767sdiuQLiPj4dC2xZVflxmZSmRAGjTiqpK1uOOgHKUkNdyWza5O2