Skip to content

Instantly share code, notes, and snippets.

@antelio
antelio / install-toolbox.sh
Last active May 9, 2021 01:34 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
# print('Hello World')
import os
print("User Name: ", os.environ.get('USERNAME'))
print("Locaweb VPN HOST: ", os.environ.get('LW_VPN_HOST'))
print("Locaweb VPN USER: ", os.environ.get('LW_VPN_USER'))
print("Locaweb VPN TOKEN: ", os.environ.get('LW_VPN_TOKEN'))
print("Locaweb VPN PIN: ", os.environ.get('LW_VPN_PIN'))
vpn_host = os.environ.get('LW_VPN_HOST')
vpn_user = os.environ.get('LW_VPN_USER')
@antelio
antelio / locaweb.sh
Created June 8, 2020 18:10
Locaweb VPN
#!/bin/bash
source /home/abe/.ssh/env.sh
# echo $LW_VPN_PIN
# echo $LW_VPN_TOKEN
# echo $LW_VPN_HOST
# echo $LW_VPN_USER
/* How many shift register chips are daisy-chained.
*/
#define NUMBER_OF_SHIFT_CHIPS 2
/* Width of data (how many ext lines).
*/
#define DATA_WIDTH NUMBER_OF_SHIFT_CHIPS * 8
chsh -s $(which zsh)
abe ALL=(ALL) NOPASSWD:ALL
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
service sshd restart
REPORT zbc_enq MESSAGE-ID mt.
PARAMETERS p_off RADIOBUTTON GROUP func DEFAULT 'X'.
PARAMETERS p_on RADIOBUTTON GROUP func.
*&---------------------------------------------------------------------*
*& Include ZXM08U16
*&---------------------------------------------------------------------*
******************************************************
* Validar se a Nota Fiscal foi preenchida corretamente
*
*DATA: nf(10) TYPE c,
* nf_out(7) TYPE c.
*
*&---------------------------------------------------------------------*
*& Report ZRBC003
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zrbc003.