The server fails to start with error: ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
You need to manually create/modify these files since the system prevents automated editing:
The server fails to start with error: ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
You need to manually create/modify these files since the system prevents automated editing:
#!/bin/bash | |
echo "Creating replit.nix file to fix libstdc++.so.6 issue..." | |
# Create replit.nix file | |
cat > replit.nix << 'EOF' | |
{ pkgs }: | |
pkgs.mkShell { | |
buildInputs = [ | |
pkgs.python311Full |
#!/bin/bash | |
# Function to display usage instructions | |
usage() { | |
echo "Usage: $0 [options] [\"Text to speak\"]" | |
echo "" | |
echo "Options:" | |
echo " -o, --output FILE Output file name (default: output.mp3)" | |
echo " -l, --language CODE Language code (en, es, fr, de, it, ja, zh, etc.)" | |
echo " -h, --help Display this help message" |
say --voice="?" | |
Albert en_US # Hello! My name is Albert. | |
Alice it_IT # Ciao! Mi chiamo Alice. | |
Alva sv_SE # Hej! Jag heter Alva. | |
Amélie fr_CA # Bonjour! Je m’appelle Amélie. | |
Amira ms_MY # Hi my name is Amira | |
Anna de_DE # Hallo! Ich heiße Anna. | |
Bad News en_US # Hello! My name is Bad News. | |
Bahh en_US # Hello! My name is Bahh. | |
Bells en_US # Hello! My name is Bells. |
wget https://dlcdn.apache.org//activemq/5.18.1/apache-activemq-5.18.1-bin.tar.gz | |
gunzip apache-activemq-5.18.1-bin.tar.gz | |
tar -xvf apache-activemq-5.18.1-bin.tar | |
cd apache-activemq-5.18.1 | |
cd conf | |
myIP=$(LANG=C /sbin/ifconfig | sed -ne $'/127.0.0.1/ ! { s/^[ \t]*inet[ \t]\\{1,99\\}\\(addr:\\)\\{0,1\\}\\([0-9.]*\\)[ \t\/].*$/\\2/p; }') | |
sed -i "s/localhost/${myIP}/" jetty.xml | |
cd .. | |
cd bin | |
./activemq start |
def longest_subsequence_bisect(seq, mode='strictly', order='increasing', | |
key=None, index=False): | |
""" | |
@TODO: to replace longest_subsequence_linear | |
>>> longest_subsequence_bisect([1,2,3,4,5,6,7,2,2,2,2,2,5,1,7,8]) | |
Return the longest increasing subsequence of `seq`. |
def longest_subsequence_linear(seq, keyfn=lambda value: value): | |
''' Longest Increasing Subsequence | |
>>> seq = [0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15] | |
>>> lis(seq) | |
[0, 2, 6, 9, 11, 15] | |
>>> lis([]) | |
[] | |
''' | |
if not seq: return seq |
/** | |
* Wavesurfer.js minimalistic example with | |
* regions loading, save, plugins, waveform loading from json, waveform zoom, player events, keyboard codes, auto play | |
* @author: Loreto Parisi (loretoparisi at gmail dot com) - mainly, some code and functions adpated from Wavesurfer examples | |
* @disclaimer: code adapted from online examples | |
*/ | |
// JavaScript | |
// Wrap the native DOM audio element play function and handle any autoplay errors |
conda create -n diffusers
conda activate diffusers
conda install -y pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
pip install diffusers transformers piexif
For hf_stablediffusion_img2img.py
download https://github.com/huggingface/diffusers/blob/main/examples/inference/image_to_image.py
""" | |
stable diffusion dreaming | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry | |
to stitch together the images, e.g.: | |
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4 |