Skip to content

Instantly share code, notes, and snippets.

View andrejmoltok's full-sized avatar
:fishsticks:
keeping on learning

Pál András Csokán andrejmoltok

:fishsticks:
keeping on learning
View GitHub Profile
@andrejmoltok
andrejmoltok / Makefile
Created August 2, 2025 15:58 — forked from mhitza/Makefile
Programming Arduino Uno (ATmega386P) in assembly
%.hex: %.asm
avra -fI $<
rm *.eep.hex *.obj *.cof
all: $(patsubst %.asm,%.hex,$(wildcard *.asm))
upload: ${program}.hex
avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$<
monitor:
@andrejmoltok
andrejmoltok / Count lines in Git repo
Created July 15, 2022 12:10 — forked from mandiwise/Count lines in Git repo
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l