Skip to content

Instantly share code, notes, and snippets.

View gogromat's full-sized avatar

Alexander Astafurov gogromat

  • Brooklyn, New York
View GitHub Profile
@gogromat
gogromat / fix.md
Last active June 18, 2024 00:30
FIx discord on debian

Scenario:

You installed discord via dpkg -i ./discord-x.y.z.deb but nothing happens

Time to see what is missing

dpkg-deb -I discord-x.y.z.deb:

@gogromat
gogromat / hacks.md
Last active June 27, 2024 02:30
NVIDIA fixes on Debian
@gogromat
gogromat / README.md
Last active May 31, 2024 18:19
HowTo: Firefox Custom User Colors / Remove Tabs

Go to:

  • about:config

    • Set:
    • toolkit.legacyUserProfileCustomizations.stylesheets true
  • go to about:profiles

    • Create a folder chrome in Root location pointed by active profile (ex. default-esr, default)
      • Create chrome/userChrome.css file
@gogromat
gogromat / web-console.js
Created January 13, 2024 05:00
Download site images. Works with infinite scroll.
// Download images
// from webpage
// - works with infinite scrolls, etc.
// - choose between `fetch` and `canvas`
// - to disable CORS:
// - Firefox: `CORS Unblock` https://addons.mozilla.org/en-US/firefox/addon/cors-unblock/
let images = "img";
// Ex. Filter images that have `x-large` in them:
// images = "img[src*=xlarge]";
@gogromat
gogromat / disable-console.js
Last active May 4, 2024 20:58
disable-suroi-io-console
document.addEventListener("keydown", (e) => {
const code = Number.parseInt(e.keyCode, 10);
// console.log(`keyCode: ${code}`);
if (code === 192) {
e.preventDefault();
e.stopPropagation();
// console.log(`stopped ~`);
return false;
}
});
@gogromat
gogromat / keepy-bash
Last active November 18, 2023 01:35
Record bash command history `keepy`
# todo: sed this where `alias keepy=` or append to end of ~/.bashrc
cp keepy.sh ~/
chmod +x ~/.keepy.sh
# append to end of ~/.bashrc:
alias keepy="~/.keepy.sh ${@}"
@gogromat
gogromat / vscode-remove-extra-spaces.md
Last active October 17, 2023 15:22
VSCode - match/replace multiple spaces w/o newlines
@gogromat
gogromat / hide-taskbar.bat
Last active June 18, 2024 00:21
Show/Hide taskbar in Windows (11)
powershell -command "&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]=3;&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}"
@gogromat
gogromat / plex-svp-fix.bat
Last active August 13, 2023 01:13
Copies from SVP's mpv64 folder mpv-1.dll into Plex folder as mpv-2.dll
XCOPY D:\Software\SVP\mpv64\mpv-1.dll D:\Software\Plex\mpv-2.dll /Y
@gogromat
gogromat / polyfill.js
Last active October 21, 2021 20:25 — forked from nekman/polyfill.js
polyfill.io IE11 (3.108 - fixed Symbol/internalSymbol)
/* Polyfill service v3.108.0
* For detailed credits and licence information see https://github.com/financial-times/polyfill-service.
*
* Features requested: default
*
* - _DOMTokenList, License: ISC (required by "DOMTokenList", "default")
* - _ESAbstract.ArrayCreate, License: CC0 (required by "Array.of", "default")
* - _ESAbstract.Call, License: CC0 (required by "Object.assign", "Object.getOwnPropertyDescriptor", "_ESAbstract.ToPropertyKey", "_ESAbstract.ToPrimitive", "_ESAbstract.OrdinaryToPrimitive", "default")
* - _ESAbstract.CreateDataProperty, License: CC0 (required by "Array.from", "Set", "_ESAbstract.CreateIterResultObject", "default")
* - _ESAbstract.CreateDataPropertyOrThrow, License: CC0 (required by "Array.of", "default")