Skip to content

Instantly share code, notes, and snippets.

@foldericon
foldericon / Dockerfile
Created April 14, 2023 22:28
Builds a docker image of oobabooga webUI for nvidia jetson devices
FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3 as builder
ENV TORCH_CUDA_ARCH_LIST Turing
RUN apt-get update && \
apt-get install -y python3 python3-pip git build-essential python3-dev
RUN pip3 install --upgrade pip setuptools
RUN git clone https://github.com/g588928812/bitsandbytes_jetsonX.git /build
WORKDIR /build
RUN CUDA_VERSION=114 make cuda11x
RUN mkdir /wheels
# stripcolors.pm
use strict;
use warnings;
use feature qw/switch/;
use ZNC;
package stripcolors;
use base 'ZNC::Module';
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#if (defined(__unix__) || defined(unix)) && !defined(USG)
#include <sys/param.h>
#endif
#ifdef __APPLE__
#include <sys/types.h>