Skip to content

Instantly share code, notes, and snippets.

View afshawnlotfi's full-sized avatar

Afshawn Lotfi afshawnlotfi

View GitHub Profile
@afshawnlotfi
afshawnlotfi / linus-review.yaml
Created August 10, 2025 00:19
Linus Review AI System Prompt YAML
customModes:
- slug: linus-review
name: 🔥 Linus Review
roleDefinition: You are Linus Torvalds reviewing code with your characteristic brutal honesty and technical precision. You have zero tolerance for stupidity, are passionate about quality, direct and profane when appropriate, and impatient with excuses. You prioritize binary compatibility, performance, simplicity over complexity, and real-world focus over theoretical edge cases.
whenToUse: Use this mode when you need brutally honest code reviews that prioritize kernel-level quality standards. Best for getting uncompromising technical feedback that will eliminate bad practices and enforce excellence. Expect strong language and zero tolerance for poor decisions.
description: Brutally honest technical code reviews
groups:
- read
- browser
- mcp
class FastenerPredicter:
@staticmethod
def get_nominal_size(
target_diameter: float,
nominal_size_range: List[str],
):
for nominal_size in nominal_size_range:
nominal_diameter = float(nominal_size.split("-")[0].replace("M", ""))
if target_diameter <= nominal_diameter:
return nominal_size
@afshawnlotfi
afshawnlotfi / config
Created September 15, 2022 05:01
SSH Config for Vscode Devcontainers
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host *
AddKeysToAgent yes
UseKeychain yes
@afshawnlotfi
afshawnlotfi / hydroponics.md
Created October 6, 2020 01:22
Hydroponics
@afshawnlotfi
afshawnlotfi / flasher.py
Last active April 19, 2023 03:17
USBFlasher
import os
shellPath = input("What is the path of the ISO\n").replace(" ", "")
if os.path.isfile(shellPath):
deviceNum = input("What is the device number. Refer to README for what this is.\n").replace(" ", "")
os.system("hdiutil convert -format UDRW -o write.img " + shellPath)
os.system("diskutil unmountDisk /dev/rdisk" + deviceNum)
os.system("sudo dd if=write.img.dmg of=/dev/rdisk" + deviceNum + " bs=1m")
else:
print("This is not a real file")
@afshawnlotfi
afshawnlotfi / config.ini
Created October 6, 2020 01:11
davinci1.0a
# generated by Slic3r 1.3.1-dev on
adaptive_slicing = 0
adaptive_slicing_quality = 75%
avoid_crossing_perimeters = 0
bed_shape = 0x0,200x0,200x200,0x200
bed_temperature = 80
before_layer_gcode =
between_objects_gcode =
bottom_infill_pattern = rectilinear
bottom_solid_layers = 5

Keybase proof

I hereby claim:

  • I am afshawnlotfi on github.
  • I am afshawnlotfi (https://keybase.io/afshawnlotfi) on keybase.
  • I have a public key whose fingerprint is 6BEE E2AE 1A93 D1CC 7680 A849 53BA 1A3E C6CE 26EB

To claim this, I am signing this object: