Skip to content

Instantly share code, notes, and snippets.

View tavinus's full-sized avatar

Gustavo Arnosti Neves tavinus

View GitHub Profile
@tavinus
tavinus / simpleColors.sh
Last active December 6, 2023 23:55
"universal" terminal colors
#!/bin/sh
# Gustavo Arnosti Neves - Dec 2018
# Modified from many other snippets
# Adapted to work virtually anywhere
# Works on busybox/ash
# This script: https://gist.github.com/tavinus/925c7c9e67b5ba20ae38637fd0e06b07
# SO reference: https://stackoverflow.com/questions/16843382/colored-shell-script-output-library
@tavinus
tavinus / as_clean_install.sh
Last active September 16, 2020 14:25
Autosystem Cleaner install
#!/bin/bash
####################################################################################################
##
## Instalador AutoSystem Cleaner para Debian, Mint e Ubuntu
## as_clean_install.sh
##
## One-liner:
## wget 'https://gist.githubusercontent.com/tavinus/24d0ddcb3b8ded9372756a41c8bcaf3d/raw/as_clean_install.sh' && sudo chmod +x as_clean_install.sh && sudo ./as_clean_install.sh
##
@tavinus
tavinus / install_acmesh_using_git.md
Last active December 4, 2019 01:05
Install acme.sh using Git and create certificates using Dynu DNS

Base install / run

Get root shell

$ sudo su -

Install git and socat if needed (e.g.)

# apt install git socat

Create work folder (/root/src)

@tavinus
tavinus / nc-files_texteditor-install.md
Last active June 15, 2022 16:22
Nextcloud Disable Text App and install old Text Editor

Revert Nextcloud's Text Editor

Unfortunatelly the new Nextcloud Text App is not yet usable in production because it does not support plain text editing very well and breaks the exibition and editing of many plain text formats. It may also cause data loss when trying to format some file types (this may not be the case anymore, check the devs).

Seems like the main issue is to align the Colaboration with the rich/raw modes. But there are other problems as well.

In any case, we will just disable the current Text app and manually install the old App.

Disable Text App

  • Click on Your icon > Apps
@tavinus
tavinus / .gitignore
Created March 16, 2020 18:54
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@tavinus
tavinus / upgrade-nghttp2
Created April 3, 2020 23:25 — forked from noplanman/upgrade-nghttp2
Upgrade nghttp2 for brew with a fix for older MacOS versions
#!/usr/bin/env bash
# Update brew repo.
printf "%s" "Updating brew repo..."
brew update &> /dev/null
echo "✅"
# Get the currently installed and new version of nghttp2.
printf "%s" "Fetch installed and stable nghttp2 versions..."
VERSION_INSTALLED="$(brew list --versions | grep nghttp2 | awk '{print $2}')"
@tavinus
tavinus / deb10bitwardenInstall.md
Last active February 26, 2025 05:25
Debian 10 BitwardenRS install (no docker)

Bitwarden RS Debian 10 Install

This is how I installed the Rust implementation of bitwarden into a Proxmox Debian 10 LXC Container. It should work on any Debian 10 install (virtual or metal). I dislike running docker inside LXC containers for obvious reasons, so this is how I did it.

References

Prepare Base System

$ sudo apt update
@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 / timestampToHuman.md
Last active September 23, 2020 20:25
Convert an epoch timestamp to a human readable format
@tavinus
tavinus / onlyofficeDocsLXCBuster.md
Last active August 20, 2025 20:21
OnlyOffice Docs into a LXC Debian 10