Skip to content

Instantly share code, notes, and snippets.

View RenatoExpert's full-sized avatar
🎯
Focusing

Renato Araujo RenatoExpert

🎯
Focusing
View GitHub Profile
@RenatoExpert
RenatoExpert / senai_atividade.txt
Created September 28, 2021 14:24
Pseudo codigo para CLP de acionamentos eletricos
bool is_resting = true;
bool auto_mode = true;
################# REAGINDO AO NIVEL DA BOMBA ############
function response (levelp) {
#levelp is level percentage
#the return is a integer in hertz for the frequency the bomb
# should ajust to
if (levelp<25) {
#include <stdio.h>
char stylize (int hey) {
//char prod[9];
//sprintf(prod, "%d", hey);
//char hou = atoi(prod);
return hey;
}
int digitos () {
@RenatoExpert
RenatoExpert / run_me_koolit.txt
Created February 10, 2022 06:25
An utilitary for setting up ACPI Mutex
#!/bin/bash
# autor: renatoexpert
# renatorraraujo@gmail.com
# to: ja koolit
# Logging stuff
LOGFILE='bash.log'
tee $LOGFILE < $PIPEFILE &
TEEPID=$!
exec > $PIPEFILE 2>&1
@RenatoExpert
RenatoExpert / icaro.ino
Created March 30, 2022 01:14
Sensor level C++ code for Arduino - For Professor Rodrigo Icaro
/*
* Level Sensor C++ Code for Arduino
* Renato Araújo, 29 mar 2022
* renatorraraujo@gmail.com
* github: @renatoexpert
*/
/*
* NOTE
* Tinkercad eletronics are not working properly, since
@RenatoExpert
RenatoExpert / auto_pump.ino
Created March 30, 2022 20:12
Sensor level with Pump C++ code for Arduino - For Professor Rodrigo Icaro
/*
* Level Sensor C++ Code for Arduino
* Renato Araújo, 29 mar 2022
* renatorraraujo@gmail.com
* github: @renatoexpert
*/
/*
* NOTE
* Tinkercad eletronics are not working properly, since
/*
Event: 'connect'#
Added in: v0.7.0
response <http.IncomingMessage>
socket <stream.Duplex>
head <Buffer>
Emitted each time a server responds to a request with a CONNECT method. If this event is not being listened for, clients receiving a CONNECT method will have their connections closed.
This event is guaranteed to be passed an instance of the <net.Socket> class, a subclass of <stream.Duplex>, unless the user specifies a socket type other than <net.Socket>.
@RenatoExpert
RenatoExpert / git_console.sh
Created June 16, 2022 17:40
This is script is an terminal emulator for use git commands faster
#!/bin/bash
# This is script is an terminal emulator for use git commands faster.
# I like to use it in a tmux panel, when Im developing software. This way
# I can work a bit faster.
while true
do
read -p "$ git " COMMAND
# If no command is sent, it will consider as status (git status)
@RenatoExpert
RenatoExpert / install_zsh_with_kali_theme.sh
Last active January 4, 2023 06:50
Install Zsh with Kali theme!
#!/bin/sh
echo "Written by Renato R R Araujo <renatorraraujo@gmail.com>"
echo "License Warning
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
"
echo "Press any key if you read and agree with these terms, or press Ctrl+C anytime to cancel"

Configure a custom kernel to be compiled

How settings are storaged

The configuration is just a ´.config´ text file inside source directory. Each line mention an option like CONFIG_ARCH_USE_MEMTEST=y. Every driver can be marked to be compiled into the kernel monolith (DRIVER=y), or as module(DRIVER=m), or as not be compiled(DRIVER=n).

How to get or create a .config

  • You can copy from your distro's config. Its location varies, but is usually something like /boot/config-3.0.7 (need to rename) or /usr/src/linux/.config.
  • Another option is to generate a brand new using make alldefconfig (create a .config with default modules) or make tinyconfig (a very tiny kernel).
; Made by Renato Araujo, 2023
; renatorraraujo@gmail.com
; gh: renatoexpert
JSR init
JSR loop
init:
LDA #$11
STA $00