This file contains 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
using System; | |
using System.Runtime.InteropServices; | |
namespace Vt100Test | |
{ | |
public class Program | |
{ | |
// ReSharper disable InconsistentNaming |
This file contains 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 | |
# Update sudoers file | |
if [ -f /etc/sudoers ]; then | |
sudo perl -i -pe 's/(^%sudo.*)(ALL=\(ALL:ALL\) ALL)/$1ALL=\(ALL:ALL\) NOPASSWD:ALL/' /etc/sudoers | |
else | |
echo "/etc/sudoers not found, check your system configuration" | |
exit 1 | |
fi |
This file contains 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 | |
# Check if miniconda3 is installed | |
if [ ! -d "miniconda3" ]; then | |
echo "miniconda3 directory not found, please run the init.sh script first" | |
exit 1 | |
fi | |
# Source Conda shell script |
This file contains 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
# server.py | |
# uvicorn server:app --reload | |
import base64 | |
import queue | |
import threading | |
import torch | |
from PIL import Image | |
from io import BytesIO |
This file contains 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
# run_model_stream.py | |
import sys | |
import re | |
import os | |
import queue | |
import threading | |
import torch | |
from PIL import Image |
This file contains 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
// csproj: | |
// <TargetFramework>net8.0-windows10.0.22621.0</TargetFramework> | |
// <ItemGroup><PackageReference Include="System.Drawing.Common" Version="8.0.6" /></ItemGroup> | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using Windows.Data.Pdf; | |
using Windows.Storage; | |
using Windows.Storage.Streams; |
OlderNewer