Compare commits

...

5 Commits

Author SHA1 Message Date
Érico Nogueira b38841d348 Add LaTeX template.
Initial basic script + super basic article template. Useful for exercise
lists, at least.
2021-10-13 01:27:22 -03:00
Érico Nogueira bfe2d677a5 Update fish aliases. 2021-10-13 01:27:22 -03:00
Érico Nogueira 73b076293a Update network setup.
- actually unbound to packages
- add more DNS fallbacks (alternative Google and CF ones + Comodo)
- add resolv.conf
2021-10-13 01:27:15 -03:00
Érico Nogueira 99fadabba4 Add FFmpeg tips.
Based on
https://unix.stackexchange.com/questions/28803/how-can-i-reduce-a-videos-size-with-ffmpeg
2021-09-29 19:47:54 -03:00
Érico Nogueira 3b92651892 Update nvim config.
- add goyo
- add paragraph navigation shortcuts
2021-09-29 19:46:48 -03:00
11 changed files with 56 additions and 3 deletions

3
.gitmodules vendored
View File

@ -19,3 +19,6 @@
[submodule "sourcecode/subprojects/ep"]
path = sourcecode/subprojects/ep
url = https://github.com/ericonr/ep.git
[submodule "nvim/.config/nvim/pack/plugins/start/goyo.vim"]
path = nvim/.config/nvim/pack/plugins/start/goyo.vim
url = https://github.com/junegunn/goyo.vim.git

View File

@ -22,6 +22,8 @@ alias cargotmp='env CARGO_TARGET_DIR=/tmp/cargo/(basename (pwd)) cargo'
alias rebase-up='git pull upstream master --rebase --autostash'
alias gg='git grep'
function statusgit --argument show \
--description "Show git status for all directories in the current directory. Requires omf."
if test -z $show

View File

@ -31,7 +31,7 @@ alias weather='curl wttr.in/'
## Aliases for quick grepping
alias rgmod='lsmod | grep -i'
alias rug='ug --ignore-files --sort -r'
alias rug='ug --ignore-files --sort -nr'
function watchps --description "Watch process(es)"
set _p (pgrep -f "$argv[1]")

View File

@ -13,6 +13,10 @@ set smartcase
" SHORTCUTS
" Shortcuts for paragraph nagivation
:nmap j gj
:nmap k gk
" Shortcuts for quickly going back to normal mode
:imap jk <Esc>
:imap kj <Esc>

@ -0,0 +1 @@
Subproject commit a865dec7ca7616dbbd69315ad1417b84d0c411f8

4
tex/.local/bin/create-tex Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
n="$1"
cp ~/.local/share/template.tex "$n"

View File

@ -0,0 +1,24 @@
\documentclass[11pt,a4paper]{article}
% https://guides.nyu.edu/c.php?g=601858&p=4168138
%\title{Title}
%\author{Érico Nogueira Rolim}
%\date{}
\usepackage[margin=2cm]{geometry}
%\usepackage{amsmath}
% https://guides.nyu.edu/c.php?g=601858&p=4168138
\newcommand{\question}[2][]{\begin{flushleft}
\textbf{Questão #1}: #2
\end{flushleft}}
\newcommand{\sol}{\textbf{Solução}:\newline}
\begin{document}
%\maketitle
%\tableofcontents
\end{document}

14
void/reference/ffmpeg.md Normal file
View File

@ -0,0 +1,14 @@
# FFmpeg
## Resize video
Base command: `ffmpeg -i <input> <output>`
Intermediary options:
- `-vcodec libx265|libx264`
- `-crf <value>` reasonable range for h265 is 24 to 30, 34 still looks like something
- `-b <number>k` bitrate (per second)
- `-fs <number>` file size limit
- `-vf "scale=trunc(iw/4)*2:trunc(ih/4)*2"` filter to scale by half
- `-vf scale=1280:720` filter to scale to 720p

View File

@ -0,0 +1 @@
nameserver 127.0.0.1

View File

@ -2,6 +2,6 @@
# See resolvconf.conf(5) for details
resolv_conf=/dev/null
name_servers="8.8.8.8 1.1.1.1"
name_servers="8.8.8.8 1.1.1.1 8.8.4.4 1.0.0.1 8.26.56.26 8.20.247.20"
private_interfaces="*"
unbound_conf=/etc/unbound/resolvconf.conf

View File

@ -31,7 +31,7 @@ assemble_list() {
done
}
base="chrony elogind iwd wireguard-tools openresolv vsv socklog-void doas font-spleen"
base="chrony elogind iwd wireguard-tools openresolv unbound vsv socklog-void doas font-spleen"
base_desc="$(print_item base) Install base system utilities."
luks="cryptsetup"