See imgur / linked pastebin and github mirror for 1-8 → 1-8 balancers. Creator: raynquist, github mirror linked in Balancers Illustrated: 1 through 8 balancers explained, imgur album linked in Balancer Book Update (Summer 2019)
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
# a simple Flask API to emulate OpenAI's using llama models and/or transformers | |
# runs on 3080 | |
import sys | |
import time | |
import torch | |
import json | |
from peft import PeftModel | |
from flask import Flask, make_response, request, abort |
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
[Unit] | |
Description=Remote desktop service (VNC) for :0 display | |
Requires=display-manager.service | |
After=network-online.target | |
After=display-manager.service | |
[Service] | |
Type=simple | |
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment XAUTHORITY=$(find /var/run/sddm/ -type f)" | |
Environment=HOME=/root |
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
local function insertNonNil(t, v) | |
if v then | |
v = tostring(v) | |
if #v > 0 then | |
table.insert(t, v) | |
end | |
end | |
end | |
local function backtrace(levelStart, shift) |
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
Arch Linux Encrypted LVM Luks Btrfs Guide (EFI) | |
# Wipe disk with random data (optional) | |
badblocks -c 10240 -s -w -t random -v /dev/sda | |
# Partition | |
parted -a minimal /dev/sda | |
- mklabel gpt | |
- unit Mib | |
- mkpart ESP fat32 0% 512 | |
- set 1 boot on | |
- mkpart primary ext4 512 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
Guide: | |
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer | |
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted. | |
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware. | |
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt |
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
Arch Linux Encrypted LVM Luks Btrfs Guide (EFI) | |
# Wipe disk with random data (optional) | |
badblocks -c 10240 -s -w -t random -v /dev/sda | |
# Partition | |
parted -a minimal /dev/sda | |
- mklabel gpt | |
- unit Mib | |
- mkpart ESP fat32 0% 512 | |
- set 1 boot on | |
- mkpart primary ext4 512 100% |
Our goal here is to have one USB stick to rule them all. Objectives:
- We want a full system - not a live CD
- We want to boot this system on a Macbook Pro (requires UEFI)
- We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
- We want the system "functional"
The last bullet is subject to interpretation, but I'm defining functional as:
- X Windows works (with LXDE)