Skip to content

Instantly share code, notes, and snippets.

@jopicornell
jopicornell / boot.asm
Created August 30, 2020 20:12
Challenge "Making an OS (x86) - Part 2"
print_alphabet:
mov al, 64 ; set the first letter to show
mov ah, 0xE ; set the register for teletype mode
mov bl, 96 ; set the register for lowercase letters (index)
mov cl, al ; set the register for uppercase letters (index)
print_letters:
inc cl
mov al, cl
int 0x10
inc bl
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "mtrack"
Option "MaxTapTime" "240"
Option "MaxTapMove" "5"
Option "FingerLow" "1"
Option "FingerHigh" "1"
Option "ScrollDistance" "40"
[ 0.000000] Linux version 5.0.5-arch1-1-ARCH (builduser@heftig-17705) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=459e341a-85c3-4c25-8d0c-b9904a87fce9 rw quiet splash i915.modeset=1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable
@jopicornell
jopicornell / fallback-to-index.conf
Created March 21, 2019 13:02
Nginx + php-fpm install
client_max_body_size 20m;
client_body_buffer_size 128k;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include php-fpm.conf;
}

Introduction

The following steps are required for a typical web developer stack for php and some front-end development. This is for a developer machine and not for a live environment!

Installation stack

@jopicornell
jopicornell / .zshrc
Last active March 20, 2019 16:09 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
source /usr/local/share/antigen/antigen.zsh
# Plugins
antigen use oh-my-zsh
antigen theme oskarkrawczyk/honukai-iterm-zsh
antigen bundle jessarcher/zsh-artisan
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle jessarcher/zsh-artisan
antigen apply