Skip to content

Instantly share code, notes, and snippets.

View ai2ys's full-sized avatar
🎯
Focusing

Sylvia Schmitt ai2ys

🎯
Focusing
View GitHub Profile
@ai2ys
ai2ys / list-docker-volumes-by-data.md
Created January 30, 2024 10:04
List Docker volumes by creation data

List Docker volumes by creation data

Listing all docker volumes and their creation date without any additional tools required.

https://stackoverflow.com/a/77819947/11687201

  1. Getting the list of all docker volumes docker volume ls
  2. Passing that list to docker volume inspect
  3. Sorting by ascending date
@ai2ys
ai2ys / Windows_make_conda_available_from_GitBash.md
Created January 11, 2024 10:00
Windows - Make conda available from Git-Bash
@ai2ys
ai2ys / exiftool-extract_thumbnails_from_DNG.md
Created November 3, 2023 09:10
Exiftool: extract thumbnails and XMP from DNG files
@ai2ys
ai2ys / terminal-coloring-docker-container.md
Created October 26, 2023 09:59
Terminal Coloring in Docker Container

Terminal Coloring in Docker container

This will look like this but username, @-symbol, hostname, workdir, and $-symbol differently colored.

🐳 username@hostname:/workdir$

Dockerfile

@ai2ys
ai2ys / rebase-instead-of-merge.md
Last active December 24, 2023 21:29
Rebase instead of Merge
@ai2ys
ai2ys / pytorch_partially_init_freeze_model.py
Created April 15, 2023 15:29
PyTorch - Partially initialize model wth pretrained weight and partially freeze
import logging
import torch
import torch.nn as nn
import torchvision.models as models
from torchvision.models import VGG16_Weights
class Vgg16PartiallyFrozenFeatures(nn.Module):
def __init__(self, num_frozen_blocks=3):
@ai2ys
ai2ys / pytorch-reproducible.md
Created April 15, 2023 11:43
Making PyTorch training reproducible
@ai2ys
ai2ys / python-libraries.rst
Last active March 10, 2023 09:24
Useful (Python) Libraries
Useful (Python) Libraries
Library Description Links
JAX High-performance array computing
@ai2ys
ai2ys / Linux_disk_space_file_folder_sizes.md
Created November 10, 2022 10:25
Linux disk usage, file sizes and folder sizes

Retrieving disk usage information

Retrieving the disk space/usage

df -H

Retrieving file and folder sizes

Sorted by file/folder size

@ai2ys
ai2ys / TF-best-practices.md
Created February 16, 2022 07:53
TensorFlow - Best Practices