Skip to content

Instantly share code, notes, and snippets.

@KGB33
KGB33 / SPUG-Dagger-Presentation.md
Created March 24, 2024 21:18
Slides for my presentation at the Spokane Python User Group: https://www.meetup.com/python-spokane/events/298213205/

Dagger Overview

Dagger is a CI/CD focused container scripting engine.

Using the Python/Go/TypeScript SDKs, Dagger can:

  • Define container images (like Dockerfiles)
  • Run containers (like docker run and docker-compose)

Plus everything Python/Go/TypeScript can do.

# This hook rebuilds the Neovim python virtual
# environment when the system python is upgraded.
# There are 3 steps:
# 1. Remove old venv
# 2. Create new venv
# 3. Install neovim package
[Trigger]
Operation = Upgrade
@KGB33
KGB33 / bot.py
Last active August 31, 2021 16:35
A discord.py-less Python discord bot referance
from typing import Final
import os
import asyncio
import json
import requests
import websockets
BASE_URL: Final = f"https://discord.com/api/v9"
@KGB33
KGB33 / 90_pipx_update-all.hook
Last active July 6, 2021 16:44
Pacman pipx update hook
# Updates pipx packages
# Place this in the HookDir specified in your pacman.conf
# See https://man.archlinux.org/man/alpm-hooks.5 for more info
# (Works with Pacman v6.0.0 - libalpm v13.0.0)
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *