Skip to content

Instantly share code, notes, and snippets.

View tavinus's full-sized avatar

Gustavo Arnosti Neves tavinus

View GitHub Profile
@tavinus
tavinus / puppeteerDebianHeadless.md
Created September 11, 2020 09:14
Minimal Puppeteer NodeJS Debian 10 Buster

System

Debian 10 Buster headless

Chromium dependencies

Shared Libraries needed

$ sudo apt install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0

Install nvm

Local user

@tavinus
tavinus / acme-proxmox-dynu.md
Last active March 29, 2024 17:15
Using acme.sh on the proxmox host (with Dynu DNS)

Proxmox + acme.sh

Using acme.sh on the proxmox host to generate Letsencrypt certificates

With this we show how to use acme.sh instead of the original Letsencrypt interface.

Acme.sh is just a Bash script that can run on pretty much any *nix environment.
It is quite simple but also quite powerfull.

In this guide I will use the cheap and good Dynu service to configure a domain.

@tavinus
tavinus / rem_proxmox_popup.sh
Last active February 27, 2024 22:47
Remove PROXMOX 5.x / 6.x / 7.3-4 subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@tavinus
tavinus / find-chmod.md
Last active February 25, 2024 02:54
find-chmod

First, cd into the folder that permissions will be changed.

No Sudo

Files 644 / Folders 755

find . -type d -exec chmod 0755 {} \; && find . -type f -exec chmod 0644 {} \;
@tavinus
tavinus / onlyofficeInstall.sh
Last active February 25, 2024 02:54
Install OnlyOffice 7.2.4 on Debian 11 Bullseye
#!/bin/bash
##########################################################################
# Tavinus Nov 2022
#
# https://gist.github.com/tavinus/64b89730e8deb5253e66cce3b5a6b21f
# This is a work in progress, use at your own risk
#
# The POSTGRES password is 'onlyoffice' and
# it will be asked during install
@tavinus
tavinus / deb10bitwardenInstall.md
Last active February 16, 2024 00:06
Debian 10 BitwardenRS install (no docker)
@tavinus
tavinus / menu-template.bat
Last active February 15, 2024 19:15
Template de programa .bat com menu
:: Fonte original: https://www.youtube.com/watch?v=Rb4-Ff55-YI
::
:: Modificado para não fechar a janela do CMD ao final
:: Se abrir do explorer ainda fecha, se abrir do prompt não
::
:: Desativadas as opções 1, 2 e 3 (seguro contra idiotas)
::
:: tavinus @ 17/12/2020
::
:: v0.0.4
@tavinus
tavinus / as_deb_install.sh
Last active February 5, 2024 19:42
Instalar Linx Autosystem Debian, Mint, Ubuntu (via Repo Fatux)
#!/bin/bash
####################################################################################################
##
## Instalador do pacote do Autosystem para Debian, Mint e Ubuntu
## as_deb_install.sh
##
## One-liner:
## wget 'https://gist.githubusercontent.com/tavinus/146bdce3695cae9cfec02b534c2ff30f/raw/as_deb_install.sh' && sudo chmod +x as_deb_install.sh && sudo ./as_deb_install.sh
##
@tavinus
tavinus / onlyofficeDocsLXCBuster.md
Last active February 3, 2024 19:05
OnlyOffice Docs into a LXC Debian 10