Skip to content

Instantly share code, notes, and snippets.

View cyborgmarina's full-sized avatar
🏳️‍⚧️

marina cyborgmarina

🏳️‍⚧️
View GitHub Profile
@cyborgmarina
cyborgmarina / tmux.conf
Created May 16, 2020 12:57 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@cyborgmarina
cyborgmarina / keybase.md
Created January 25, 2019 09:20
keybase.md

Keybase proof

I hereby claim:

  • I am alcipir on github.
  • I am andrecabrera (https://keybase.io/andrecabrera) on keybase.
  • I have a public key ASBz1zIhJfpasCyWDyeNrMV51zNiji5MmilhDuCFr4J0pgo

To claim this, I am signing this object:

@cyborgmarina
cyborgmarina / gpg-import-and-export-instructions.md
Created July 3, 2017 03:36 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@cyborgmarina
cyborgmarina / eshell-path-env.el
Created June 28, 2017 20:42 — forked from mahata/eshell-path-env.el
eshell-path-env and PATH
(defun eshell-mode-hook-func ()
(setq eshell-path-env (concat "/usr/local/bin:" eshell-path-env))
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))
(define-key eshell-mode-map (kbd "M-s") 'other-window-or-split))
(add-hook 'eshell-mode-hook 'eshell-mode-hook-func)
@cyborgmarina
cyborgmarina / archlinux.org
Last active August 28, 2017 02:05
Arch Linux step-by-step
@cyborgmarina
cyborgmarina / screen.md
Last active May 16, 2020 12:49 — forked from fredrick/screen.md
GNU Screen Cheat Sheet

GNU Screen Cheat Sheet

Basics

  • ctrl a c -> cre­ate new win­dow
  • ctrl a A -> set win­dow name
  • ctrl a w -> show all win­dow
  • ctrl a 1|2|3|… -> switch to win­dow n
  • ctrl a " -> choose win­dow
  • ctrl a ctrl a -> switch between win­dow
  • ctrl a d -> detach win­dow

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname