Skip to content

Instantly share code, notes, and snippets.

@disco0
disco0 / index.md
Last active November 25, 2023 10:34
Imagus Sieve #doc

Imagus Seive Configuration

A basic outline on seive configuration in Imagus—based on previous posts by developer, with additions based on own usage.

Extension Implementation

Input Processing

Before it's sent to matching, every URL has its protocol and subdomain removed using the following regex:

@disco0
disco0 / xclip
Last active June 22, 2023 05:46
xclip-wsl - Windows clipboard xclip for WSL distributions.
#!/usr/bin/env zsh
###
### xclip(-wsl)
###
### Drop in xclip substitute for interacting with the Windows clipboard from
### WSL environment. Attempts to resolve various Windows clipboard interfaces
### on $PATH in order of performance, falling back to powershell executables'
### Get-Clipboard and Set-Clipboard (with priority to pwsh.exe)—
###
@disco0
disco0 / keyboardlistener.cs
Created June 11, 2023 19:40 — forked from Ciantic/keyboardlistener.cs
C# Keyboard listener
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{
# MIT License
#
# Copyright (c) 2018 Jelle Hermsen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@disco0
disco0 / opera.d.ts
Last active October 14, 2022 17:34
TypeScript - window.opera typings
// Type definitions for Opera Browser `opera` global object
// Because why not
// Definitions by: disk0 <https://github.com/disco0>
// This definition is based on various external documentation pages online
// https://web.archive.org/save/http://www.howtocreate.co.uk/operaStuff/operaObject.html
/**
* Opera browser specific global `opera` object.
*/
declare interface OperaObject
tool
extends EditorScript
###
### Install (for Run usage)
### Copy to res://mod-scripts/RehydrateImports.gd
###
### Usage:
### var Rehydrate = load('res://mod-scripts/RehydrateImports.gd')
###
@disco0
disco0 / bindkeys.cfg
Last active May 27, 2022 19:30
Quake 2021 - Cvar / Command List #gistpad-doc
// Modifier/General Function Keys
space
lshift
rshift
lalt
ralt
lctrl
rctrl
tab
enter
@disco0
disco0 / TwitterLiveFeed.user.js
Created April 3, 2022 21:03
TwitterLiveFeed
///<reference types="typed-query-selector"/>
///<reference types="typed-query-selector/parser"/>
///<reference path="./xpath-text-search.d.ts"/>
///<reference types="mousetrap"/>
// ==UserScript==
// @name TwitterLiveFeed
// @author disk0
// @description Force Twitter feed to display latest tweets
// @version 0.2.1
// @run-at document-idle
@disco0
disco0 / hosts
Created March 17, 2022 06:19 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost