Skip to content

Instantly share code, notes, and snippets.

View sean-gilliam's full-sized avatar

Sean Gilliam sean-gilliam

View GitHub Profile
@sean-gilliam
sean-gilliam / thunderbird-supernova-customize.md
Created October 3, 2023 22:38
Revert some of the customization that Thunderbird Supernova imposes

The new release of Thunderbird, codename Supernova, changes some key elements of the UI to be more "modern". For those who wish to keep the new release but modify some elements to semi-reflect the old UI, then here are some steps to accomplish this.

Restore Title bar

  • Click the hamburger menu in the top right corner and select Settings.
  • Click the General tab.
  • Scroll to the bottom and click the Config Editor button.
@sean-gilliam
sean-gilliam / decorator.cs
Created April 17, 2023 20:04
data-member-decorator
void Main()
{
string contract = @"
public int keyId { get; set; }
public bool error { get; set; }
public string changeProposal { get; set; }
public string dataCode { get; set; }
public string master { get; set; }
";
@sean-gilliam
sean-gilliam / qemu-gpupassthrough-lookingglass-scream-setup.md
Last active June 1, 2024 23:06
Setup Qemu for GPU Passthough with Looking Glass and Scream support.

Setup Qemu for GPU Passthough with Looking Glass and Scream support.

Before we begin, make sure that you have a monitor hooked up to the second GPU. In some situations, the video card will fail to properly initialize if one isnt attached. Also it helps with debugging issues that will most assuredly arise.

GPU Passthrough setup

Ensure that IOMMU is enabled in the BIOS. For me using an Intel system from Dell, it was under Virtualization -> Direct I/O. It should be something along those lines for AMD as well. That was the easy part :).

Before we proceed we're going to need to gather some information. Run the command, lspci -nn|grep NVIDIA (or AMD if your using that). The output for me was:

using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
void Main()
{
var input = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var test = Adapter<Test>(input);
Console.WriteLine(test);
}
This file has been truncated, but you can view the full file.
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "code/act_comm.c"
No compilation database found in /home/sgilliam/src/riftshadow/code or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
962 warnings and 1 error generated.
Error while processing /home/sgilliam/src/riftshadow/code/act_comm.c.
1725 warnings and 21 errors generated.
Error while processing /home/sgilliam/src/riftshadow/code/act_ente.c.
@sean-gilliam
sean-gilliam / exclude.ps1
Created March 9, 2020 22:06
Powershell exclusion list
$folderExclusionList = @("bin", "obj" ,"packages")
...
Where-Object {
$dir = $_.DirectoryName
# return all directories that don't have part of the exclusion list in the name
$null -eq ($folderExclusionList | Where-Object { $dir -match $_ })
}
...
@sean-gilliam
sean-gilliam / settings.json
Last active December 2, 2019 21:33
riftshadow vscode settings.json
{
"files.associations": {
"*.h": "cpp",
"*.c": "cpp"
},
"catch2TestExplorer.executables": {
"name": "${filename}",
"pattern": "tests/*{_tests}*"
},
"C_Cpp.intelliSenseEngine": "Tag Parser"
@sean-gilliam
sean-gilliam / launch.json
Created November 18, 2019 22:56
riftshadow vscode launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/code/rift",
"args": [],
"stopAtEntry": false,
@sean-gilliam
sean-gilliam / task.json
Created November 18, 2019 21:43
riftshadow vscode task settings
{
"version": "2.0.0",
"tasks": [
{
"label": "compile tests",
"command": "make -C ${workspaceRoot}/tests/",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
see https://github.com/microsoft/vscode-cpptools/issues/1041#issuecomment-330885162
Add the include paths from the command `gcc -v -E -x c++ -`
to includePaths C/C++ settings