Skip to content

Instantly share code, notes, and snippets.

View sharms's full-sized avatar

Steve Harms sharms

View GitHub Profile
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 22, 2024 08:47
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# 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
@orhun
orhun / arch_linux_installation.md
Last active April 20, 2024 02:56
Notes on my Arch Linux installation: UEFI/Secure Boot + systemd-boot, LUKS-encrypted root (XFS), LUKS-encrypted swap (with hibernate & unlocked via TPM)
@stathissideris
stathissideris / core.clj
Last active November 26, 2020 22:26
Basic Clojure example for Skija
(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)

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active April 18, 2024 19:43
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@kynrai
kynrai / Arch-i3.md
Last active September 25, 2021 12:59
Custom Arch i3-gaps setup on RBS 2019

Arch (i3-gaps) on Rzer Blade 13 2019 MX 150

Prerequisites

  • Disbale secure boot (F12/Del on boot, BIOS)
  • Create UEFI boot disk

Boot from USB

  1. Set UK layout loadkeys uk
@ibihim
ibihim / arch_install.sh
Last active March 26, 2023 16:27
Arch install in progress
# 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
#!/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
@styblope
styblope / docker-api-port.md
Last active April 28, 2024 16:46
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@OdinsPlasmaRifle
OdinsPlasmaRifle / arch_linux_installation.md
Last active March 29, 2024 14:12
LVM on LUKS Arch installation with systemd-boot