Skip to content

Instantly share code, notes, and snippets.

@rpavlik
rpavlik / settings.json
Last active January 22, 2026 00:56
Go away copilot and other slop machines (in vscode)
{
// go away copilot and other ai slop machines
"accessibility.verbosity.inlineChat": false,
"accessibility.verbosity.panelChat": false,
"ansible.lightspeed.suggestions.waitWindow": 360000,
"chat.agent.enabled": false,
"chat.agent.maxRequests": 0,
"chat.commandCenter.enabled": false,
"chat.detectParticipant.enabled": false,
"chat.disableAIFeatures": true,
@jfeilbach
jfeilbach / firefox_snap.md
Last active January 22, 2026 11:54
Ubuntu 24.04 remove Firefox snap and install .deb version

Ubuntu 24.04 Firefox snap replacement

I need a proper Firefox installation and not the snap version. The snap version does not work properly with Smart Cards. Although it seems to be possible to get it to work with smart cards it is extremely difficult and I don't care to try and make it work. This is not a tutorial on how to get your PIV or CAC to work. Also snaps suck. Canonical will heopfully abandon snaps in the future.

Remove Snap Firefox

sudo snap disable firefox
sudo snap remove --purge firefox
error: cannot perform the following tasks:
- Remove data for snap "firefox" (1943) (unlinkat /var/snap/firefox/common/host-hunspell/en_ZA.dic: read-only file system)
@olilarkin
olilarkin / IPlugEffect.cpp
Created November 30, 2020 11:31
VST3 Sample accurate parameters
#include "IPlugEffect.h"
#include "IPlug_include_in_plug_src.h"
#include "IControls.h"
IPlugEffect::IPlugEffect(const InstanceInfo& info)
: Plugin(info, MakeConfig(kNumParams, kNumPresets))
{
GetParam(kGain)->InitDouble("Gain", 0., 0., 100.0, 0.01, "%");
}
@olilarkin
olilarkin / IPlugEffect.cpp
Last active April 5, 2022 03:05
Get access to IPlugAPPHost stuff (MIDI/Audio Device names) in plugin class
#include "IPlugEffect.h"
#include "IPlug_include_in_plug_src.h"
#include "IControls.h"
IPlugEffect::IPlugEffect(const InstanceInfo& info)
: Plugin(info, MakeConfig(kNumParams, kNumPresets))
, mPAPPHost(reinterpret_cast<IPlugAPPHost*>(info.pAppHost))
{
GetParam(kGain)->InitDouble("Gain", 0., 0., 100.0, 0.01, "%");
@mahemoff
mahemoff / README.md
Last active October 24, 2025 20:08
Vim Terminal Mode - A short introduction

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings

@hkuno9000
hkuno9000 / git-diff-excel.md
Last active January 16, 2026 05:58
How to git diff for MS-Excel files(xls/xlsx) on Windows-OS

How to git diff for MS-Excel files(xls/xlsx) on Windows-OS

  1. Download the xdoc2txt tool from: http://ebstudio.info/home/xdoc2txt.html#download
  2. extract "xdoc2txt.exe" and locate it on your PATH folder
  3. edit your gitattributes as A:
  4. edit your gitconfig as B:

A: append following texts to "~/.config/git/attributes" or ".git/info/attributes"

*.xls	diff=xdoc2txt
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream