sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
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
# 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, |
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
// Examples of https://medium.com/@alvaro.saburido/set-theory-for-arrays-in-es6-eb2f20a61848 | |
const arrA = [1, 3, 4, 5]; | |
const arrB = [1, 2, 5, 6, 7]; | |
const intersection = arrA.filter((x) => arrB.includes(x)); | |
console.log('Intersection: ', intersection); | |
console.log('Expected: [1,5]'); | |
const difference = arrA.filter((x) => !arrB.includes(x)); | |
console.log('\nDifference: ', difference); |
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
Geração de certificado SSL com o Let's Encrypt | |
#1) Instalação | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update | |
sudo apt-get install certbot | |
#2) Geração de um novo certificado |
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
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 |
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
#!/bin/bash | |
# Reference: https://superuser.com/a/12976 | |
if [[ $# -lt 1 ]] ; then | |
echo "Usage: findhardlinks <fileOrDirToFindFor> ..." | |
exit 1 | |
fi | |
while [[ $# -ge 1 ]] ; do | |
echo "Processing '$1'" |
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
(Reference: https://github.com/ItsJimi/dracula-terminator) | |
dracula-terminator | |
Dracula color scheme for Terminator | |
Install | |
Put config file in ~/.config/terminator/ | |
[global_config] |
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
# This is Git's per-user configuration file. | |
[color] | |
ui = auto | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto | |
[user] | |
name = Jefferson Follmann | |
email = jeff.follmann@gmail.com |
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
#!/usr/bin/env bash | |
set -e | |
function help() { | |
local _FILE_NAME | |
_FILE_NAME=`basename ${BASH_SOURCE[0]}` | |
cat << HELP_USAGE |