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
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 |
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
docker build -t [REGISTRY_URL] . | |
docker push [REGISTRY_URL] |
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
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 |
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
# 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 |
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 |
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
#!/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
// Execute: node spread-destructuring-rest-operator.js | |
// #### Spread Operator #### | |
const e1 = 'CODE'; | |
const r1 = [...e1]; | |
console.log('[01]', r1) | |
// Output => [ 'C', 'O', 'D', 'E' ] | |
const e2 = ['This', 'is', 'a', 'sentence']; | |
console.log('[02]', ...e2); |