Get-NetConnectionProfileSet-NetConnectionProfile -Name "Your Network Name" -NetworkCategory Private| apt install curl | |
| curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash - | |
| apt-get install -y nodejs npm | |
| npm install n8n -g | |
| n8n start |
| fdisk -l | |
| lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv | |
| resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv |
| #!/bin/bash | |
| echo " " | |
| echo "https://gist.github.com/antoniocampos" | |
| echo " " | |
| echo " " | |
| /etc/init.d/squid stop | |
| rm -rf /var/spool/squid | |
| mkdir /var/spool/squid/ | |
| chown proxy:proxy /var/spool/squid/ | |
| squid -z |
| #!/bin/bash | |
| echo " " | |
| echo "https://gist.github.com/antoniocampos" | |
| echo " " | |
| echo " " | |
| echo "You key bellow: " | |
| echo " " | |
| strings /sys/firmware/acpi/tables/MSDM | |
| echo " " | |
| dmidecode | grep -A8 'System Information' | grep -i UUID | awk '{print $2}' |
| xsd maindoc\UBL-ApplicationResponse-2.1.xsd common\UBL-CommonAggregateComponents-2.1.xsd common\UBL-CommonBasicComponents-2.1.xsd common\UBL-CommonExtensionComponents-2.1.xsd common\UBL-QualifiedDataTypes-2.1.xsd common\UBL-UnqualifiedDataTypes-2.1.xsd common\CCTS_CCT_SchemaModule-2.1.xsd /classes /namespace:UBL_ACAMPOS /nologo /order |
| ; add this lines to your .ovpn | |
| ; replace x.x.x.x with your local dns servers (the server that "know" the domain) | |
| dhcp-option DNS x.x.x.x | |
| dhcp-option DNS x.x.x.x | |
| ; replace antoniocampos.net by your local domain | |
| dhcp-option DOMAIN antoniocampos.net | |
| dhcp-option ADAPTER_DOMAIN_SUFFIX antoniocampos.net | |
| ; more important!! | |
| block-outside-dns |
| apt install curl apt-transport-https gnupg | |
| curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
| curl https://packages.microsoft.com/config/debian/10/prod.list | tee /etc/apt/sources.list.d/msprod.list | |
| curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | tee /etc/apt/sources.list.d/msprod.list | |
| apt-get update | |
| apt-get install -y mssql-server mssql-tools unixodbc-dev | |
| echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile | |
| source ~/.bashrc | |
| /opt/mssql/bin/mssql-conf setup | |
| # follow the steps! |
Se ainda não tens... instala o python https://www.python.org/downloads/
depois fazes download do ficheiro validar.py
e também do saftpt1.04_01.xsd
mete ambos numa pasta
para ser mais simples arrasta o ficheiro do saft para cima do validar.py
o processo de validação vai iniciar, caso haja algum erro aparece o motivo do erro e o valor com erro!
| apt install gpg | |
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
| mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
| wget -q https://packages.microsoft.com/config/debian/10/prod.list | |
| mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
| chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
| chown root:root /etc/apt/sources.list.d/microsoft-prod.list | |
| apt-get update | |
| apt-get install apt-transport-https | |
| apt-get update |