Skip to content

Instantly share code, notes, and snippets.

@sonicaj
sonicaj / update_check.sh
Last active February 2, 2024 21:59
Check if there are updates available for distribution in question
#!/bin/bash
# Ensure a distribution name is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <distribution>"
exit 1
fi
DIST=$1
# views.py
import os
import logging
from urllib.parse import urlencode
from django.views.generic import RedirectView
from django.urls import reverse
from google.auth.transport.requests import Request
from google_auth_oauthlib.flow import Flow as OAuthFlow
from google.oauth2 import id_token as google_id_token
FROM debian:bullseye
ENV WORK_DIR /packages
RUN mkdir -p ${WORK_DIR}
WORKDIR ${WORK_DIR}
ADD tmp/pkgdir/* ${WORK_DIR}/
ENTRYPOINT ["sleep"]
CMD ["infinity"]
---
# Source: minio/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: "RELEASE-NAME-service-account"
namespace: "ix-minio"
labels:
app.kubernetes.io/name: minio
app.kubernetes.io/instance: RELEASE-NAME
@sonicaj
sonicaj / game.asm
Created July 7, 2019 10:04
Game in assembly
.model small
.stack 100h
.data
ball_bounce_func dw ?
bounce_handle_func dw ?
simple_ball_bounce_func dw ?
set_mode_func dw ?
draw_border_func dw ?
draw_ball_func dw ?
draw_brick_func dw ?