Skip to content

Instantly share code, notes, and snippets.

View LispEngineer's full-sized avatar

Douglas P. Fields, Jr. LispEngineer

View GitHub Profile
@rain-1
rain-1 / LLM.md
Last active March 1, 2025 20:44
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@darkxst
darkxst / rules.txt
Last active February 16, 2025 11:34 — forked from denniskupec/rules.txt
KiCad DRC rules for JLCPCB, 2 & 4-layer PCB
(version 1)
#Kicad 7
# 2-layer, 1oz copper
(rule "Minimum Trace Width (outer layer)"
(constraint track_width (min 5mil))
(layer outer)
(condition "A.Type == 'track'"))
(rule "Minimum Trace Spacing (outer layer)"
@RomelSan
RomelSan / Set up Powerline in PowerShell.md
Last active January 10, 2025 12:01
Set up Powerline in PowerShell
@bernardoaraujor
bernardoaraujor / openembedded_de10-nano.md
Last active March 23, 2023 02:49
openembedded de10-nano

Building UBoot, linux-altera and core-image-minimal rootfs

1 - Clone poky and meta-altera (thud branch for both):

$ mkdir ~/yocto; cd ~/yocto
$ git clone git://git.yoctoproject.org/poky.git -b thud
$ git clone https://github.com/kraj/meta-altera -b thud

2 - Start a build environment:

@arturo182
arturo182 / bom2grouped_csv_jlcpcb.xsl
Last active January 29, 2025 17:01
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
Copyright (C) 2018, Kicad developers.
Copyright (C) 2019, arturo182.
GPL v2.
Functionality:
Generation of JLCPCB PCBA compatible BOM
@Towdium
Towdium / hex2mif.py
Last active April 24, 2023 03:45
A script to convert hex instructions to Quartus .mif files
'''
This script helps to convert hex instructions to Quartus .mif files.
To run it, use "python hex2mif.py input.txt output.mif"
For input file, assuming you are using Mars as assember,
you need to export the binary instruction as hexadecimal text file.
But for any kind of input files, it should work fine as long as
it uses the following format:
DEADBEEF
BAADF00D
'''
@stockmind
stockmind / windows-10-hyper-v-enable-and-no-hyper-v-menu-entry.ps1
Last active July 6, 2024 15:47
Enable Hyper-V in Windows 10 and add a No Hyper-V boot entry to Windows boot loader
# Author: Simone Roberto Nunzi aka (Stockmind)
# Date: 2018/01/03
# Purpouse: Enable Hyper-V in Windows 10 and add a No Hyper-V boot entry to Windows boot loader
# References:
# https://blogs.msdn.microsoft.com/virtual_pc_guy/2008/04/14/creating-a-no-hypervisor-boot-entry/
# https://stackoverflow.com/questions/35479080/how-to-turn-windows-feature-on-off-from-command-line-in-windows-10
# https://stackoverflow.com/questions/16903460/bcdedit-bcdstore-and-powershell
#
# Launch PowerShell with administrative rights issuing Windows X + A
@nasser
nasser / mutable.clj
Last active October 23, 2017 02:33
(def mutable-type-cache (atom {}))
(defmacro mutable [m]
(let [sorted-keys (sort (keys m))
names (sort (map name sorted-keys))
types (map type (map #(eval (get m %)) sorted-keys))
signature (interleave names types)
munged-signature (interleave (repeat "$") names
(repeat "$") types)
cached-name (@mutable-type-cache signature)
@takeit
takeit / INSTALL.md
Last active September 22, 2024 15:20
Write to NTFS on macOS Sierra (osxfuse + ntfs-3g)
  1. Install osxfuse:
brew cask install osxfuse
  1. Reboot your Mac.

  2. Install ntfs-3g:

@hivehand
hivehand / ppmesh.ps
Last active November 17, 2022 20:15
Teeny tiny hexagon tiling
% Draw, in white on black, the set of Pointer Pattern Pad hexagons described
% here:
%
% http://bitsavers.trailing-edge.com/pdf/xerox/mouse/lyon_optical/018P87005_D_Pointer_Pattern_Pad_Oct84.pdf
/inch { 72 mul } def
% Alter the following for different page sizes.
/pagewidth 8.5 inch def
/pageheight 11 inch def