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
#!/bin/bash | |
set -e | |
echo "🔧 Disabling enterprise repo..." | |
if [ -f /etc/apt/sources.list.d/pve-enterprise.list ]; then | |
sed -i 's|^deb https://enterprise.proxmox.com|# deb https://enterprise.proxmox.com|' /etc/apt/sources.list.d/pve-enterprise.list | |
fi | |
echo "🔧 Disabling Ceph enterprise repo (if exists)..." | |
if [ -f /etc/apt/sources.list.d/ceph.list ]; then |
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
docker build -t firestore . | |
docker run -it -p 4000:4000 -p 8080:8080 firestore |
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
FROM debian | |
RUN apt-get update && apt-get install -y sudo acl | |
ARG USER_NAME | |
ARG USER_UID | |
ARG USER_GID | |
# Reuse existing UID if present; otherwise create user and group | |
RUN existing_user=$(getent passwd "${USER_UID}" | cut -d: -f1) && \ |
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
... | |
# https://github.com/Dav1dde/glad/issues/397#issue-1463640603 | |
# This doesn't work out of the box with conflicting targets, forcing shared libs, etc. | |
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) # Ugly way to force static glad build | |
# Fetch GLAD from GitHub | |
FetchContent_Declare(glad_src | |
GIT_REPOSITORY https://github.com/Dav1dde/glad.git |
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
# Save this to your ~/.bash_aliases file or ~/.bashrc directly | |
alias add-monitor="xrandr --setmonitor screenshare 1920/1x1080/1+0+1080 none" | |
alias remove-monitor="xrandr --delmonitor screenshare" |
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
#!/bin/bash | |
# From: https://discuss.kde.org/t/date-time-overlay-in-timelapse-video/2880/5 | |
# Monospaced font from here: https://www.1001fonts.com/download/digital-7.zip | |
INPUT_FILE="video.mp4" | |
TOTAL_DURATION=30 # Total duration in seconds | |
FPS=30 | |
FONT_FILENAME="./digital-7/digital-7 (mono).ttf" | |
FONT_SIZE=72 |
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
from collections import deque | |
from enum import Enum, IntEnum, auto | |
from typing import Callable, Concatenate, Dict, List, Tuple, Union | |
import numpy as np | |
import pytransform3d.rotations as pr | |
import pytransform3d.transformations as pt | |
from matplotlib.axes import Axes | |
from pygltflib import Accessor, Node, GLTF2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# syntax=docker/dockerfile:1.3-labs | |
# Enable heredoc syntax https://collabnix.com/using-heredocs-in-dockerfiles-simplify-your-image-building-process/ | |
FROM ubuntu | |
RUN wget https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -O /usr/local/bin/systemctl &&\ | |
chmod +x /usr/local/bin/systemctl | |
RUN cat <<EOF > /etc/systemd/system/memgraph.service | |
[Unit] |
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 random | |
import string | |
def generate_sgc_planet_designation(galaxy='Milky Way', include_char=True): | |
# Quadrants: M (Milky Way) or P (Pegasus) | |
quadrant = 'M' if galaxy == 'Milky Way' else 'P' | |
# Region within the quadrant (1-9) | |
region = random.randint(1, 9) |
NewerOlder