Skip to content

Instantly share code, notes, and snippets.

View jfollmann's full-sized avatar
🏠
Working from home

Jefferson Follmann jfollmann

🏠
Working from home
View GitHub Profile
@jfollmann
jfollmann / README.md
Created January 15, 2020 17:20 — forked from diego3g/README.md
Criação de servidor Node.js

Configuração do servidor

  1. Configurar chave SSH
  2. Criar Droplet
  3. Realizar update e upgrade
  4. Crua usuário adduser deploy e usermod -aG sudo deploy
  5. Cria pasta .ssh pro deploy
  6. cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
  7. chown -R deploy:deploy .ssh/
  8. chmod 700 .ssh
@jfollmann
jfollmann / dracula-terminator
Created January 3, 2020 16:49
Dracula color scheme for Terminator
(Reference: https://github.com/ItsJimi/dracula-terminator)
dracula-terminator
Dracula color scheme for Terminator
Install
Put config file in ~/.config/terminator/
[global_config]
@jfollmann
jfollmann / snippets.sh
Created December 17, 2019 12:31 — forked from IlyaKisil/snippets.sh
[Snippets] Snippets for bash
#!/usr/bin/env bash
set -e
function help() {
local _FILE_NAME
_FILE_NAME=`basename ${BASH_SOURCE[0]}`
cat << HELP_USAGE
@jfollmann
jfollmann / Backup MongoDB.md
Last active April 18, 2020 05:07
Backup mongo db's in shellscript with azure storage upload

Backup mongo db's in shellscript with azure storage upload

Add docker-compose in PATH

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

.env file

@jfollmann
jfollmann / InstalaçãoRabbitMQ
Created July 16, 2019 19:34
Instalação RabbitMQ
# Add the official rabbitmq source to your apt-get sources.list
sudo sh -c "echo 'deb http://www.rabbitmq.com/debian/ testing main' > /etc/apt/sources.list.d/rabbitmq.list";
# Install the certificate
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
rm rabbitmq-signing-key-public.asc
# Now install the latest rabbitmq
sudo apt-get update
cd /opt/f5/vpn/lib
sudo mv libssl.so.1.0.0 libssl.so.1.0.0_old
sudo mv libcrypto.so.1.0.0 libcrypto.so.1.0.0_old
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 libssl.so.1.0.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 libcrypto.so.1.0.0
@jfollmann
jfollmann / bluid-publish.sh
Created June 3, 2019 14:35
Custom VSTS Agent
docker build -t [REGISTRY_URL] .
docker push [REGISTRY_URL]
@jfollmann
jfollmann / Instalação SmartClient - Linux
Created May 24, 2019 16:58
Instalação SmartClient - Linux
Download do SmartClient:
https://suporte.totvs.com/portal/p/10098/download#all/all/all/search/smartclient
* Baixar versão: SMARTCLIENT VERSÃO 12 LINUX BUILD 13.2.3.38
Executar os seguintes passos (terminal):
mkdir /totvs
chmod 777 /totvs
cd /totvs
@jfollmann
jfollmann / .zshrc
Last active July 26, 2021 19:34
zsh configs
# cat ~/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/${USER}/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
@jfollmann
jfollmann / TOTVS - Printer-Addrs
Last active February 12, 2020 14:13
TOTVS - Printer-Addrs
1) sudo apt-get install smbclient
2) Additional Printer Settings
3) Add
4) Network Printer > Windows Printer via SAMBA
4.1) URL: smb://10.51.1.120/POACloudPrinter-Mono
4.2) User: poa01\jefferson.follmann
4.3) LexMark > MX510