Skip to content

Instantly share code, notes, and snippets.

@akar-0
akar-0 / MC Cheat Sheet
Created August 9, 2021 15:57 — forked from samiraguiar/MC Cheat Sheet
Midnight Commander Cheat Sheet / Shortcuts
Note for newcomers:
In the shortcuts below, "C" stands for CTRL and "A" stands for "ALT". This is a convention
used in the Midnight Commander documentation and was kept here.
Main View
---------------------------------------------------------------
- File/directory operations
F3 View file
Shift + F3 View raw file (disregard extension)
F5 Copy selected files
@akar-0
akar-0 / vim-cheats.md
Created August 29, 2020 08:26 — forked from Starefossen/vim-cheats.md
My vim cheat sheet for working with tabs and window splits.

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab
@akar-0
akar-0 / tmux-cheatsheet.markdown
Created August 23, 2020 22:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@akar-0
akar-0 / sha1.py
Created August 20, 2020 19:52 — forked from techtonik/sha1.py
Calculate SHA-1 of a file in Python
#!/usr/bin/env python
"""
usage: python -m sha1 <filename>
"""
import sys
import hashlib
# --- these fields are required for packaging
__version__ = '1.0'
__author__ = 'anatoly techtonik <techtonik@gmail.com>'
@akar-0
akar-0 / dochroot.sh
Last active March 22, 2024 18:20 — forked from kc2zgu/dochroot.sh
chroot script
#!/bin/bash
# dochroot.sh: set up and enter chroot environment for a Gentoo install
#
# Copyright 2019 Stephen Cavilia <sac@atomicradi.us>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.