Skip to content

Instantly share code, notes, and snippets.

View jvyden's full-sized avatar

jvyden jvyden

View GitHub Profile
@jvyden
jvyden / sidebery.css
Last active July 12, 2023 02:52
Firefox style configuration
@media (prefers-color-scheme: dark), (prefers-color-scheme:no-preference) {
#root[data-style="auto"] {
--bg: #000;
--border-fg: #0c0c0c;
--nav-btn-activated-bg: #0c0c0c;
--tabs-bg-active: #101010;
--tabs-activated-bg: #0c0c0c;
--tabs-bg-hover: #080808;
}
}
@jvyden
jvyden / soft-reboot.sh
Created September 1, 2023 05:15
A script to softly reboot a Linux system with kexec
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "This script requires root."
sudo $0
exit
fi
if [ "$1" == "complete" ]; then
systemctl stop graphical.target
#!/bin/bash
set -e
die() { echo >&2 "!! $*"; exit 1; }
# FIXME Purge old files and use this one
# File this script will modify, in addition to (potentially) the per-user sentinel file
CONF_FILE="/etc/sddm.conf.d/zz-steamos-autologin.conf"
@jvyden
jvyden / userscript.js
Created September 19, 2023 07:52
fartas
// ==UserScript==
// @name krackass
// @match *://*/*
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
document.title = 'FARRTAS.COM';
})();
@jvyden
jvyden / Bunkum.DotSettings
Created October 30, 2023 01:59
Bunkum File Templates for Rider
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/QuickList/=F0CA621CDF5AB24282D8CDC11C520997/Entry/=2CBD6971A7955044AD2624B84FB49E38/Position/@EntryValue">9</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/QuickList/=F0CA621CDF5AB24282D8CDC11C520997/Entry/=383815F3F0E94C459173B41B8FB9BAC4/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/QuickList/=F0CA621CDF5AB24282D8CDC11C520997/Entry/=383815F3F0E94C459173B41B8FB9BAC4/EntryName/@EntryValue">Endpoint Group</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/QuickList/=F0CA621CDF5AB24282D8CDC11C520997/Entry/=383815F3F0E94C459173B41B8FB9BAC4/Position/@EntryValue">10</s:Int64>
<s:Boolea
using System.Diagnostics;
using Discord;
using Discord.WebSocket;
using Moniku.Core;
using Moniku.Core.Modules;
using Moniku.Data;
namespace Moniku.Modules;
public class VideoCompressorModule : Module {