Skip to content

Instantly share code, notes, and snippets.

View Scott31393's full-sized avatar
🤙

Tommaso Merciai Scott31393

🤙
  • Avnet SILICA
  • Florence, Italy
View GitHub Profile

VIMRC

filetype plugin indent on
syntax on
set title
set tabstop=8
set softtabstop=8
set shiftwidth=8
set noexpandtab
@Scott31393
Scott31393 / patchwork-setup-guide.md
Last active December 18, 2021 11:24
patchwork setup guide

muttrc entry for List-id

ignore *
unignore From: Date: To: Cc: Subject: Reply-To: List-ID: Message-ID: In-Reply-To:
hdr_order From: Date: To: Cc: Subject: Reply-To: List-ID: Message-ID: In-Reply-To:

VSCode Custom Debug Shortcuts

In order to setup custom keybindings shortcuts in vscode you need to edit keybindings.json:

Open vscode and press:

ctrl + shift + p
@Scott31393
Scott31393 / U-Boot Driver Coding Cheatsheet.md
Last active April 15, 2022 14:24
U-Boot Drivers Coding Cheatsheet.md

U-Boot Coding Cheatsheet

Enable Debug log

define DEBUG before any include in the .c file

#define DEBUG
#undef CONFIG_LOGLEVEL
#define CONFIG_LOGLEVEL 7

Bring-up Cheatsheet

U-Boot

Boot using .scr

To enable this feature you need the following U-Boot config:

CONFIG_CMD_RUN=y
@Scott31393
Scott31393 / muttrc files.md
Last active May 24, 2022 09:19
muttrc files

Mutt Configuration

Install offlineimap

Install

$ sudo apt-get install offlineimap

Resize GPT Partition cmdline/yocto

Cmdline using sgdisk

sgdisk -e /dev/mmcblk2
sgdisk -d 6 -n 6:3008462:0 -c 6:home -u 6:8A98FF9D-DE45-4A5E-90E9-49982B5A72A3 -t 6:0700 /dev/mmcblk2

All in a script

#!/bin/sh
@Scott31393
Scott31393 / FreeRTOS_AWS_OTA_Configuration_Steps.md
Last active October 27, 2022 15:52
FreeRTOS AWS OTA Configuration Steps

FreeRTOS AWS OTA Configuration Steps

Create IAM User (This is uses instead of using the ROOT User)

  1. Search and navigate to IAM page
  2. Choose User then Add User
  3. Select the name "My_OTA_User" for example
  4. For access type Select whatever you like (we can use Paragmmatic access)
  5. Select attach existence policy and search for and select the following
  • AmazonFreeRTOSFullAccess

Dockerfile - Build Android 11 (Rockchip)

Dockerfile:

FROM ubuntu:bionic

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y && apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
@Scott31393
Scott31393 / Linux Kernel Develop Workflow Setup.md
Last active November 23, 2022 09:30
Linux Kernel Develop Workflow Setup

Linux Kernel/ U-Boot Develop Workflow

Gitconfig Setup

Configure gmail less secure app

Setup gitconfig

file = ~/.gitconfig