Skip to content

Instantly share code, notes, and snippets.

@il-katta
il-katta / Dockerfile
Last active January 30, 2022 02:43
script to update katta/openwrt-rootfs docker image
ARG VERSION=latest
FROM docker.io/katta/openwrt-rootfs:$VERSION
RUN mkdir -p /var/lock \
&& mkdir -p /var/run \
&& opkg update \
&& opkg install \
luci \
luci-ssl \
@il-katta
il-katta / install_bitcoin-core_centos.sh
Last active October 11, 2021 19:21
install bitcoin-core ( with gui ) on Centos Stream ( or Centos 8 )
#!/bin/bash
set -xe
# db4
sudo dnf install -y gcc-c++ autoconf make patch
wget https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/install_db4.sh
sudo mkdir -p /usr/src/db4
sudo chown $(whoami) /usr/src/db4
bash install_db4.sh /usr/src/db4
@il-katta
il-katta / install.sh
Last active July 23, 2023 17:35
install bitsandbytes on Archlinux
git clone https://github.com/timdettmers/bitsandbytes.git
cd bitsandbytes
export LD_LIBRARY_PATH=/opt/cuda/lib/
CUDA_VERSION=122 make cuda12x CUDA_HOME=/opt/cuda/
pip install .