This file contains hidden or 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
spring: | |
datasource: | |
type: com.zaxxer.hikari.HikariDataSource | |
url: jdbc:postgresql://host:5432/database | |
username: 123 | |
password: 123 | |
hikari: | |
minimum-idle: 9 |
This file contains hidden or 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 -it --rm --name letsencrypt \ | |
-v /letsencrypt/etc/letsencrypt:/etc/letsencrypt \ | |
-v /letsencrypt/var/lib/letsencrypt:/var/lib/letsencrypt \ | |
quay.io/letsencrypt/letsencrypt:latest \ | |
certonly \ | |
-d domain.com \ | |
-d *.domain.com \ | |
--manual \ | |
--preferred-challenges dns \ | |
--server https://acme-v02.api.letsencrypt.org/directory |
This file contains hidden or 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
alias babel-node='babel-node --presets stage-0' | |
------ RECV ------ | |
// babel-node recv2.js "#" | |
// babel-node recv2.js "kern.*" | |
const amqp = require('amqplib'); | |
const args = process.argv.slice(2); | |
if (args.length == 0) { |
This file contains hidden or 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
// sending to sender-client only | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |
This file contains hidden or 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
SELECT | |
prom.id, p.id, p.direccion, p.latitud, p.longitud, | |
( | |
6371 * | |
ACOS( | |
COS( RADIANS( 6.250020 ) ) * | |
COS( RADIANS( `latitud` ) ) * | |
COS( | |
RADIANS( `longitud` ) - RADIANS( -75.568510 ) | |
) + |
NewerOlder