Skip to content

Instantly share code, notes, and snippets.

@ppmathis
ppmathis / debian-stretch-fde.md
Last active May 21, 2024 04:05
Guide which explains an installation of Debian Stretch with full disk encryption (including "/boot" partition, containing initramfs+kernel) by using Debian Jessie Live.

Debian Stretch - Full Disk Encryption

This documents guides you through the process to install Debian Stretch with Full Disk Encryption. The following requirements exist:

  • Mainboard with UEFI-Support
  • Debian Stretch Live CD booted from UEFI
  • Two unformatted, unpartitioned HDDs/SSDs for Software RAID1 with mdmadm

After following this guide, you will end up with a setup like this:

  • Redundant GRUB Standalone EFI installation on both disks
@DavidAce
DavidAce / nvidia-tdp.service
Last active May 21, 2024 03:58
Nvidia power limit at boot
[Unit]
Description=Set NVIDIA power limit above default
[Service]
Type=oneshot
ExecStartPre=/usr/bin/nvidia-smi -pm 1
ExecStart=/usr/bin/nvidia-smi -pl 275
@theycallmeloki
theycallmeloki / Raspberry Pi 4 x 6 cluster 65B Llama runner gist
Last active May 21, 2024 03:57
an ansbile script that quickly bootstraps a Pi 4 cluster with tools required to run a 65B llama model
You will need the following two files, be sure to change the IP address in both sections, the `hostfile_contents`
as well as the ansible inventory section to reflect your configuration
Rest of the steps should run parallely across the different machines, for any updates to this script,
check this thread: https://github.com/ggerganov/llama.cpp/issues/2164#issuecomment-1639640846
If you want an automated way to do this in the future and would like an opionated setup procedure,
check this repo: https://github.com/theycallmeloki/edith-cli
@pandax381
pandax381 / ix3315.startup-config
Last active May 21, 2024 03:56
IX3315 にフレッツ光クロス2回線(OCNバーチャルコネクトおよびv6プラス固定IP)を収容するためのコンフィグ
! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.7.18, RELEASE SOFTWARE
! Compiled Oct 25-Tue-2022 12:28:03 JST #2
! Current time Apr 26-Wed-2023 16:52:00 JST
!
timezone +09 00
!
logging buffered 819200
logging subsystem flt warn
logging subsystem mape debug
@ahmadrosid
ahmadrosid / write-fixer.py
Created April 17, 2024 10:02
Fixed typos, spelling mistakes, and grammar while maintaining clarity and a concise tone using Claude.
import sys
import anthropic
from dotenv import load_dotenv
load_dotenv()
client = anthropic.Anthropic()
prompt_template = """
Please review and edit the following text to ensure it is grammatically correct, clear, and concise. Aim to maintain a casual tone without being overly informal. Provide suggestions for improvement and explain any changes you make. Do not add double quotes in you rewrite answer. Answer in direct response.
export blah="$(grep client.so /proc/$(pidof hl2_linux)/maps | head -n 1 | cut -d - -f1)" ; export DDDD="$(printf "0x%X\n" $((0x$blah + 0x3c856f)))" ; export FFFD="$(printf "0x%X\n" $(($DDDD + 4)))" ; grep -a -insecure "/proc/$(pidof hl2_linux)/cmdline" && sudo gdb -p $(pidof hl2_linux) -ex "set {int}$DDDD = 0x90909090" -ex "set {short}$FFFD = 0x9090" -batch
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 21, 2024 02:50
zulu11 v11.70.15 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2412192122-1938444825-1709503042-1000</user>
<keys>
<key installerType="Msi" displayName="Azul Zulu JDK 11.70.15 (11.0.22), 64-bit" displayVersion="11.70.15">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E6A25195-0C8B-42DD-8574-64D6E0026716}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\Zulu\zulu-11\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{E6A25195-0C8B-42DD-8574-64D6E0026716}]]></UninstallString>
@nebhead
nebhead / CustomUSBName.md
Last active May 21, 2024 03:47
Instructions for Adding Custom Naming for Arduino USB Device

The following is capturing instructions on how to add custom naming for an Arduino Leonardo (or generic pro-micro) for my Arcade Controller device. I wanted to have a simple record so that when I inevitably come back to this someday I can recall how I accomplished this. Reference was taken from the following YouTube video (https://youtu.be/hoCOq9Ngp44?t=1156) at approximately 19m16s.

WINDOWS Instructions:

Create a new set of folders: ~\Documents\Arduino\hardware\daemonbite\avr

Copy everything from C:\Program Files (x86)\Arduino\hardware\arduino\avr to this new folder.

@choco-bot
choco-bot / FilesSnapshot.xml
Created May 21, 2024 03:38
ventoy v1.0.97.20240126 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\ventoy\update.ps1" checksum="1DDF71847DF71CC72D48A3FC0A925AAC" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\ventoy-1.0.97-windows.zip.txt" checksum="7D5FCEBBF4BE0E30C2B249D75ABD9739" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\ventoy.nupkg" checksum="4E4F3563D14863F874E6E5C45F8412E0" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\ventoy.nuspec" checksum="7054A3B56C17F4C85B2EE9C35ADB9833" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\tools\ChocolateyBeforeModify.ps1" checksum="D89E21FEE8275D8BFE05A0C5810D98D5" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\tools\ChocolateyInstall.ps1" checksum="D00FC3FCC3FB0C706DE3EEA0F32EE2ED" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\tools\ChocolateyUninstall.ps1" checksum="B93C54C4E650288B5E4AC4C