Skip to content

Instantly share code, notes, and snippets.

View thiagolopes's full-sized avatar

Thiago Lopes thiagolopes

View GitHub Profile
@thiagolopes
thiagolopes / scape_codes.h
Last active November 22, 2023 05:37 — forked from radxene/color_output.c
Scape codes C header with colors
#define ANSI_RESET_ALL "\x1b[0m"
#define ANSI_COLOR_BLACK "\x1b[30m"
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANSI_COLOR_CYAN "\x1b[36m"
@thiagolopes
thiagolopes / Xsession.sh
Created November 5, 2019 23:43
/etc/gdm/Xsession
#!/bin/sh
#
# This is SORT OF LIKE an X session, but not quite. You get a command as the
# first argument (it could be multiple words, so run it with "eval"). As a
# special case, the command can be:
# failsafe - Run an xterm only
# default - Run the appropriate Xclients startup (see the code below)
# custom - Run ~/.xsession and if that's not available run 'default'
#
# (Note that other arguments could also follow, but only the command one is
@thiagolopes
thiagolopes / macbook_with_linux.md
Last active June 11, 2025 02:11
MacBook Air 7,2 (2015) with Linux

forked from https://github.com/M4he/Linux/blob/master/Hardware/MacBookAir7%2C2.md

MacBook Air 7,2 (2015) with Linux

Below explanations concentrate on my experience using Debian 9 (Stretch) on a MacBook Air 7,2 (2015 model) and explain necessary tweaks.

Installation

  • albeit rEFInd works, it will not boot non-EFI bootloaders
  • you can ditch rEFInd, grab an EFI-compatible boot disk and install regularly
  • for Debian 9, the Live CDs might not boot as they don't include EFI, use the general installation discs!