- Install
devcluster
, publish ports without traefik.
k3d cluster create devcluster \
--api-port 127.0.0.1:6443 \
-p 80:80@loadbalancer \
-p 443:443@loadbalancer \
--k3s-arg "--disable=traefik@server:0"
package com.mntechnique.oauth2authenticator.utils; | |
import com.github.scribejava.core.builder.api.DefaultApi20; | |
import com.github.scribejava.core.exceptions.OAuthException; | |
import com.github.scribejava.core.extractors.TokenExtractor; | |
import com.github.scribejava.core.model.OAuth2AccessToken; | |
import com.github.scribejava.core.model.Response; | |
import com.github.scribejava.core.model.Verb; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
source ~/android/venv/bin/activate | |
export LC_TIME=C | |
export LC_ALL=C | |
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx5G" | |
export USE_CCACHE=1 | |
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m" | |
export _JAVA_OPTIONS="-Xmx5g" |
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm64 3.18.60 Kernel Configuration | |
# | |
CONFIG_ARM64=y | |
CONFIG_64BIT=y | |
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y | |
CONFIG_MMU=y | |
CONFIG_ARCH_MMAP_RND_BITS_MIN=18 | |
CONFIG_ARCH_MMAP_RND_BITS_MAX=24 |
# | |
# /etc/pacman.conf | |
# | |
# See the pacman.conf(5) manpage for option and repository directives | |
# | |
# GENERAL OPTIONS | |
# | |
[options] | |
# The following paths are commented out with their default values listed. |
# Install these packages (use your favorite AUR tool here) | |
yay -Syu minikube-bin kubectl docker-machine-driver-kvm2 libvirt qemu-headless docker-machine ebtables | |
# Get libvirt going | |
sudo systemctl enable libvirtd.service | |
sudo usermod -a -G libvirt $(whoami) | |
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/ | |
sudo virsh net-autostart default |
version: "3.7" | |
services: | |
ganache: | |
image: trufflesuite/ganache-cli:latest | |
command: -h 0.0.0.0 -p 7545 --db /data | |
volumes: | |
- ganache-vol:/data | |
networks: | |
- ganache-network |
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; | |
import { GqlExecutionContext } from '@nestjs/graphql'; | |
import * as jwt from 'jsonwebtoken'; | |
import * as jwksClient from 'jwks-rsa'; | |
@Injectable() | |
export class IdTokenGuard implements CanActivate { | |
canActivate(context: ExecutionContext) { | |
const ctx = GqlExecutionContext.create(context); | |
const req = ctx.getContext().req; |
[Unit] | |
Description="frappe-bench-frappe-default-worker" | |
PartOf=frappe-bench-workers.target | |
[Service] | |
User=revant | |
Group=revant | |
Restart=always | |
ExecStart=/home/revant/.local/bin/bench worker --queue default | |
StandardOutput=file:/home/revant/frappe-bench/logs/worker.log |
version: '3' | |
services: | |
db: | |
image: bitnami/mongodb:latest | |
restart: always | |
environment: | |
- MONGODB_USERNAME=app-data | |
- MONGODB_PASSWORD=admin | |
- MONGODB_DATABASE=app-data |
devcluster
, publish ports without traefik.k3d cluster create devcluster \
--api-port 127.0.0.1:6443 \
-p 80:80@loadbalancer \
-p 443:443@loadbalancer \
--k3s-arg "--disable=traefik@server:0"