all this inside your WSL ubuntu shell.
have python (3.11+)
check
python --version
all this inside your WSL ubuntu shell.
have python (3.11+)
check
python --version
#!/usr/bin/python3 | |
""" | |
Export your Windows Bluetooth LE keys into Linux! (arch edition) | |
Thanks to: http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html | |
discussed here: https://unix.stackexchange.com/questions/402488/dual-boot-bluetooth-device-pairing | |
Usage: | |
$ ./export-ble-infos.py <args> | |
$ sudo bash -c 'cp -r ./bluetooth /var/lib' |
map remote port 8888 to localhost
ssh root@213.181.111.2 -p 22408 -i ~/.ssh/id_ed25519 -L 8888:localhost:8888
grab the jupyter passwrod from runpod
JUPYTER_PASSWORD=qi14ld6tw7h4ino5fwh
set the local kernel to "exsiting one", then refer it to this url
http://localhost:8888/lab?token=qi14ld6g7h4ino56cwh
full thing here, but its a bit outdated
$condaenvs = (conda env list | Out-String) -split "`n" | |
foreach ($condaenv in $condaenvs) { | |
$name = $condaenv.Split(' ')[0] | |
if ($name -ne "" -and $name -ne "#") { | |
Write-Output "================================================================" | |
Write-Output "Environment: $name" | |
Write-Output "`nChecking for Jupyter:" | |
& cmd /c "call activate $name && jupyter --version" |
# an LLM attempt at an https://noisio.de/boards/levitation-oscillator | |
import streamlit as st | |
import numpy as np | |
from pydub import AudioSegment | |
from pydub.playback import play | |
import tempfile | |
def generate_sine_wave(frequency, amplitude, phase, duration, sample_rate): | |
t = np.linspace(0, duration, int(sample_rate * duration), endpoint=False) |
import streamlit as st | |
import json | |
import base64 | |
import requests | |
from PIL import Image | |
import os, io | |
output_folder = "../output" | |
if not os.path.exists(output_folder): |
from bs4 import BeautifulSoup | |
import requests | |
import re | |
import urllib2 | |
import os | |
import argparse | |
import sys | |
import json | |
# adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search |