View registro_igreja_alema.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View knapsack_breadth_first_search
This file contains 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
# Author: Pedro Borges | |
import heapq | |
import sys | |
def knapsack(val, wt, total_w): | |
elements = transform_to_list_dict(val, wt) | |
open_list = [] | |
closed_list = [] | |
# set to mark the nodes already seen | |
generated_nodes = set() |
View zsh
This file contains 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
for file in *.pdf; do sips -s format png "$file" --out "${file%.pdf}.png"; done ▼ at 10:43:40 |
View gist:3d8b0c2beacd28e3c02ec41b54049fa7
This file contains 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
gh issue transfer <issue ID> <destination repo> | |
So a few shell pipes later and we have this: | |
gh issue list -s all -L 500 --json number | \ | |
jq -r '.[] | .number' | \ | |
xargs -I% gh issue transfer % https://github.com/<destination repo> |
View gist:0cdc40f573888b0b0faebec683a09ddf
This file contains 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
softwareupdate --install-rosetta --agree-to-license | |
grep RosettaUpdateAuto.pkg /var/log/install.log | |
#open RosettaUpdateAuto in the found folder | |
# go to terminal.app in finder and click in Get Info (right click) | |
#click in open with rosetta | |
# open terminal | |
arch | |
#should show intel i386 | |
# now you can install nvm install v6.9.1 | |
nvm install v6.9.1 |
View Proxmox
This file contains 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
## login | |
get address in terminal and open in browser | |
## source lists | |
rm /etc/apt/sources.list.d/pve-enterprise.list | |
root@pve:/etc/apt/sources.list.d# nano pve-no-subscription.list | |
--------------------- | |
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription | |
/etc/apt/sources.list |
View gist:de1c616f7b6e366d9d8b6e408ad97e80
This file contains 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
I recently spent a unimaginable amount of time installing MinionPro to use with latex. Here is how I eventually did it: | |
1) installed text-live 2021 full, the limited no-gui version did not work: | |
brew install --cask mactex | |
brew install lcdf-typetools | |
2) convert Minion otf files into the format text wants it. | |
git clone git\@github.com:sebschub/FontPro.git | |
cd FontPro | |
cp -r $path-to-otf-files . | |
# The files are now in a otf dir inside FontPro dir | |
sudo su |
View gist:15a448c36b90ffb628509f36c483f3ee
This file contains 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
Instead of using brew to install gpg, installed GPG Tools | |
add "/usr/local/MacGPG2/bin/" to path or alias gpg to /usr/local/MacGPG2/bin/gpg2 | |
follow instructions |
View icpbrasil.txt
This file contains 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
É uma vergonha, mas o ICP-Brazilv5 foi lançado em 2016 e até hoje um Chrome ou Safari atualizado ainda não reconhece a cadeira de certficação brasileira. | |
No site do ITI, há uma explicação para quem tem Windows. | |
Para quem tem Mac, aqui a solução: | |
1) Baixar os certificados raiz do ICP Brasil em: http://acraiz.icpbrasil.gov.br/repositorio/v1_v2_v5_v8_v9_goochr.p7b | |
2) Após baixar, clique duplo para instalar. | |
3) No software Keys (Acesso às chaves), encontre os certificados de Autoridade Certificadora Raiz Brasileira e, em cada um deles, dê um clique duplo | |
4) abra a aba "Confiança" e altere "Ao usar este certificado" para "Confiar sempre" |
View cuda_installation_on_ubuntu_18.04
This file contains 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
# first get the PPA repository driver | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
# install nvidai driver | |
sudo apt install nvidia-384 nvidia-384-dev | |
# install other import packages | |
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev | |
# CUDA 9 requires gcc 6 |
NewerOlder