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 .
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/.*data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit