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
param( | |
[Parameter(Mandatory=$true)] | |
[int]$minutes, | |
[Parameter(Mandatory=$true)] | |
[int]$hours | |
) | |
$seconds = $hours * 3600 + $minutes * 60 |
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
#include <iostream> | |
#include <thread> | |
#include <future> | |
#include <functional> | |
#include <queue> | |
#include <format> | |
#include <csignal> | |
using namespace std::chrono_literals; |
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
#include <iostream> | |
#include <memory> | |
#include <cstdlib> | |
#include <vector> | |
template <class T> | |
class CustomAllocator { public: | |
using value_type = T; | |
using pointer = T*; | |
using const_pointer = const T*; |
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
# Deployment mysql | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mysql | |
labels: | |
app: mysql | |
spec: | |
replicas: 1 | |
selector: |
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 | |
INSTALL_DIR=/home/andres/pi | |
mkdir $INSTALL_DIR | |
mkdir -p $INSTALL_DIR/src $INSTALL_DIR/build | |
cd $INSTALL_DIR/src | |
#descargar paquetes | |
wget -nc https://ftp.gnu.org/gnu/gcc/gcc-10.1.0/gcc-10.1.0.tar.xz | |
wget -nc https://ftp.gnu.org/gnu/glibc/glibc-2.31.tar.xz | |
wget -nc https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz |
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
void main(string[] args) | |
{ | |
Console.WriteLine("Hello world!"); | |
Console.ReadLine(); | |
} |