Skip to content

Instantly share code, notes, and snippets.

View consoleSkunk's full-sized avatar
🦨

consoleSkunk

🦨
View GitHub Profile
@consoleSkunk
consoleSkunk / DText.js
Last active June 28, 2024 14:30
e621 DText to Discord Markdown parser
// heavily ripped off e621-android by rebane621, BSD 2-Clause
// https://github.com/rebane621/e621-android/blob/41512d98f877d1f48fa85e1f01ade5ecccbc6fe2/src/main/java/de/e621/rebane/DTextParser.java
exports.parse = function(text) {
var DTextMap = new Map([
//escapes
[/(\r\n|\r|\n\r)/g,'\n'],
// bullets, put before bbcode to avoid conflict with bold
[/^(\*{1,11}) ([\s\S]+?)$/gim,(match, p1, p2) => {
@consoleSkunk
consoleSkunk / no_more_android_stylish.txt
Last active October 13, 2023 17:58
Attempt to hide as much of the Stylish for Android promotion as possible.
! Title: No More Android Stylish
! Description: Attempt to hide as much of the Stylish for Android promotion as possible.
! Expires: 3 days
! Installation: https://gist.github.com/Enbika/345b487043d0b0340f2113aa8e081e0c/raw/no_more_android_stylish.txt
userstyles.org##div.us-stylecard--long:has(img[src*="/ui/images/1172x156.png"])
userstyles.org##.us-stylecard--short:has(img[src*="/ui/images/280x294.png"])
userstyles.org##.android_button_banner
userstyles.org###top_android_button
userstyles.org##.android_button_button
userstyles.org##.walking
@consoleSkunk
consoleSkunk / derpibooru.js
Created February 21, 2020 16:47
Booru-on-rails search command
var qs = require("querystring"),
Discord = require("discord.js"),
request = require("request"),
name = require('../package.json').name,
version = require('../package.json').version;
exports.module = {
commands: ["derpi","derpibooru","derp","db"],
description: "Returns a random image from [Derpibooru](https://derpibooru.org/).\n[Cheatsheet available here](https://derpibooru.org/search/syntax).",
syntax: "tag 1, tag 2, tag 3",
@consoleSkunk
consoleSkunk / config.example.json
Last active March 5, 2020 21:14
Legacy e621 random search command
{
"prefix": "/",
"whitelist": {
"guilds": [
"<guild ID>"
],
"categories": [
"<category ID>"
],
@consoleSkunk
consoleSkunk / picrew_dark.user.css
Last active December 14, 2023 18:34
A dark theme for the Picrew image maker.
/* ==UserStyle==
@name Picrew Dark
@namespace com.github.enbika.picrew
@version 1.1.0
@description A dark theme for the Picrew image maker.
@author Erika
@homepageURL https://gist.github.com/consoleSkunk/b7851eb1df7e7c9984a7d781a9961658
@updateURL https://gist.githubusercontent.com/consoleSkunk/b7851eb1df7e7c9984a7d781a9961658/raw/picrew_dark.user.css
@license CC-BY-SA-4.0
==/UserStyle== */
// ==UserScript==
// @name Stack Overflow - Force Dark Theme
// @namespace stackoverflow.com
// @match https://stackoverflow.com/*
// @grant none
// @version 1.0
// @author Erika
// @run-at document-end
// @downloadURL https://gist.github.com/Enbika/62e5f3be0badd4aac513321aea16afef/raw/stackoverflow-dark.user.js
// ==/UserScript==
@consoleSkunk
consoleSkunk / classicube-protocol-handler.desktop
Last active May 13, 2020 20:48
ClassiCube mc:// protocol launcher for Linux
[Desktop Entry]
Name=ClassiCube Protocol Handler
Comment=Launch ClassiCube from mc:// links online
Exec=/path/to/classicube-protocol.sh %u
Type=Application
MimeType=x-scheme-handler/mc;
NoDisplay=true
@consoleSkunk
consoleSkunk / remove-wine-integrations.sh
Last active December 18, 2022 17:39
Remove as many of the Wine integrations as possible.
#!/bin/bash
XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
rm ${XDG_CONFIG_HOME:-~/.config}/menus/applications-merged/wine* -v 2>/dev/null
rm $XDG_DATA_HOME/applications/wine-extension-*.desktop -v 2>/dev/null
rm -r $XDG_DATA_HOME/applications/wine -v 2>/dev/null
rm $XDG_DATA_HOME/desktop-directories/wine* -v 2>/dev/null
rm $XDG_DATA_HOME/icons/hicolor/*/apps/????_*.png -v 2>/dev/null
rm $XDG_DATA_HOME/icons/hicolor/*/apps/*-x-wine-extension-*.png -v 2>/dev/null
rm $XDG_DATA_HOME/icons/hicolor/*/apps/*-x-ms-*.png -v 2>/dev/null
@consoleSkunk
consoleSkunk / brickadia-launcher.yml
Last active July 17, 2024 02:32
Lutris install script for the Brickadia Launcher
results:
- name: Brickadia
game_slug: brickadia
version: Launcher (Native)
slug: brickadia-launcher
runner: linux
script:
files:
- launcher: https://static.brickadia.com/launcher/1.5/brickadia-launcher.tar.xz
game:
@consoleSkunk
consoleSkunk / .gitignore
Last active November 12, 2021 23:23
lib32-libxnvctrl-470xx
pkg/
src/
*.tar.*