Skip to content

Instantly share code, notes, and snippets.

@alvistar
alvistar / buildx-cache-example.yaml
Created May 4, 2020 14:34
Buildx cache example for Github Actions
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
buildx-version: latest
qemu-version: latest
diff --git a/chia/util/keyring_wrapper.py b/chia/util/keyring_wrapper.py
index 6a1f346d3..3ae72a3cb 100644
--- a/chia/util/keyring_wrapper.py
+++ b/chia/util/keyring_wrapper.py
@@ -112,7 +112,7 @@ class KeyringWrapper:
self.keys_root_path = keys_root_path
if force_legacy:
legacy_keyring = get_legacy_keyring_instance()
- if check_legacy_keyring_keys_present(legacy_keyring):
+ if legacy_keyring is not None and check_legacy_keyring_keys_present(legacy_keyring):
@alvistar
alvistar / keycloak.ts
Created October 5, 2020 14:00
Nuxtjs Logout Fix for Keycloak
import Oauth2Scheme from '@nuxtjs/auth-next/dist/schemes/oauth2'
import { encodeQuery } from '@nuxtjs/auth-next/dist/utils'
export default class KeycloakScheme extends Oauth2Scheme {
logout () {
if (this.options.endpoints.logout) {
const opts = {
client_id: this.options.clientId,
post_logout_redirect_uri: this._logoutRedirectURI
}