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
services: | |
database: | |
image: container-registry.oracle.com/database/express:latest | |
environment: | |
- ORACLE_PWD=PRUEBA123 | |
volumes: | |
- ./data:/opt/oracle/oradata | |
ports: | |
- "1521:1521" |
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://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement | |
# By default the ssh-agent service is disabled. Configure it to start automatically. | |
# Make sure you're running as an Administrator. | |
Get-Service ssh-agent | Set-Service -StartupType Automatic | |
# Start the service | |
Start-Service ssh-agent | |
# This should return a status of Running | |
Get-Service ssh-agent |
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
spigot: | |
build: . | |
stdin_open: true | |
tty: true | |
container_name: spigot |
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
function draw(ctx, x,y, image, width, height){ | |
ctx.save() | |
ctx.translate(x, y) | |
ctx.scale(width / image.width, height / image.height) | |
ctx.drawImage(image, 0, 0) | |
ctx.restore() | |
} |
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
<?php | |
$last_date = get_lastpostmodified('blog'); // obtiene la fecha de la ultima modificacion a un post | |
$last_time = strtotime($last_date); // convierte a numeros para poderla formatear | |
echo "La última fecha de modificación fue el ". date("j / M / Y \a \l\a\s H:i:s", $last_time); // formatea | |
?> |
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
const { exit } = require("process"); | |
const createHash = require("crypto").createHash; | |
// Reads from cli | |
if (process.argv.length < 3) { | |
process.stdout.write("\n"); | |
exit(1); | |
} |
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
... | |
<build> | |
... | |
<resources> | |
... | |
<resource> | |
<directory>src/main/java</directory> | |
<excludes> | |
<exclude>**/*.java</exclude> | |
</excludes> |
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
function conversion(decimal: number): string { | |
let resultado: string = ""; | |
const arreglo: number[] = []; | |
do { | |
arreglo.push(decimal % 16); | |
decimal = Math.floor(decimal / 16); | |
} while (decimal !== 0); | |
for (const digito of arreglo.reverse()) { | |
switch (digito) { | |
case 10: |