Skip to content

Instantly share code, notes, and snippets.

@paulschick
paulschick / ytarchive-background.sh
Created December 18, 2023 18:12
Download a YouTube live stream with ytarchive running in the background
#!/bin/bash
function yt {
printf "Downloading stream at:\t'$1'\n"
nohup $HOME/go/bin/ytarchive -q -w -o '%(channel)s/%(upload_date)s_%(title)s' "$1" best 2>&1 > ytarchive-"$(date +%Y%m%d-%H%M%S)".log &
}
@paulschick
paulschick / actionlist.vim
Created July 19, 2023 15:37 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@paulschick
paulschick / git-submodule-cheatsheet.md
Created July 6, 2023 17:09
Cheat Sheet for Git submodules

Git Submodule Cheatsheet

Think about Git submodules as managing nested repositories. You have an outer (parent) repository and one or more inner (child) repositories. The child repositories are called submodules. When you register the child repository as a submodule with the parent repository, it will register the presence of the submodule in a .gitmodules file.

Creating a Submodule

This section explains how to create an register a new submodule in your parent repository.

@paulschick
paulschick / git-update-index-cheatsheet.md
Created July 4, 2023 21:08
A cheetsheat for git update-index operations.

Git Index Cheat Sheet

Overview

The Git index is known as the staging area. This is where you can manipulate tracked files. We'll focus on git update-index to manage files that are assumed unchanged.

Commands

Mark a File as Unchanged

@paulschick
paulschick / http-status-codes-cheatsheet.md
Created June 20, 2023 20:05
HTTP Status Codes Cheat Sheet

HTTP Status Code Cheat Sheet

1xx: Informational

These codes indicate that the request was received and is being processed.

  • 100 Continue: The initial part of the request has been received, and the client should continue to send the rest of the request.
  • 101 Switching Protocols: The server is switching protocols as requested by the client.

2xx: Success

@paulschick
paulschick / git-tag-cheatsheet.md
Created June 20, 2023 20:00
Git Tag Cheat Sheet

Git Tag Cheat Sheet

List Tags

List all the tags in the repository:

git tag
@paulschick
paulschick / init.vim
Created September 4, 2021 09:25
Current init.vim and vim plugs
source $HOME/.config/nvim/vim-plug/plugins.vim
" enter normal mode with
inoremap jk <ESC>
" open nerd tree with ctrl + n
nmap <C-n> :NERDTreeToggle<CR>
vmap ++ <plug>NERDCommenterToggle
nmap ++ <plug>NERDCommenterToggle
@paulschick
paulschick / curl.md
Created July 16, 2021 17:41 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.