- "[1-9] history registers
- "0 yank register
- "[a-z] named registers
- "[A-Z] named registers (append)
- "/ current search pattern
- "- small delete
- "= expression register
- "_ black hole register
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
| if not vim.loop.fs_stat(lazypath) then | |
| vim.fn.system({ | |
| "git", | |
| "clone", | |
| "--filter=blob:none", | |
| "https://github.com/folke/lazy.nvim.git", | |
| "--branch=stable", -- latest stable release | |
| lazypath, | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| //{"key": "ctrl+t", "command": "workbench.action.terminal.focus", "when": "!terminalFocus"}, | |
| //{"key": "ctrl+t", "command": "workbench.action.terminal.toggleTerminal", "when": "terminalFocus"}, | |
| {"key": "ctrl+t", "command": "workbench.action.terminal.toggleTerminal"}, | |
| //{"key": "ctrl+x", "command": "workbench.action.evenEditorWidths"}, | |
| //{"key": "ctrl+x", "command": "workbench.action.maximizeEditor"}, | |
| //{"key": "ctrl+x", "command": "workbench.action.nextPanelView"}, | |
| //{"key": "ctrl+x", "command": "workbench.action.openView"}, | |
| //{"key": "ctrl+x", "command": "workbench.action.quickOpenView"}, | |
| {"key": "ctrl+x", "command": "workbench.action.togglePanel"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # named by Alex Martelli in the Python Cookbook | |
| class Bunch(dict): | |
| def __init__(self, *args, **kwds): | |
| super(Bunch, self).__init__(*args, **kwds) | |
| self.__dict__ = self | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "window.zoomLevel": 0, | |
| "window.titleBarStyle": "custom", | |
| "workbench.startupEditor": "none", | |
| "editor.fontSize": 12, | |
| "editor.fontFamily": "'Fira Code', 'Courier New', monospace, 'Droid Sans Fallback'", | |
| "editor.fontLigatures": true, | |
| "editor.minimap.enabled": false, | |
| "editor.cursorBlinking": "solid", | |
| "editor.cursorStyle": "line", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| from contextlib import contextmanager | |
| from datetime import datetime | |
| import time | |
| @contextmanager | |
| def timer(): | |
| before = datetime.now() | |
| yield |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Starting from kernel 2.6.29, SSD disks are automatically detected, and you may verify this with: | |
| cat /sys/block/sda/queue/rotational | |
| You should get 1 for hard disks and 0 for a SSD. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdb bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| Check whether the dir ```/sys/firmware/efi``` exists, if it exists it means the kernel has booted in EFI mode. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| set nu | |
| set nuw=1 | |
| set autoread | |
| set t_Co=256 | |
| set background=dark | |
| colorscheme elflord | |
| syntax enable |