- view drives: fdisk -l
- gdisk <drive>
- d (delete) all
- efi: n, <default> - +512M, EFI
- root: n, <default> - -0, Linux Filesystem
- w (write and save)
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
| module Fixtures | |
| class EventWritten | |
| include TestBench::Fixture | |
| attr_accessor :stream_name | |
| attr_accessor :values | |
| attr_accessor :command | |
| attr_accessor :expected_version | |
| attr_accessor :command_attributes |
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
| require_relative "../../automated_init" | |
| context "Handle Commands" do | |
| context "Added" do | |
| context "Writes Added event" do | |
| id = Controls::Account.id | |
| account = Controls::Account::New.example | |
| add = Controls::Commands::Add.example | |
| time = Controls::Time::Processed.example |
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
| if &compatible | |
| set nocompatible " Be iMproved | |
| endif | |
| call plug#begin('~/nvim/plugged') | |
| " syntax | |
| Plug 'othree/yajs.vim' | |
| Plug 'othree/html5.vim' | |
| Plug 'vim-scripts/nginx.vim' |
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
| nmap <leader>gg :Gstatus<cr> | |
| nmap <leader>gb :Gblame<cr> | |
| nmap <leader>gr :Grebase<cr> | |
| nmap <leader>gp :Gpush<cr> | |
| nmap <leader>gu :Gpull<cr> | |
| nmap <leader>gw :Gbrowse<cr> | |
| vmap <leader>gw :Gbrowse<cr> | |
| nmap <leader>gb :Merginal<cr> | |
| " gist |
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
| { | |
| "languageserver": { | |
| "golang": { | |
| "command": "gopls", | |
| "rootPatterns": ["go.mod"], | |
| "filetypes": ["go"] | |
| }, | |
| "dockerfile": { | |
| "command": "docker-langserver", |
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
| vmap <TAB> <esc>mbgv=`bgv | |
| nmap <TAB> mb==`b | |
| imap <TAB> <C-R>=HandleITab()<cr> | |
| func! HandleITab() | |
| if pumvisible() | |
| return "\<c-n>" | |
| else | |
| return "\<ESC>==i" | |
| endif |
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
| (defun lsp--on-diagnostics (workspace params) | |
| "Callback for textDocument/publishDiagnostics. | |
| interface PublishDiagnosticsParams { | |
| uri: string; | |
| diagnostics: Diagnostic[]; | |
| } | |
| PARAMS contains the diagnostics data. | |
| WORKSPACE is the workspace that contains the diagnostics." | |
| (let* ((file (lsp--uri-to-path (gethash "uri" params))) | |
| (diagnostics (seq-map #'lsp--make-diag (gethash "diagnostics" params))) |
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 is similar to lisp, implicit return is super natural | |
| def this_is_expressive(arg) | |
| if arg | |
| query_one(arg) | |
| else | |
| query_two(arg) | |
| end | |
| end |
/etc/dnf/dnf.conf
fastestmirror=True
deltarpm=True
defaultyes=True
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm