Play with "Argo Workflow" in your local kind cluster.
The following instructions were tested in macOS Catalina (10.15.6), on 6 Sep 2020.
Ensure docker is installed and running.
| # syntax=docker/dockerfile:1 | |
| # Keep this syntax directive! It's used to enable Docker BuildKit | |
| # Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865 | |
| # but I try to keep it updated (see history) | |
| ################################ | |
| # PYTHON-BASE | |
| # Sets up all our shared environment variables | |
| ################################ |
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "$id": "http://dazn.com/manifest.schema.json", | |
| "title": "dazn-manifest", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "description": "A YAML file which describes the contents of a code repository in a machine readable format.", | |
| "properties": { | |
| "dazn-manifest": { | |
| "title": "version", |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
| from enum import Enum, EnumMeta, auto | |
| import warnings | |
| class deprecated: | |
| """object to mark an enum member as deprecated | |
| This marker works much like the `enum.auto()`. | |
| At the moment only `Enum`s based on `object` work, |
| import os | |
| from typing import Dict, List, Optional | |
| import requests | |
| from jose import jwt, jwk | |
| from jose.utils import base64url_decode | |
| JWK = Dict[str, str] | |
| JWKS = Dict[str, List[JWK]] |
| import json | |
| from pyspark.sql.types import * | |
| # Define the schema | |
| schema = StructType( | |
| [StructField("name", StringType(), True), StructField("age", IntegerType(), True)] | |
| ) | |
| # Write the schema | |
| with open("schema.json", "w") as f: |
| title | date | tags | categories |
|---|---|---|---|
How to get started to build your own Spacemacs |
2018-10-12 12:59 |
emacs |
Tools |
I have been a Vim user for quite a while. I love it, so the very first thing when I set up a new server is installing VIM. I heard a lot about Emacs and tried it. It's better at almost everything except text editing. So I stayed with Vim until Spacemacs was released. The Vim key bindings of Spacemacs is so excellent that I switched.
However, Spacemacs has its problem: boots up slowly and crashes frequently. Upgrading packages became very challenging. Finally, I have to use the develop branch because the master branch is not working anymore. People began to complain and requested to speed up the release from the master branch. Considering its dependencies and numerous open issues, I have no hope for this.
| Add the following in .zshrc: | |
| ... | |
| plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
| ... | |
| ### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
| pasteinit() { | |
| OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
| zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |