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 / 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 / bind_socket.py
Created April 24, 2023 14:27 — forked from tuxfight3r/bind_socket.py
python tcp socket client / server examples
#!/usr/bin/python
import socket #for sockets
import sys #for exit
try:
#create an AF_INET, STREAM socket (TCP)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error, msg:
print 'Failed to create socket. Error code: ' + str(msg[0]) + ' , Error message : ' + msg[1]
@ppsilv
ppsilv / rc2014.md
Created July 29, 2022 20:40 — forked from jblang/rc2014.md
RC2014 Links