Skip to content

Instantly share code, notes, and snippets.

View spiffcs's full-sized avatar
❤️
Welcome!

Christopher Angelo Phillips spiffcs

❤️
Welcome!
View GitHub Profile
@spiffcs
spiffcs / main.go
Created January 19, 2024 17:09
Duplicate Relationships
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
)
type Metadata struct {
Files []string
@spiffcs
spiffcs / main.go
Last active November 3, 2023 17:38
syft as a library
package main
import (
"fmt"
"os"
"github.com/anchore/syft/cmd/syft/cli/options"
"github.com/anchore/syft/syft"
"github.com/anchore/syft/syft/format"
"github.com/anchore/syft/syft/pkg/cataloger"
@spiffcs
spiffcs / sbom.syft.json
Created March 17, 2023 13:58
sbom.syft.json
{
"schema": {
"version": "7.0.1",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-7.0.1.json"
},
"source": {
"id": "upstream-nginx-hint",
"type": "directory",
"target": "/upstream-nginx-hint"
},
@spiffcs
spiffcs / alacritty.yaml
Created March 9, 2022 15:30
basic alacritty.yaml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# https://github.com/uBlockOrigin/uAssets/pull/3517
twitch-videoad.js application/javascript
(function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
var realFetch = window.fetch;
window.fetch = function(input, init) {
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
var url = new URL(arguments[0]);
url.searchParams.forEach(function(value, key) {
url.searchParams.delete(key);
ts-message:hover:not(.standalone):not(.multi_delete_mode):not(.highlight) {
background: #353535;
}
ts-message {
font-size: .8375rem !important;
}
#col_channels,
#team_menu,