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 run -d -p 3000:3000 --restart unless-stopped yakgpt/yakgpt:latest |
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
version: '3.3' | |
services: | |
wireguard: | |
image: lscr.io/linuxserver/wireguard:latest | |
container_name: wireguard | |
cap_add: | |
- NET_ADMIN | |
- SYS_MODULE | |
environment: | |
- PUID=1000 |
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
version: '3.3' | |
services: | |
wireguard: | |
image: lscr.io/linuxserver/wireguard:latest | |
container_name: wireguard | |
cap_add: | |
- NET_ADMIN | |
- SYS_MODULE | |
environment: | |
- PUID=1000 |
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
# https://hub.docker.com/r/microsoft/mssql-server | |
docker run \ | |
-e 'ACCEPT_EULA=Y' \ | |
-e 'MSSQL_SA_PASSWORD=MySuperPass' \ | |
-e 'MSSQL_PID=Developer' \ | |
--name MSSQL-Server \ | |
-v /root/mssql-data:/var/opt/mssql/data \ | |
-p 1433:1433 \ | |
-d mcr.microsoft.com/mssql/server:latest |
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
import {Component} from '@angular/core'; | |
import JsPDF from 'jspdf'; | |
import html2canvas from 'html2canvas'; | |
@Component({ | |
selector: 'app-index', | |
templateUrl: './index.component.html', | |
styleUrl: './index.component.css' | |
}) | |
export class IndexComponent { |
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 | |
# Updates the packages | |
DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade | |
# Tools | |
apt install curl -y | |
apt install wget -y | |
apt install unzip -y | |
apt install nginx -y |
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 | |
# Actualizamos | |
sudo apt update && sudo apt upgrade -y | |
# .NET Core | |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel LTS --install-dir /usr/share/dotnet | |
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet | |
# Python | |
apt install python3 | |
apt install python3-dev -y | |
apt install python3-pip -y |
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
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help | |
driftfile /var/lib/ntp/ntp.drift | |
# Leap seconds definition provided by tzdata | |
leapfile /usr/share/zoneinfo/leap-seconds.list | |
# Enable this if you want statistics to be logged. | |
#statsdir /var/log/ntpstats/ |
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
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel LTS --install-dir /usr/share/dotnet | |
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet |
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
// Leemos la llave | |
string ssh = await File.ReadAllTextAsync(@"C:\UbicacionDeLaLlave\llave.ppk"); | |
// Pasamos a MemoryStream | |
MemoryStream keyStream = new MemoryStream(Encoding.UTF8.GetBytes(ssh)); | |
// Establecemos la conexión | |
ConnectionInfo connectionInfo = new ConnectionInfo("host", "Usuario | Suele ser root", new PrivateKeyAuthenticationMethod("root", new PrivateKeyFile(keyStream))); | |
// Entablamos la conexion |
NewerOlder