Skip to content

Instantly share code, notes, and snippets.

View tavinus's full-sized avatar

Gustavo Arnosti Neves tavinus

View GitHub Profile
@tavinus
tavinus / dwagent_uninstall.md
Last active December 10, 2020 23:13
Manual Uninstall dwagent from Windows

DWAgent Manual Uninstall

We faced a situation where the DWAgent client would not run and we could not uninstal or reinstall it.

The solution is to manually remove it before installing again.

This guide is for Windows 10, it may work for other Windows versions as well.

1- Delete the program folder

%PROGRAMFILES%\DWAgent
@tavinus
tavinus / nextcloud_cron_tweaks.md
Last active December 24, 2022 12:29
Nextcloud Cron Tweaks

Making Nextcloud's Cron Behave

Nextcloud needs frequent background jobs to keep running properly.

Depending on the situation this "cron job" may take a very long time, overlapping with the default 5 minute delay between jobs. Which may end up running several instances of the job.

To mitigate this we have 2 options:

  • Use a systemd service+timer
  • Encapsulate the cronjob into a bash script that checks if it is already running

The systemd approach has official support and will (by default) not run on top of a previous run (if still running).

@tavinus
tavinus / youtube-dl-mp4.md
Last active November 21, 2020 21:47
Bash alias for forced MP4 youtube-dl

Youtube-DL MP4

Add the alias to your shell profile.

Depending on your system, shell and local/remote connection, the file sourced(loaded) may change.

For BASH and Debian, you could edit ~/.bash_profile

nano ~/.bash_profile
@tavinus
tavinus / index.html
Created October 27, 2020 20:52
Space 404
<div class="moon"></div>
<div class="moon__crater moon__crater1"></div>
<div class="moon__crater moon__crater2"></div>
<div class="moon__crater moon__crater3"></div>
<div class="star star1"></div>
<div class="star star2"></div>
<div class="star star3"></div>
<div class="star star4"></div>
<div class="star star5"></div>
@tavinus
tavinus / onlyofficeDocsLXCBuster.md
Last active February 3, 2024 19:05
OnlyOffice Docs into a LXC Debian 10
@tavinus
tavinus / timestampToHuman.md
Last active September 23, 2020 20:25
Convert an epoch timestamp to a human readable format
@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 / deb10bitwardenInstall.md
Last active February 16, 2024 00:06
Debian 10 BitwardenRS install (no docker)
@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 / .gitignore
Created March 16, 2020 18:54
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #