- Add to .ssh/config:
AddKeysToAgent yes
- Add to .bashrc:
# ssh-agent fix
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`AddKeysToAgent yes
# ssh-agent fix
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`I suggest you read this first:
https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
An easy way to get all the details you need like CUDA version and compute capabilities (sm) for your graphics card, is to use this Docker image:
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
# set up build dependencies
ENV DEBIAN_FRONTEND=noninteractiveHere's a good example of when using a mock (with testify/mock) has disadvantages compared to a stub:
Say you have an external API client in your code:
type API interface {
GetUser(id int) (User, error)
}
func GetUser(api API, id int) (User, error) {
return api.GetUser(id) | // Define codec and create local track | |
| videoRTCPFeedback := []webrtc.RTCPFeedback{{"goog-remb", ""}, {"ccm", "fir"}, {"nack", ""}, {"nack", "pli"}} | |
| codec := webrtc.RTPCodecParameters{ | |
| RTPCodecCapability: webrtc.RTPCodecCapability{webrtc.MimeTypeH264, 90000, 0, "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f", videoRTCPFeedback}, | |
| PayloadType: 102, | |
| } | |
| vidTrack, err := webrtc.NewTrackLocalStaticRTP(codec.RTPCodecCapability, "video", "vid") | |
| if err != nil { | |
| panic(err) | |
| } |
extensions.txt file in script location and write list of extensions to get inside it. For example:ms-toolsai.jupyter
ms-python.vscode-pylance
ms-vscode.cpptools
# and so onThis is the script:
apt install on Ubuntu): exiftool imagemagick img2pdf ghostscript qpdf#!/bin/bash
if [ $# -eq 0 ]
then
echo "Input images to convert"
else
for i in "$@"; do