Skip to content

Instantly share code, notes, and snippets.

Avatar

Lincoln de Macêdo demacdolincoln

  • Brasil
View GitHub Profile
View show_zellij_theme_colors.fish
for i in (cat ~/.config/zellij/config.yaml | rg "\[\d+, \d+, \d+\]")
echo $i | sd " " "" | read -d ":" -l colorname rgb
set c "#"
for j in (echo $rgb | grep -ohP "\d+" )
set c $c(python -c "print(hex($j)[2:])")
end
set_color $c; echo $colorname: $c
end
View README.md

no ~/.config/sway/config:

bindsym $mod+F11 exec fish -c "get_pass_passwd"
bindsym $mod+F12 exec fish -c "get_pass_otp"

a ideia:

  1. wl-copy -o faz com que o conteúdo copiado seja usado apenas 1 vez, e depois que copia o nome de usuário ou email, o -f faz esperar pelo uso do que foi copiado para seguir o resto das instruções, então automaticamente copia o nome de usuário e depois a senha, ambos sendo usados apenas 1 vez.
View roteiro_Arch_UEFI_BTRFS.md

Roteiro de instalação do ArchLinux

configurando coisas básicas no modo live

loadkeys br-abnt2

#---> se precisar se conectar ao wifi, basicamente:

iwctl

@demacdolincoln
demacdolincoln / simple_example_rnn_regression_time_serie.ipynb
Created February 6, 2020 04:01
simple_example_rnn_regression_time_serie.ipynb
View simple_example_rnn_regression_time_serie.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / copy-of-tensorboard-fastai.ipynb
Created February 1, 2020 06:00
Copy of tensorboard-fastai.ipynb
View copy-of-tensorboard-fastai.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / CNN.py
Created January 11, 2019 16:33
simple pytorch cnn
View CNN.py
class CNN(nn.Module):
def __init__(self):
super(CNN, self).__init__()
self.conv1 = nn.Sequential(
nn.Conv2d(1, 16, 5, stride=2),
nn.ReLU(),
nn.MaxPool2d(kernel_size=2)
)
self.conv2 = nn.Sequential(
nn.Conv2d(16, 32, 5, stride=2),
View classificacao_simples_ao_extremo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / word2vec.ipynb
Last active September 23, 2018 20:35
word2vec
View word2vec.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View simple_regression-python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / simple_linear_regression-julia.ipynb
Created September 9, 2018 03:47
simples regressão linear em Julia
View simple_linear_regression-julia.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.