Skip to content

Instantly share code, notes, and snippets.

View jvyden's full-sized avatar

jvyden jvyden

View GitHub Profile
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 {
@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
@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';
})();
#!/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 / 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
@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 / discord-theme.css
Last active July 11, 2023 08:51
Custom discord theme
.avatar-2e8lTP:before {
display: none;
}
::placeholder,
body,
button,
input,
select,
textarea,
// Copyright (c) MOSA Project. Licensed under the New BSD License.
// #nullable disable
#nullable enable
using System;
// ReSharper disable all
namespace MOSANullReproduction;
#!/bin/bash
# generate a random 12-character string
output_dir="output"
# create the output directory
mkdir "$output_dir"
# loop through all the .jpg and .png files in the current directory
for file in *.jpg *.png *.jpeg; do
@jvyden
jvyden / force-x11.sh
Last active March 28, 2023 00:08
Force a program to use X11 under XWayland. Invocation: `force-x11.sh <program> <args>`
#!/bin/bash
export SDL_VIDEODRIVER=x11
export MOZ_ENABLE_WAYLAND=false
export XDG_SESSION_TYPE=x11
export GDK_BACKEND=x11
export QT_QPA_PLATFORM=xcb
"$@"