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 |
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
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh | |
chmod +x ./dotnet-install.sh | |
./dotnet-install.sh --channel LTS | |
export DOTNET_ROOT=$HOME/.dotnet | |
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools |
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
using System.Diagnostics; | |
using System.Net.NetworkInformation; | |
namespace Prueba | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
using System.Diagnostics; | |
namespace Prueba | |
{ | |
internal class Program | |
{ | |
public class MemoryMetrics | |
{ | |
public double Total; | |
public double Used; |
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
// Parametro | |
string parametro = "ljchuello"; | |
// CLiente | |
AmazonLambdaClient lambdaClient = new AmazonLambdaClient("AccesKey", "SecretKey", RegionEndpoint.USEast1); | |
// Contecto | |
InvokeRequest invokeRequest = new InvokeRequest | |
{ | |
FunctionName = "Test_Lambda", |
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 --location --request POST 'https://dpsos.entecprois.com/api/v1/cartadinagrafica/' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"CartaDinagrafica": { | |
"SurfaceCardPosition": [ | |
0.091543, | |
0.271862, | |
0.578872, | |
0.90781, | |
1.236326, |
NewerOlder