https://linuxconfig.org/bash-scripting-tutorial
which bash
Bash shell script starts with shebang:#!
#!/usr/bin/env python3 | |
# para instalar as dependencias: | |
# python3 -m pip install zeep requests | |
from pathlib import Path | |
icp_cert_file_abs_path = str(Path(Path.home(), 'certs', 'icp_brasil_bundle.crt')) | |
print(icp_cert_file_abs_path) | |
import zeep # https://pypi.org/project/zeep/ |
https://linuxconfig.org/bash-scripting-tutorial
which bash
Bash shell script starts with shebang:#!
#!/bin/sh | |
# telegram | |
wget https://updates.tdesktop.com/tlinux/tsetup.0.9.42.tar.xz | |
tar xvfJ tsetup.0.9.42.tar.xz | |
mv Telegram/ /opt/telegram | |
rm -rf tsetup.0.9.42.tar.xz | |
#telegram image | |
wget https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Telegram_logo.svg/128px-Telegram_logo.svg.png |
#!/bin/sh | |
# Sublime Text 3 install with Package Control (last update: 25 September 2016) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# $ curl -L git.io/sublimetext | sh | |
# Detect the architecture |
# Exemplo com closure | |
def crazy_sum(): | |
acc = 0 | |
def wrapped(t): | |
nonlocal acc | |
sum_with_acc = sum(t) + acc | |
acc = max(0, sum_with_acc - 9) |
#!/bin/sh | |
# Sublime Text 3 Install (last update: Monday 13 March 2017) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# curl -L git.io/sublimetext | sh | |
# Detect the architecture |
As configured in my dotfiles.
start new:
tmux
start new with session name: