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" | |
networks: | |
loki: | |
services: | |
loki: | |
image: grafana/loki:2.9.2 | |
ports: | |
- "3100:3100" |
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
my.domain.com { | |
reverse_proxy localhost:40001 | |
header -Server | |
header -X-Powered-By | |
log { | |
output file /var/log/caddy/my.domain.com-access.log | |
} | |
@ws { | |
header Connection *Upgrade* | |
header Upgrade websocket |
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.7' | |
services: | |
app: | |
image: coturn/coturn | |
#ports: | |
# - 3478:3478/tcp | |
# - 3478:3478/udp | |
# - 5349:5349/tcp # TLS | |
# - 5349:5349/udp # TLS |
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/sh | |
# 1. Install Docker CE | |
curl -fsSL https://raw.githubusercontent.com/sdesalas/docker-install/master/install.sh -o ~/install-docker.sh | |
chmod + x ~/install-docker.sh | |
./install-docker.sh | |
# 2. Install Caddy | |
apt install -y debian-keyring debian-archive-keyring apt-transport-https curl | |
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-testing-archive-keyring.gpg |
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 SECOND = 1000; | |
const MINUTE = 60*SECOND; | |
const HOUR = 60*MINUTE; | |
const DAY = 24*HOUR; | |
const WEEK = 7*DAY; | |
const MONTH = 30*DAY; | |
const YEAR = 52*WEEK; | |
function timeAgo(date) { | |
const diff = Date.now() - new Date(date).getTime(); |
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' | |
services: | |
influxdb: | |
image: influxdb:latest | |
ports: | |
- '8086:8086' | |
volumes: | |
- ./data/influxdb:/var/lib/influxdb2 | |
environment: |
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 | |
# | |
# CurlBench. Dont want to install apache bench? | |
# | |
# Runs "curl" concurrently using arguments. | |
# | |
# Example: Make 100 requests to some domain (concurrency = 10) | |
# $ curl.sh http://some.domain.com 100 10 | |
# | |
set -B |
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
**Describe the bug** | |
A clear and concise description of what happens. | |
Hiya. Thanks for putting together this awesome library. | |
We're trying to validate a response schema as follows: |
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 | |
# @see https://stackoverflow.com/questions/33243121/abuse-curl-to-communicate-with-redis | |
# Without any tools | |
exec 3<>/dev/tcp/$REDIS_HOST/6379 && echo -e "PING\r\n" >&3 && head -c 7 <&3 | |
# With netcat (apt install netcat-traditional) | |
(printf "PING\r\n";) | nc $REDIS_HOST 6379 | |
# With telnet |
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
<html> | |
<body> | |
<h1>JWT ES256 Encoding and decoding in plain JavaScript (Web Crypto API)</h1> | |
<textarea id="log" style="width: 100%; height: 400px;"></textarea> | |
</body> | |
<script> | |
/// | |
/// PLEASE BE AWARE | |
/// IT IS GENERALLY A BAD IDEA TO GENERATE JWT TOKENS IN THE BROWSER | |
/// THIS SHOULD ONLY BE USED FOR TESTING PURPOSES |
NewerOlder