Skip to content

Instantly share code, notes, and snippets.

View chrisherb's full-sized avatar

Chris chrisherb

View GitHub Profile
@Archisman-Mridha
Archisman-Mridha / neovim.cheatsheet.md
Last active January 2, 2026 18:06
Neovim cheatsheet

Anatomy of a motion - Command + Count + Motion

Navigation

  • Jump to beginning of line : 0 | jumps to the first non-whitespace character : _
  • Jump to end of line : $
  • Move forward by 1 word : jumps to beginning of the next word : w | jumps to end of the next word : e
  • Move backward by 1 word : jumps to beginning of the previous word : b | jumps to end of the previous word : ge
  • Jump to beginning of the file : gg
  • Jump to end of the file : G
  • Move forward to the next instance of the character (( in this case) : f( // NOTE : Repeat motion using , (for backwards movement) or ; (for forward movement)
@olilarkin
olilarkin / IPlugOverSampler.cpp
Last active October 23, 2025 14:52
IPlugOverSampler
#include "IPlugOverSampler.h"
#include "IPlug_include_in_plug_src.h"
IPlugOverSampler::IPlugOverSampler(const InstanceInfo& instanceInfo)
: Plugin(instanceInfo, MakeConfig(kNumParams, kNumPrograms))
{
GetParam(kGain)->InitDouble("Gain", 1., 1., 100.0, 0.01, "*");
GetParam(kOverSampling)->InitEnum("OverSampling", 0, 5, "", 0, "", OVERSAMPLING_FACTORS_VA_LIST);
}
@hachesilva
hachesilva / restart-cinnamon-in-linux-mint.txt
Created March 5, 2019 15:24
Several ways to restart Cinnamon in Linux Mint
1. Hit ctrl+alt+esc
2. Hit Alt+F2, type r, and press Enter
3. Switch to another tty, for example tty6, by pressing Ctrl+Alt+F6
Run:
pkill -HUP -f "cinnamon --replace"
Return to tty8 by pressing Ctrl+Alt+F8