This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone llama.cpp | |
git clone https://github.com/ggerganov/llama.cpp.git | |
cd llama.cpp | |
# Build it | |
make clean | |
LLAMA_METAL=1 make | |
# Download model | |
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns skija.core | |
(:import [org.jetbrains.skija Canvas Surface Paint Color4f | |
EncodedImageFormat] | |
[java.nio.file Path Files OpenOption])) | |
(defn write-bytes [#^bytes b path] | |
(Files/write (Path/of "output.png" (make-array String 0)) b (make-array OpenOption 0))) | |
(defn show [] | |
(let [surface (Surface/makeRasterN32Premul 100 100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation on Lenovo X1 5th Generation | |
# Installation guide: https://wiki.archlinux.org/index.php/Installation_Guide | |
# Encryption: https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Cryptsetup_usage | |
# LVM: https://wiki.archlinux.org/index.php/LVM | |
# Set large font, if necessary | |
setfont latarcyrheb-sun32 | |
# Connect to Internet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
BOSH_DEPLOYMENT_PATH="../../bosh-deployment" | |
# clean up | |
(cd "$BOSH_DEPLOYMENT_PATH" && git pull) | |
rm -rf state.json | |
for uuid in $(VBoxManage list vms|grep -E ^\"sc- | awk '{print $2}' | sed 's/{//' | sed 's/}//'); do |
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file in/etc/docker
:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
LVM on LUKS Arch installation with systemd-boot
Sources:
- https://wiki.archlinux.org/index.php/Installation_guide
- https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system
Note: If you want a simpler encryption setup (with LUKS only), you can instead use the archinstall "guided" installer included with Arch since April 2021.
NewerOlder