Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
echo Creating python 3.10 environment "env"
# A fix for https://github.com/conda/conda/issues/7980
eval "$(conda shell.bash hook)"
conda create --prefix env python=3.10.9 -y
conda activate ./env
conda install entrypoints=0.4 ipython=8.10.0 jupyter_client=7.4.9 jupyter_core=5.2.0 packaging=22.0 sqlite=3.40.1 tzdata=2022g --force-reinstall -y
conda install ipykernel -y
python -m ipykernel install --user
pip install jupyter_http_over_ws
#!/bin/sh
echo Launching jupyter server.
echo -----
echo After the server has launched, go to https://colab.research.google.com
echo Click File -> Upload Notebook and upload the *.ipynb file
echo Click on the dropdown menu near "Connect" or "Reconnect" button on the topright part of the interface.
echo Select "connect to a local runtime" and paste the URL that will be generated below.
echo which looks like "http://localhost:8888/?token=somenumbers"
echo Click "Connect" and CTRL+F9 to run all cells.
echo ------
done
Bytes transferred = 26869760 (19a0000 hex)
Automatic boot of image at addr 0x42000000 ...
Image Name: Linux-3.4.103
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1897920 Bytes = 1.8 MiB
Load Address: 41508000
Entry Point: 41508000
Verifying Checksum ... OK
Loading Kernel Image ... OK
(IPQ) # run flashimg
Using eth1 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename 'macan.bin'.
Load address: 0x42000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
make[2]: Entering directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt/scripts/config'
make[1]: Entering directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt'
make[2]: Entering directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt'
make[2]: Entering directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt'
rm -rf /mnt/Productivity/Homebrew/OpenWRT/openwrt/staging_dir/target-mips_24kc_musl/root-ath79
make[2]: Leaving directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt'
make[3]: Entering directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt/target/linux'
make[4]: Entering directory '/mnt/Productivity/Homebrew/OpenWRT/openwrt/target/linux/ath79'
U-Boot .07 [Standard IPQ806X.LN,r40331] (Nov 05 2015 - 14:44:22)
CBT U-Boot ver: 1.1.4
smem ram ptable found: ver: 0 len: 5
DRAM: 235 MiB
NAND: SF: Unsupported manufacturer 00
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
128 MiB
MMC:
Godot Engine v4.1.1.stable.mono.official.bd6af8e0e - https://godotengine.org
xkbcommon: ERROR: couldn't find a Compose file for locale "en_IN" (mapped to "en_IN.ISO8859-1")
WARNING: Error setting locale modifiers
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5592)
WARNING: XOpenIM failed
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5638)
WARNING: XCreateIC couldn't create wd.xic
at: _create_window (platform/linuxbsd/x11/display_server_x11.cpp:5260)
OpenGL API 3.3.0 NVIDIA 535.86.05 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 2080 Ti
@ZachAR3
ZachAR3 / .txt
Created July 28, 2023 10:46
BrokenBlendImportSpringbones
Godot Engine v4.1.1.stable.mono.official.bd6af8e0e - https://godotengine.org
xkbcommon: ERROR: couldn't find a Compose file for locale "en_IN" (mapped to "en_IN.ISO8859-1")
WARNING: Error setting locale modifiers
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5592)
WARNING: XOpenIM failed
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5638)
WARNING: XCreateIC couldn't create wd.xic
at: _create_window (platform/linuxbsd/x11/display_server_x11.cpp:5260)
OpenGL API 3.3.0 NVIDIA 535.86.05 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 2080 Ti
@ZachAR3
ZachAR3 / .txt
Created July 28, 2023 10:37
BrokenBlendImport
Godot Engine v4.1.1.stable.mono.official.bd6af8e0e - https://godotengine.org
xkbcommon: ERROR: couldn't find a Compose file for locale "en_IN" (mapped to "en_IN.ISO8859-1")
WARNING: Error setting locale modifiers
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5592)
WARNING: XOpenIM failed
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5638)
WARNING: XCreateIC couldn't create wd.xic
at: _create_window (platform/linuxbsd/x11/display_server_x11.cpp:5260)
OpenGL API 3.3.0 NVIDIA 535.86.05 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 2080 Ti
@ZachAR3
ZachAR3 / encoder.py
Created July 13, 2023 18:33
FFMPEG Encoder
# Example code from https://github.com/OpenShot/openshot-qt/blob/develop/src/windows/export.py
# Create FFmpegWriter
try:
w = openshot.FFmpegWriter(export_file_path)
# Set video options
if export_type in [_("Video & Audio"), _("Video Only"), _("Image Sequence")]:
w.SetVideoOptions(True,
video_settings.get("vcodec"),
openshot.Fraction(video_settings.get("fps").get("num"),