Skip to content

Instantly share code, notes, and snippets.

View gabrieleara's full-sized avatar

Gabriele Ara gabrieleara

View GitHub Profile

Developing a Website using GitHub Pages Locally on Ubuntu

This is a simple step-by-step guide to setup your system to develop a website that will be deployed on GitHub Pages locally.

Install ruby and dependencies

First of all you need to install the proper packages using apt:

sudo apt install ruby-full build-essential zlib1g-dev -y
#!/bin/bash
set -e
############################## DEFAULT PARAMETERS ##############################
# Indicates whether we want to install or remove one or multiple packages
# TODO: Also autoremove can be used, to force additional cleanup
install_remove="install"
@gabrieleara
gabrieleara / postinstall
Last active April 30, 2020 13:20
Simple post installation script to install some stuff on Ubuntu 20.04+
#!/bin/bash
# First argument is the link to the deb file to download
function download_install_deb() {
wget -O /tmp/installer.deb "$1"
dpkg -i /tmp/installer.deb || apt install -f -y
rm /tmp/installer.deb
}
(
@gabrieleara
gabrieleara / Makefile
Last active March 14, 2022 09:55
A Makefile for a Linux kernel module with some quality of life improvements
# ╔═══════════════════════════════════════════════════════╗
# ║ Configuration ║
# ╚═══════════════════════════════════════════════════════╝
MODULE_NAME=<put-module-name-here>
obj-m += $(MODULE_NAME).o
# ┌───────────────────────────────────────────────────────┐
# │ Sources │
# └───────────────────────────────────────────────────────┘