Skip to content

Instantly share code, notes, and snippets.

View ppsilv's full-sized avatar

Paulo da Silva ppsilv

  • To push use the https://github.com/ppsilv/cppDES getToken with key <o nome do filho do cara>
View GitHub Profile
@ppsilv
ppsilv / getOldCommitBranchTagCreate.txt
Last active September 10, 2025 20:17
Busca de commit antigo e criação de branch e tag a partir dele
git checkout 3dcf0a10ab13855358c8c9ada30498ce773cd2be
criar uma branch do checkout atual:
git checkout -b stable-base
stable-base é o nome da branch ponha um de sua preferência para se
referir à nova branch.
cria uma tag do checkout atual:
@ppsilv
ppsilv / NestedRepos.txt
Created January 19, 2025 02:47
How to nest repos inside a repo.
Just to be clear, what you want is possible, if you're willing to make a
few compromises. First, we can bundle everything into a single repository.
Let's assume I have three existing repositories assignment1, assignment2,
and assignment3.
I can create an aggregate repository:
$ git init all-assignments
And then import the history of the three individual repositories into
@ppsilv
ppsilv / DRV16C550.S
Last active April 1, 2024 20:08
UART 16C550 DRIVER FOR 6502
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; BIOS
;
;; vERSION 0.0.1
.setcpu "6502"
.debuginfo
.segment "ZEROPAGE"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ppsilv
ppsilv / mainline_guide.md
Last active November 14, 2023 02:41 — forked from lategoodbye/mainline_guide.md
Raspberry Pi: How to cross-compile and use Mainline Kernel

Raspberry Pi: How to cross-compile and use Mainline Kernel

Notes on how to set up a new Ubuntu 18.04 LTS x64 environment, how to build the Mainline Kernel and place it on a Raspberry Pi OS SD card.

Procedure

  1. Install tools needed:
$ apt install git make gcc g++ device-tree-compiler bc bison flex libssl-dev libncurses-dev python3-ply python3-git libgmp3-dev libmpc-dev
@ppsilv
ppsilv / 30-sysinfo
Created October 18, 2023 05:10
This file must be put into /etc/update-motd/ directory and chmoded to exectable.
#!/bin/bash
#
# 30-sysinfo - generate the system information
# Copyright (c) 2015 Igor Pecovnik
# define which hard drive you want to monitor
#storage=/dev/sda1
storage=/dev/mmcblk0p2
@ppsilv
ppsilv / motd.d
Created October 18, 2023 02:25
Another way to have a colored motd
Create the the following file
sudo vim /etc/update-motd.d/10-uname
Content of this file.
#!/bin/sh
export TERM=xterm-256color
read one five fifteen rest < /proc/loadavg
echo "$(tput setaf 2)
Kernel: `uname -v | awk -v OFS=' ' '{print $4, $5}'`
@ppsilv
ppsilv / motd
Created October 18, 2023 02:14
colored motd file .
^[[32m
DDDDD DD D DDDDD DDDDD
D D DD D D D
D D D D D D D eee r rrr v v eee r rrr
D D D D D DDDDD DDDDD e e r v v e e r
D D D D D D D eeee r v v eeee r
D D D DD D D e r v v e r
DDDDD DD DD DDDDD DDDDD eeee r v eeee r
^[[31m
@ppsilv
ppsilv / openMediaVaultInstall.txt
Created October 17, 2023 00:52
Open media vault Raspberry PI installation
Installation Instructions
Recently the folks at 52pi.com reached out and asked if they could send me a Mini Tower NAS Kit for me to review here on the channel.
I told them that the case looked great, but I couldn't just post a review of a raspberry pi case. However, if they wanted to send over a pi 4 to put in it, I could make some content that included the case.
They agreed and sent over the Mini Tower NAS Kit and a pi 4 4gb.
A few days ago I made a short where I put it together to prep for the video you're watching now. As I mentioned in the short, the case only took about 20 minutes to install even with recording and whatnot.
To compile linux drivers
1 - You must have a correct environment with the linux headers for your kernel or for the kernel you are compiling the driver maybe you are crosscompiling the driver
thing that I don't know it is possible.
* For orangepi 5 plus the kernel and ubuntu 22.04 jammy header are in /opt
when I am writing this the package is: /opt/linux-headers-legacy-rockchip-rk3588_1.0.6_arm64.deb for the kernel 5.10.110-rockchip-rk3588, use uname -r to get your
kernel version.
* Some distributions you can use apt-get install linux-headers$('shell uname -r')
* Unforunately you will must discover how to get your linux kernel headers.
Create this dir
/etc/systemd/system/run-docker-.mount.d
Create this file
/etc/systemd/system/run-docker-.mount.d/10-silence.conf
Add this content
[Mount]
LogLevelMax=notice
Relead the system
sudo systemctl daemon-reload