# note that helm tempates are converted into yaml and a kubectl apply is run on the yaml object, ie `helm ls` will not show anything
# TODO move these to config files
settings = {
"start_kind": True,
"preload_images_for_kind": True,
"deploy_metallb": True,
"deploy_ambassador_api": False,
"deploy_ambassador_edge_gateway": False,
This file contains hidden or 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
| import contextvars | |
| import time | |
| from concurrent.futures import ThreadPoolExecutor, as_completed | |
| current_user = contextvars.ContextVar("ID of current user") | |
| shared_user = contextvars.ContextVar("ID of shared user") | |
| def say_hello(): | |
| time.sleep(1) |
This file contains hidden or 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
| Xcursor.theme: ATER | |
| ! UI elements | |
| Emacs.menuBar: 0 | |
| Emacs.toolBar: 0 | |
| Emacs.verticalScrollBars: off | |
| ! Font settings | |
| Emacs.FontBackend: xft,x | |
| Emacs.font: Inconsolata LGC-8.6 |
This file contains hidden or 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
| # reference: https://github.com/sqlalchemy/sqlalchemy/issues/5626 | |
| import pytest | |
| import sqlalchemy as sa | |
| from sqlalchemy import orm | |
| from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession | |
| Base = orm.declarative_base() |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Secret | |
| metadata: |
This file contains hidden or 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
| # Edit this configuration file to define what should be installed on | |
| # your system. Help is available in the configuration.nix(5) man page | |
| # and in the NixOS manual (accessible by running ‘nixos-help’). | |
| { config, pkgs, ... }: | |
| let | |
| # Get the last working revision with nvidia 460.x | |
| nixos-unstable-pinned = import (builtins.fetchTarball { | |
| name = "nixos-unstable_nvidia-x11-470.57.02"; |
This file contains hidden or 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
| # Install K3S | |
| curl -sfL https://get.k3s.io | sh - | |
| # Copy k3s config | |
| mkdir $HOME/.kube | |
| sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | |
| sudo chmod 644 $HOME/.kube/config | |
| # Check K3S | |
| kubectl get pods -n kube-system |
This file contains hidden or 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
| local fn = vim.fn | |
| local api = vim.api | |
| local executable = function(e) | |
| return fn.executable(e) > 0 | |
| end | |
| local opts_info = vim.api.nvim_get_all_options_info() | |
| local opt = setmetatable( | |
| {}, { |
This file contains hidden or 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
| # Synchronize history between bash sessions | |
| # | |
| # Make history from other terminals available to the current one. However, | |
| # don't mix all histories together - make sure that *all* commands from the | |
| # current session are on top of its history, so that pressing up arrow will | |
| # give you most recent command from this session, not from any session. | |
| # | |
| # Since history is saved on each prompt, this additionally protects it from | |
| # terminal crashes. |
NewerOlder