Skip to content

Instantly share code, notes, and snippets.

View Erquint's full-sized avatar
🥴
Failing.

Murad "Gness Erquint" Beybalaev Erquint

🥴
Failing.
  • Korolev, Russia
View GitHub Profile
@Erquint
Erquint / DS4W-Saufeder.rb
Created September 16, 2021 19:33
This script will enumerate processes hogging DS4 device stream handle, try to free the handle by temporarily unloading known hogs detected running, start DS4W and load the unloaded hogs back.
# Ruby 2.6.6
# PowerShell 7.1
# SysInternals Handle 4.22
# DS4W 2.1.8
require 'set'
$task_heap = Set.new
if (ARGV & ['--help', '-h']).any?
@Erquint
Erquint / win32_critters.rb
Last active February 2, 2022 20:29
Banal natural selection emulation. Wrote mainly to mess around with terminal manipulation and Win32 bindings.
# ENCODING: UTF-8
# ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]
# THIS SCRIPT WILL INSTALL REQUIRED GEMS IF POSSIBLE.
# irb -I . -r ./main.rb # Ignore this.
def require_gem gemname, requirename = nil
requirename = gemname if requirename.nil?
require 'rubygems'
begin
gem gemname
@Erquint
Erquint / user-select_unsetter.user.js
Last active February 22, 2022 21:20
CSS property `user-select` is used to disable or alter selectability of rendered HTML elements. This userscript unsets all such style properties on a page. Install using the following link: https://gist.github.com/Erquint/5ed7be3f1c62c606d7c514deec4d091d/raw/user-select_unsetter.user.js
// ==UserScript==
// @name user-select unsetter
// @description Waits for page to fully load once and selectively unsets the `user-select` property of all elements.
// @version 1.0.0
// @namespace [email protected]
// @author https://gist.github.com/Erquint
// @homepageURL https://gist.github.com/Erquint/fbea345ae863fea3735fc35f25c753f7
// @updateURL https://gist.githubusercontent.com/Erquint/fbea345ae863fea3735fc35f25c753f7/raw/user-select_unsetter.user.js
// @downloadURL https://gist.githubusercontent.com/Erquint/fbea345ae863fea3735fc35f25c753f7/raw/user-select_unsetter.user.js
// @match *://*/*
@Erquint
Erquint / scrollfiend.user.js
Last active April 27, 2025 02:42
For those pesky websites that disable scrolling. Fiend mode button available in the popup if you dare. Install using the following link: https://gist.githubusercontent.com/Erquint/051e173afc07440050ac04c493d4c8d1/raw/scrollfiend.user.js
// ==UserScript==
// @name Scrollfiend
// @description Enables scrolling on those pesky websites that disable it.
// @version 2.0.0
// @namespace [email protected]
// @author https://gist.github.com/Erquint
// @homepageURL https://gist.github.com/Erquint/051e173afc07440050ac04c493d4c8d1
// @updateURL https://gist.githubusercontent.com/Erquint/051e173afc07440050ac04c493d4c8d1/raw/scrollfiend.user.js
// @downloadURL https://gist.githubusercontent.com/Erquint/051e173afc07440050ac04c493d4c8d1/raw/scrollfiend.user.js
// @match *://*/*