Highly extensible software like Emacs, Vim, and Neovim tend to grow their own package managers. A software developer, for example, might want to install editor plugins that hook into a particular programming language's linter or language server. The programmer's text editor is therefore extended to support managing additional software to extend the text editor. If this loop continues for too long, the programmer's editor becomes more delicate and complex. The remedy for this problem is to manage software using dedicated tools apart
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
| # | |
| # This file supports http://davesteele.github.io/development/2021/08/29/python-asyncio-curses/ | |
| # | |
| import asyncio | |
| from abc import ABC, abstractmethod | |
| from curses import ERR, KEY_RESIZE, curs_set, wrapper | |
| import _curses |
Extracted from W3Challs Syscalls
| # | Name | eax | ebx | ecx | edx | esi | edi | ebp | Definition |
|---|---|---|---|---|---|---|---|---|---|
| 0 | restart_syscall | 0x00 | - | - | - | - | - | - | kernel/signal.c:2501 |
| 1 | exit | 0x01 | int error_code | - | - | - | - | - | kernel/exit.c:1095 |
| 2 | fork | 0x02 | - | - | - | - | - | - | arch/x86/kernel/process.c:271 |
| 3 | read | 0x03 | unsigned int fd | char *buf | size_t count | - | - | - | fs/read_write.c:460 |
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
| """ | |
| Example of using sub-parser, sub-commands and sub-sub-commands :-) | |
| """ | |
| import argparse | |
| def main(args): | |
| """ | |
| Just do something |
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
| import sys | |
| from subprocess import call | |
| import json | |
| import os | |
| import requests | |
| def download_gists(gists: list): | |
| for gist in gists: | |
| call(["git", "clone", gist["git_pull_url"]]) |
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
| " Specify a directory for plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'scrooloose/nerdtree' | |
| "Plug 'tsony-tsonev/nerdtree-git-plugin' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
| Plug 'ryanoasis/vim-devicons' | |
| Plug 'airblade/vim-gitgutter' |
This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.
Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.
You will find most of this information pulled from the Arch Wiki and other resources linked thereof.
Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.
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
| #!/bin/bash | |
| PUBLIC_IP4_IFACE=eth2 | |
| LISTEN_IFACE=${PUBLIC_IP4_IFACE} | |
| listen_address=$(ip -f inet addr show dev ${LISTEN_IFACE} | grep -Po 'inet \K[\d.]+') | |
| listen_port=${1} | |
| target_host=${2} | |
| target_port=${3} |
NewerOlder