Skip to content

Instantly share code, notes, and snippets.

View marvhus's full-sized avatar
🎯
Focusing

Martin marvhus

🎯
Focusing
View GitHub Profile
@t-mart
t-mart / netrw quick reference.md
Last active July 22, 2024 19:41
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 June 7, 2024 14:31
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 July 24, 2024 12:04
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 November 14, 2023 15:35
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:
@A6GibKm
A6GibKm / mu4e.md
Last active July 14, 2024 21:42
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

@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'
@jdah
jdah / .tmux.conf
Created July 15, 2021 12:47
.tmux.conf
# plugins
set -g @plugin 'thewtex/tmux-mem-cpu-load'
# Remap prefix to C-a
set -g prefix 'C-\'
unbind-key C-b
unbind-key C-a
# vi-like keybindings
@MkItReignn
MkItReignn / .vimrc
Last active July 18, 2022 22:03 — forked from jdah/.vimrc
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'