Skip to content

Instantly share code, notes, and snippets.

@unleashtheginger
unleashtheginger / power-unix.txt
Last active August 3, 2021 20:40
Notes made on a talk by Dan North
These were notes that I made while watching Power Use of UNIX by Dan North - https://www.youtube.com/watch?v=7uwW20odwEk
* UNIX is based on a really simple model
- Everything is a file
- Everything running is a process
- Every file is text or data
- Each command does one thing well
- Pipelines allow composiion
- The shell is your gateway to everythinga
@unleashtheginger
unleashtheginger / pointer-play.c
Created June 19, 2016 14:10
Just some (terrible) revision on how structures and pointers work. Next time lists and trees. :)
#include <stdio.h>
void some_pointers()
{
int i = 1;
int *ptr_i;
printf("%d is an integer.\n",i);
printf("%p is a pointer to a memory location.\n",ptr_i);
printf("And has the value: %d.\n",*ptr_i);