#!/bin/bash
#Create template
#args:
# vm_id
package auth0 | |
import ( | |
"crypto/rsa" | |
"encoding/base64" | |
"fmt" | |
"github.com/go-jose/go-jose/v3/jwt" | |
jwtPkg "github.com/golang-jwt/jwt" | |
"github.com/tidwall/gjson" | |
"io" |
If you're wondering what Gateway Intents are, what Privileged Intents are, why your bot can't see statuses, or why your bot can't see member joins anymore, then this page should explain it to you!
if you do not know what intents are, please read this entire page
First, a short explanation of how bots work: bots can make requests over the REST (HTTP) API to retreive information and do actions, and they get real-time updates from Discord in the form of websocket gateway events. They can also fetch server members via the gateway.
Examples of gateway events you are probably familiar with are Message Create (a message was sent) and Guild Member Add (a user joined a server).
If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
Posted by gregyoung on February 16, 2010
Many people have been getting confused over what CQRS is. They look at CQRS as being an architecture; it is not. CQRS is a very simple pattern that enables many opportunities for architecture that may otherwise not exist. CQRS is not eventual consistency, it is not eventing, it is not messaging, it is not having separated models for reading and writing, nor is it using event sourcing. I want to take a few paragraphs to describe first exactly what CQRS is and then how it relates to other patterns.
Starting with CQRS, CQRS is simply the creation of two objects where there was previously only one. The separation occurs based upon whether the methods are a command or a query (the same definition that is used by Meyer in Command and Query Separation, a command is any method that mutates state and a query is any method that returns a value).
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: {name: content} | |
data: | |
index.html: '<html><body><h1>Hello world</h1></body></html>' | |
--- | |
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: {name: lb} |
version: '2.1' | |
services: | |
cassandra: | |
image: cassandra:latest | |
networks: | |
- reactive-network | |
volumes: | |
- cassandra_data:/var/lib/cassandra | |
# - ${PWD}/data/cassandra/data:/var/lib/cassandra |