source: utmapp/UTM#4064 (comment)
Hi, just adding a more elegant way of making dynamic resolution. We gonna just use the udev event for that.
YOU MUST have installed :
sudo systemctl start spice-vdagent
sudo systemctl enable spice-vdagent
source: utmapp/UTM#4064 (comment)
Hi, just adding a more elegant way of making dynamic resolution. We gonna just use the udev event for that.
YOU MUST have installed :
sudo systemctl start spice-vdagent
sudo systemctl enable spice-vdagent
sudo usermod -aG dialout $USER
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda-repo-ubuntu2204-12-2-local_12.2.2-535.104.05-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2204-12-2-local_12.2.2-535.104.05-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/
import os | |
import time | |
import datetime | |
import shutil | |
@service | |
def take_snapshot(uri=None, save_path=None, count=3): | |
IMAGE_COUNT = count | |
ffmpeg = f"/usr/bin/ffmpeg -y -i {uri}" |
#!/bin/bash | |
LAYERS_HOME=~/aws/layers | |
PACKAGE_NAME="$1" | |
mkdir -p $LAYERS_HOME/zip/$PACKAGE_NAME $LAYERS_HOME/tmp | |
python3.11 -m pip install -t $LAYERS_HOME/python_$PACKAGE_NAME $PACKAGE_NAME | |
current_epoch=$(date '+%s') | |
# copy package into a python named tmp dir |
The set
lines
set -euxo pipefail
is short for:set -e
set -u
import logging | |
from paramiko import SSHClient, AutoAddPolicy | |
from scp import SCPClient | |
class SshClient: | |
def __init__(self, ssh_machine, ssh_username, ssh_password): | |
self.ssh_machine = ssh_machine | |
self.ssh_username = ssh_username | |
self.ssh_password = ssh_password |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish