Skip to content

Instantly share code, notes, and snippets.

View marvhus's full-sized avatar
🎯
Focusing

Martin H. marvhus

🎯
Focusing
View GitHub Profile
@t-mart
t-mart / netrw quick reference.md
Last active October 17, 2025 21:15
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@ankurk91
ankurk91 / github_gpg_key.md
Last active August 6, 2025 12:14
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@wojteklu
wojteklu / clean_code.md
Last active November 3, 2025 03:19
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@ross-spencer
ross-spencer / pull-requests-in-github.md
Last active March 2, 2023 10:45
How to do simple pull requests in GitHub

How to do simple pull requests in GitHub

A pull request is a request to merge your work on a codebase or repository into another's master repository.

It is a mechanism by which users can contribute to Open Source projects even if they're not part of any 'official' development team.

That's the benefit of open source software - anyone can contribute if they take the time to understand and follow the right procedures!

What are we going to do?

@konarev
konarev / gist:0c8dda014ab0c87403f356a52b48c61a
Created February 1, 2018 07:00
~/.config/compton.conf
backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
vsync = "opengl-swc";
unredir-if-possible = true;
# Shadow
shadow = true; # Enabled client-side shadows on windows.
no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true; # Don't draw shadows on DND windows.
@yogidevbear
yogidevbear / emacs-keybinding-cheatsheet.md
Last active March 24, 2025 15:57
Emacs keybinding cheatsheet
Keys Description
C Ctrl
M Alt
Helper functions:
C-h k key-binding Describe the function bound to the key binding. To get this to work, you actually perform the key sequence after typing C-h k.
C-h f Describe function.
Cider/REPL bindings:
M-x cider-jack-in Jack into the REPL
Window key bindings:
@tonetheman
tonetheman / libraryfinder.cpp
Created September 1, 2018 12:40
Johnathan Blow's pastebin - a windows library finder
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@A6GibKm
A6GibKm / mu4e.md
Last active November 28, 2024 05:48
Read your emails with mu4e

Connecting emacs and Protonmail Bridge

This guide will cover the basics on how to integrate emacs with protonmail-bridge using

Configuring mbsync

@zrajm
zrajm / lubuntu-rc.xml
Last active March 7, 2025 23:44
Openbox Keybindings for Window Tiling (using windows key + arrow keys).
<!--
Keybindings for Window Tiling
=============================
For the below code to work insert it into the <keyboard> section of your
openbox config. On Lubuntu it's called `~/.config/openbox/lubuntu-rc.xml`, and
on Arch `~/.config/openbox/rc.xml`. To reload the config after modifying it,
you can either logout and login again, or run the command
openbox -\-reconfigure
@jdah
jdah / .vimrc
Created June 14, 2021 11:54
jdh's NeoVim .vimrc
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'vim-airline/vim-airline'
Plug 'wlangstroth/vim-racket'
Plug 'sheerun/vim-polyglot'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'universal-ctags/ctags'
Plug 'luochen1990/rainbow'
Plug 'vim-syntastic/syntastic'