This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| vram_probe.py - Empirically measure how much memory a GPU will actually | |
| allocate, using OpenCL. | |
| Why this exists: on an integrated GPU with unified memory (like your Intel | |
| chip), there is no fixed VRAM number. The GPU borrows from system RAM, so the | |
| real question is "how big a device buffer can I get before allocation fails?" | |
| Two things this script does that a naive version wouldn't: |
This file contains hidden or 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
| Section "Monitor" | |
| Identifier "SAMMY-G9" | |
| # VendorName and ModelName apparently don't do anything | |
| VendorName "SAM" | |
| ModelName "LC49G95T" | |
| # Custom modeline from cvt (idk how claude got these values) | |
| #Modeline "5120x1440_120.00" 1375.00 5120 5528 6088 7056 1440 1443 1453 1624 -hsync +vsync | |
| # cvt 5120 1440 120 |
This file contains hidden or 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
| # Need to add this to your .*rc file because rg doesn't have a default config path | |
| # export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc" | |
| # Search dot files | |
| --hidden | |
| # But still ignore .git/* | |
| --glob=!.git/* |
This file contains hidden or 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
| Source: https://docs.pikvm.org/edid/ | |
| Edit /etc/kvmd/tc358743-edid.hex | |
| And write this: | |
| 00FFFFFFFFFFFF005262888800888888 | |
| 1C150103800000780AEE91A3544C9926 | |
| 0F505425400001000100010001000100 | |
| 010001010101D51B0050500019400820 |
This file contains hidden or 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
| Printer profile based on CR-10 (I believe) | |
| Printer Settings: | |
| X(Width) 300 | |
| Y(Depth) 300 | |
| Z(Height) 400 | |
| Origin at center: no | |
| Heated bed: yes | |
| Heated build volume: no | |
| Gcode: Marlin |
This file contains hidden or 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
| #!/bin/bash | |
| # This script requires jq | |
| set -e | |
| DNS_JSON="${DNS_JSON:-"$HOME"/Downloads/dns.json}" | |
| DOMAIN="${1:?Pass domain name as first argument}" | |
| TLD="${DOMAIN/#*.}" | |
| die() { echo "$*" >&2; exit 1; } |
This file contains hidden or 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
| [CmdletBinding(PositionalBinding=$False)] | |
| param( | |
| [int]$Port = 1234, | |
| [string]$File = $null, | |
| [Parameter(ValueFromRemainingArguments=$True)] | |
| [string[]]${-} = "" | |
| ) | |
| $Text = ${-} -join " " | |
| Write-Host "Port $Port" |
This file contains hidden or 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
| #!/bin/bash | |
| #Generated by JetBrains Toolbox 2.1.2.18853 at 2023-12-18T23:07:26.549763568 | |
| # Heavily modified by me to properly background the pycharm command | |
| # https://gist.github.com/Skinner927/dc006bfcc50e58b2227bb4d7d68753ca | |
| # | |
| # Many issues are open but here's a recent one: | |
| # https://youtrack.jetbrains.com/issue/IDEA-193204/IDEA-Pycharm-command-line-launchers-never-exit-on-Linux | |
| PYCHARM_BIN="/home/user/.local/share/JetBrains/Toolbox/apps/pycharm-professional/bin/pycharm.sh" |
This file contains hidden or 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
| #!/bin/bash | |
| # docker run --rm -ti -v /tmp/git-out:/out registry.access.redhat.com/ubi7/ubi bash | |
| # https://ius.io/setup | |
| yum install -y \ | |
| https://repo.ius.io/ius-release-el7.rpm \ | |
| https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| # Build tools | |
| yum install -y make autoconf gcc |
This file contains hidden or 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
| ; Place this at the beginning of the start g-code. | |
| ; It will allow the hotend and bed to heat at the same time. | |
| M140 S{material_bed_temperature} ; start heating the bed | |
| M104 S{material_print_temperature} T0 ; start heating the hotend | |
| M109 S{material_print_temperature} T0 ; wait for hotend to hit target temp | |
| M190 S{material_bed_temperature} ; wait for bed temp (should be there) | |
| M105 ; report temp |
NewerOlder