Skip to content

Instantly share code, notes, and snippets.

View danielsource's full-sized avatar

Daniel de Lima Franceschetti danielsource

View GitHub Profile
@danielsource
danielsource / .bashrc
Last active August 4, 2026 23:07
dotfiles
# ~/.bashrc
[ -z "$PS1" ] && return
export HISTCONTROL=ignoreboth
export HISTSIZE=10000
export HISTFILESIZE=-1
unset PROMPT_COMMAND
# show exit status in $PS1
@danielsource
danielsource / mysql_cheat_sheet.md
Last active June 11, 2025 00:23 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL/MariaDB Cheatsheet
; How to compile this file:
; $ nasm -felf64 -o hello.o hello-linux64.asm
; $ ld -o hello.out hello.o
; $ ./hello.out
;
; Elements of a NASM program:
; * labels
; * instructions
; * operands
; * directives
Some things that I did when half-reading https://blinry.org/tiny-linux/
Some other commands used:
git clone --depth=1 --branch=v6.12 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
make tinyconfig
make menuconfig
make -j4
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 96842ce81..8f0ab7094 100644
@danielsource
danielsource / b.bat
Created December 23, 2024 20:44
win32_hello
:: Build script.
@echo off
setlocal
set VSLANG=1033
set flags=/nologo /std:c++14 /Zi /W4 /wd4100
if not exist win32_precomp.pch (
cl %flags% /Yc"win32_precomp.hpp" /c win32_precomp.cpp