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 / .tmux.conf
Created October 27, 2024 03:59
Tmux config
setw -g mode-keys vi
set -g activity-action other
set -g assume-paste-time 1
set -g base-index 0
set -g bell-action any
set -g default-command ''
set -g default-shell /usr/bin/fish
set -g default-size 80x24
set -g destroy-unattached off
set -g detach-on-destroy on
@gogromat
gogromat / fix.md
Last active July 20, 2024 18:34
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 / nvidia_debian_hacks.md
Last active November 29, 2024 15:53
NVIDIA fixes on Debian
@gogromat
gogromat / FF_Custom_Colors_Rmv_Tabs.md
Last active August 12, 2024 16:39
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