Skip to content

Instantly share code, notes, and snippets.

View shortcord's full-sized avatar
🏳️‍⚧️

Tristan Smith shortcord

🏳️‍⚧️
View GitHub Profile
@-moz-document url-prefix("https://plus.googleapis.com"), url-prefix("https://plus.google.com/u/0/_/sharebox/aclwidget/canvas"), domain("youtube.com"), regexp("(https|http)://(apis|plus).(google|googleapis).(com|([a-z]{2}))(.[a-z]{2})?/.*first_party_property=YOUTUBE.*"), regexp("(https|http)://(apis|plus).google.(com|([a-z]{2}))(.[a-z]{2})?/.*internalcard.*"), regexp("(https|http)://apis.google.com/.*/hovercard.*"), regexp("(https|http)://apis.google.com/.*/widget/render?.*&first_party_property=YOUTUBE.*"), regexp("(https|http)://plus.google.com/.*/widget/render/comments?.*"), regexp("(https|http)://plus.google.com/.*/notifications/frame?.*") {
#placeholder-player .player-api,
html.floater:not([data-player-size='fullscreen']) #player #player-api,
.watch-stage-mode #player,
.watch-stage-mode #placeholder-player,
.watch-stage-mode #theater-background,
body,
#player,
#player-legacy,
body>#body-container,
//META{"name":"BackgroundRotation"}*//
var BackgroundRotation = function () {};
BackgroundRotation.prototype.switchBG = function() {
BdApi.clearCSS("SC-bgRot");
BdApi.injectCSS("SC-bgRot", ".app, .callout-backdrop { background: url(" + this.GetImage(this.GetImageStorage()) + ") no-repeat center center fixed !important; background-size: cover !important; }");
};
BackgroundRotation.prototype.GetImageStorage = function() {
@-moz-document domain(youtube.com) {
.html5-play-progress, .ytp-play-progress {
background: #191970 !important; /* Old browsers */
background: -moz-linear-gradient(left, #191970 0%, #191970 100%) !important;
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#1b1b1b), color-stop(100%,#FFFFFF)) !important;
background: -webkit-linear-gradient(left, #191970 0%,#8b0000 100%) !important;
background: -o-linear-gradient(left, #191970 0%,#8b0000 100%) !important;
background: -ms-linear-gradient(left, #191970 0%,#8b0000 100%) !important;
background: linear-gradient(to right, #191970 0%,#006400 50%,#8b0000 100%) !important;
/*
https://userstyles.org/styles/123028/space-aura
Author: Gibbu (Gibbo12111)
Version: 2.16.3
Lasted Updated: 6/3/2016 - Australian time.
Name: Space Aura
|--------------------------------------------------------------------------------------------------------------|
I see you're looking at my code................. HOWDY! :D
@shortcord
shortcord / keybase.md
Created March 15, 2017 16:44
keybase.md

Keybase proof

I hereby claim:

  • I am teh-random-name on github.
  • I am shortcord (https://keybase.io/shortcord) on keybase.
  • I have a public key ASCy8TjGdC4YuOxZjt1HbOMxjUnPfLAxJpdgPMjGNCt-Rwo

To claim this, I am signing this object:

@shortcord
shortcord / convert.sh
Created May 31, 2018 14:48
Convert QCOW2 to VDI for Virtualbox
# the -p flag shows progress of qmeu-img
# -O flag sets output of file
# for more view man qmeu-img or https://linux.die.net/man/1/qemu-img
qmeu-img convert -p -O vdi /path/to/qcow2.img /path/to/output.vdi
{
"meta": {
"theme": "flat"
},
"basics": {
"name": "Tristan H Smith",
"label": "Linux & Windows System Administrator / C# Programmer",
"url": "https://shortcord.com",
"picture": "https://i.imgur.com/rcWj4JW.jpg",
"email": "tristan0smith@gmail.com",
@shortcord
shortcord / GetUEFIWindowsKey.ps1
Created September 25, 2019 08:11
Gets the OEM Windows 10 Key from UEFI.
$wmicOutput = ((wmic path softwarelicensingservice get OA3xOriginalProductKey) | Out-String).Replace("`n", "");
$regexMatch = [regex]::Match($wmicOutput, "(?<orgKey>[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+)");
if ($regexMatch.Success)
{
echo "Found Key from UEFI BIOS";
$key = $regexMatch.Groups["orgKey"];
Set-Clipboard $key;
echo "$key; Copied to Clipboard.";
@shortcord
shortcord / getIDracPowerUsageAverage.sh
Last active September 30, 2019 06:22
Dirty script. Grabs the power consumption average from IPMI, shoves it through JQ and gives back an array of objects prefixed by the measurement label.
!#/bin/sh
ipmi-oem dell get-power-consumption-statistics average | awk -F":" '{gsub (" ", "", $0); print}' | jq --slurp --compact-output --raw-input 'split("\n") | map(select(. !="") | split(":") | { (.[0]): (.[1]) })'
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key