Skip to content

Instantly share code, notes, and snippets.

@tomdaley92
tomdaley92 / README.md
Last active April 28, 2024 00:38
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

/*
# Clean UI programming in a vacuum
This app was written for Chapter 19 in the 3rd edition of Eloquent
JavaScript—it aims to demonstrate modern UI programming without
depending on a specific framework or library.
Its convention is that components have an interface like this:
```

[?25l[?7l -/oyddmdhs+:.
-odNMMMMMMMMNNmhy+-`  .
-yNMMMMMMMMMMMNNNmmdhy+-  .vir. d$b
`omMMMMMMMMMMMMNmdmmmmddhhy/`  .d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
omMMMMMMMMMMMNhhyyyohmdddhhhdo`  $$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+`  Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
oyhdmNMMMMMMMNdyooydmddddhhhhyhNd.  "$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
:oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh  | d$$$$$$P" "$$$$$$$$ Q$$$
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 28, 2024 00:32
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
.
├── books
│   ├── handlers.go
│   └── models.go
├── config
│   └── db.go
└── main.go
For MacOS:
Delete the following folders:
/private/var/.slm
/private/var/.slmauth
/private/var/.slmbackup
Can be done in terminal with following commands:
rm -rf /private/var/.slm
rm -rf /private/var/.slmauth
@ogawa0071
ogawa0071 / Dockerfile
Last active April 28, 2024 00:17
Stable Diffusion web UI with Fly.io GPU
FROM ubuntu:22.04
RUN apt update && apt install -y git python3.10 python3.10-venv libglib2.0-0 libgl1-mesa-glx
WORKDIR /app
CMD nvidia-smi && git clone https://github.com/lllyasviel/stable-diffusion-webui-forge stable-diffusion-webui ; cd ./stable-diffusion-webui && ./webui.sh -f --listen --enable-insecure-extension-access
@ogawa0071
ogawa0071 / deploy.sh
Last active April 28, 2024 00:17
WordPress and MySQL with Fly.io (ALWAYS FREE)
fly apps create ogawa0071-mysql
fly deploy --config mysql.toml
# fly apps destroy ogawa0071-mysql -y
fly apps create ogawa0071-wordpress
fly deploy --config wordpress.toml
# fly apps destroy ogawa0071-wordpress -y
@AHaymond
AHaymond / gist:25587a93094fdffdcdbfeaa90f21337c
Last active April 28, 2024 00:16
Setting up Arch Linux LXC on ProxMox
1. Edit the mirror list located at /etc/pacman.d/mirrorlist and uncomment a preferred mirror (preferrably closest to you)
2. Initialize Pacman GPG Keys
- $> pacman-key --init
- $> pacman-key --populate archlinux
- $> pacman-key --refresh-keys -u --keyserver hkps.pool.sks-keyservers.net
*The use of the --keyserver flag is due to an error that currently occurs when using the default keyserver
3. Reinstall Arch keyring
- $> pacman -S archlinux-keyring
4. Install Yay (if desired)
- Create a user (you cannot run makepkg as root, you must be signed in as a user)