lscpu | grep -i VirtualizationVT-xfor IntelAMD-Vifor AMD
| #!/usr/bin/env fish | |
| if test "$argv[1]" = serve | |
| rm -rf /tmp/translate-apikey-* | |
| set api /tmp/translate-apikey-(random) | |
| touch $api | |
| echo "api key: $api" | |
| llama-server -m ~/models/qwen2.5-instruct-1.5b.gguf --ctx-size 100 --threads-http 1 --sleep-idle-seconds 300 --threads 1 --threads-batch 1 --no-webui --api-key $api --port 8283 |
| #!/usr/bin/fish | |
| xfreerdp /v:192.168.122.139 /u:engon /p:amemimy /admin \ | |
| /app:"||cmd" /app-name:"Windows terminal" /app-workdir:"C:\\Users\\engon" / \ | |
| +aero +auto-reconnect /cert:ignore \ | |
| -compression -decorations +drives \ | |
| /dynamic-resolution -encryption +gfx-progressive \ | |
| /log-level:WARN +menu-anims /microphone \ | |
| /network:lan /sound |
| #!/bin/bash | |
| # Complete Sway Setup Script for Ubuntu WSL | |
| # This installs Sway, Waybar, and essential components with pre-configured dotfiles | |
| echo "Starting Sway installation and configuration..." | |
| # Update package list | |
| sudo apt update |
| #include<stdio.h> | |
| #include <gl/glut.h> | |
| #define KEY_ESC 27 /* GLUT doesn't supply this */ | |
| int fullscreen = 0; | |
| int mouseDown = 0; | |
| float xrot = 100.0f; | |
| float yrot = -100.0f; |
| import ttkbootstrap.localization | |
| ttkbootstrap.localization.initialize_localities = bool |
| import shutil, textwrap, time, contextlib, threading | |
| from colorama import * | |
| def fmtSize(byt): | |
| if byt < 1: | |
| return '%f b'%byt*8 | |
| elif byt < 1_000: | |
| return '%f B'%byt | |
| elif byt < 1_000_000: |
The instructions in this gist have some subtle problems and this gist will not be updated.
| print("this is a test") # seriously! nothing here |