Skip to content

Instantly share code, notes, and snippets.

View lxe's full-sized avatar
🌮
Taco

Aleksey Smolenchuk lxe

🌮
Taco
View GitHub Profile
@lxe
lxe / mac.ahk
Created July 11, 2024 17:18
Make Windows be like Mac
#NoEnv ; Disables the automatic inclusion of certain predefined variables and functions.
SendMode Input ; Sets the SendMode to Input, which allows for more reliable sending of keystrokes.
SetWorkingDir %A_ScriptDir% ; Sets the working directory to the directory containing the script.
; Function to map Windows key combined with another key to the corresponding Ctrl key combination.
; If Shift key is not pressed, it sends Ctrl+key combination.
; If Shift key is pressed, it sends Win+key combination using the {Blind} option to prevent triggering the Windows key menu.
MapWinToCtrl(key) {
if (!GetKeyState("Shift", "P")) {
Send ^%key%
@lxe
lxe / README.md
Last active February 27, 2024 21:19
How to get oobabooga/text-generation-webui running on Windows or Linux with LLaMa-30b 4bit mode via GPTQ-for-LLaMa on an RTX 3090 start to finish.

How to get oobabooga/text-generation-webui running on Windows or Linux with LLaMa-30b 4bit mode via GPTQ-for-LLaMa on an RTX 3090 start to finish.

This guide actually works well for linux too. Just don't bother with the powershell envs

  1. Download prerequisites

  2. (Windows Only) Open the Conda Powershell.

@lxe
lxe / README.md
Last active December 28, 2023 15:26
Disco Diffusion Tips
@lxe
lxe / README.md
Last active February 27, 2023 14:59
Portable Hex Beam - K6LXE

Portable Hex Beam - K6LXE

THIS IS A VERY EARLY UNREFINED PROTOTYPE -- NO MEASUREMENTS AND TOLERANCES ARE A BIT WACKY

Pictures and measurements are coming soon.

Parts

image

@lxe
lxe / emoji.json
Created March 22, 2022 17:14
emoji.json
[
{
"title": "100",
"symbol": "💯",
"keywords": "hundred points symbol symbol wow wow win win perfect perfect parties parties"
},
{
"title": "1234",
"symbol": "🔢",
"keywords": "input symbol for numbers symbol"
https://www.facebook.com/adpreferences/ad_settings -> "Categories Used To Reach You" -> "Interest Categories"
ABC
abc television network
Acoustics
Action games
Adhesive
Adobe Premiere Pro
Adobe Systems
AdSense
@lxe
lxe / doge.cc
Created February 20, 2021 08:44
// Be in Arduino
// Go to file -> preferences -> settings tab -> additional board manager URL
// Paste this: https://dl.espressif.com/dl/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json
// Go to tools -> board -> board manager
// Find "esp32" and install it
// Copy https://github.com/Bodmer/TFT_eSPI into C:\Users\you\Documents\Arduino\libraries
@lxe
lxe / ches.html
Created December 1, 2020 03:02
ches
<html>
<head>
<title>Chess</title>
<meta name="viewport" content="width=800, initial-scale=1, maximum-scale=1">
<style>
body {
/* zoom: 0.5; */
margin: 0;
padding: 0;
@lxe
lxe / goestilevideo.sh
Created April 9, 2020 19:32
goestilevideo.sh
#!/bin/bash
# Usage: ./goestiles ~/goes17 2020-04-02
# Makes a video like this: https://twitter.com/lxe/status/1248117991067095040
# Requirements: imagemagick and ffmpeg
ROOT=$1
DATE=$2
# Clean up