Skip to content

Instantly share code, notes, and snippets.

View vbarboza's full-sized avatar

Vinicius Barboza vbarboza

View GitHub Profile
@vbarboza
vbarboza / chrdev.c
Created February 27, 2019 13:11
Exploring Beagle Bone character device example.
#include <linux/init.h> // Macros used to mark up functions e.g. __init __exit
#include <linux/module.h> // Core header for loading LKMs into the kernel
#include <linux/device.h> // Header to support the kernel Driver Model
#include <linux/kernel.h> // Contains types, macros, functions for the kernel
#include <linux/fs.h> // Header for the Linux file system support
#include <linux/uaccess.h> // Required for the copy to user function
#define DEVICE_NAME "ebbchar" ///< The device will appear at /dev/ebbchar using this value
#define CLASS_NAME "ebb" ///< The device class -- this is a character device driver
@vbarboza
vbarboza / settings.json
Last active August 17, 2021 16:12
VSCode Settings for Python
{
"breadcrumbs.enabled": true,
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "material-icon-theme",
"workbench.editor.enablePreview": false,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
@vbarboza
vbarboza / archlinux.md
Last active September 17, 2018 12:12

Arch Linux Quick Install

This is a quick guide for installing the Arch Linux distribution without too much PITA. Thus, I am not not encrypting the disk with LUKS, but [here][3]'s a tutorial.

My system is an old laptop with an Intel chipset, 4GB of RAM, 500GB of disk and no VGA. EFI boot is not supported, but [here][2]'s another good tutorial covering this case.

References

This guide is based in a few others which I have used myself.They have a set of much more complete instructions regarding each steps of the installation process. If this is your first time installing Arch, I'd start with one of the following as I did.