Skip to content

Instantly share code, notes, and snippets.

View brettp's full-sized avatar

Brett Profitt brettp

View GitHub Profile
@brettp
brettp / startrek.json
Last active July 14, 2022 22:56
Startrek #spoilerSlayer
{
"spoilers": [
{
"spoiler": "the burn",
"isRegex": false
},
{
"spoiler": "the federation",
"isRegex": false
},
@brettp
brettp / fantastic_beasts.json
Last active December 11, 2018 21:46
Fantastic Beasts list for #spoilerSlayer
{
"spoilers": [
{
"spoiler": "Ingvar Eggert Sigurðsson",
"isRegex": false
},
{
"spoiler": "Vinda Rosier",
"isRegex": false
},
@brettp
brettp / avengers.json
Last active April 26, 2019 02:37
The Avengers spoilers list for #spoilerSlayer
{
"spoilers": [
{
"spoiler": "End ?game",
"isRegex": true
},
{
"spoiler": "Peter Quill",
"isRegex": false
},
@brettp
brettp / doctor_who.js
Last active November 5, 2022 16:30
Doctor Who spoilers list for #spoilerSlayer
{
"spoilers": [
{
"spoiler": "whovian",
"isRegex": false
},
{
"spoiler": "(yasmin|yaz|yas) khan",
"isRegex": true
},
@brettp
brettp / default_sites.js
Last active June 25, 2024 10:44
Default sites and selectors for #spoilerSlayer
{
"sites": [
{
"urlRegex": "avclub.com",
"selector": "article, .sidebar-item, .curation-module__item"
},
{
"urlRegex": "buzzfeed.com",
"selector": ".story-card, .card--article-featured, .card--article, .card--package, .card--video, .sidebar__link, .js-now-buzzing__list > li"
},
@brettp
brettp / Game of Thrones.js
Last active April 27, 2019 18:08
Game of Thrones #spoilerSlayer
{
"spoilers": [
{
"isRegex": true,
"spoiler": "night ?king"
},
{
"isRegex": false,
"spoiler": "#got"
},
@brettp
brettp / dmesg.txt
Created November 12, 2018 00:57
dmesg with dmar error when iommu is enable
[ 0.000000] microcode: microcode updated early to revision 0xc6, date = 2018-04-17
[ 0.000000] Linux version 4.15.0-38-generic (buildd@lcy01-amd64-023) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 (Ubuntu 4.15.0-38.41-generic 4.15.18)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-38-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash intel_iommu=on iommu=pt nohz_full=1-3,5-7 isolcpus=1-3,5-7 rcu_nocbs=1-3,5-7 vt.handoff=1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
@brettp
brettp / 45_grub_extra.cfg
Created May 23, 2018 01:08
Grub config to allow load overrides from /grub_extra.cfg if present
#!/bin/sh
# Searches all drives for a file named grub_extra.cfg in the root dir
# and includes it after all other config files.
# Can be used to force override any variables
# Example /grub_extra.cfg:
# set default=1
cat <<EOF
search --file --set extra_cfg_dev /grub_extra.cfg
-----------------------------------------------------------------------
CrystalDiskMark 6.0.0 x64 (C) 2007-2017 hiyohiyo
Crystal Dew World : https://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes
Sequential Read (Q= 32,T= 1) : 584.200 MB/s
Sequential Write (Q= 32,T= 1) : 461.007 MB/s
Random Read 4KiB (Q= 8,T= 8) : 6.228 MB/s [ 1520.5 IOPS]
@brettp
brettp / README.MD
Last active October 10, 2018 14:11 — forked from samdenty/README.MD
VS Code CSS addition to increase readability on file tree.

How to install

Use the Custom CSS plugin (recommended)

Install the custom CSS plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my home directory called ~/.vscodestyles.css and then add the CSS into it.

Once done, open your command palette and select enable custom CSS and JS