Skip to content

Instantly share code, notes, and snippets.

View Artnoc1's full-sized avatar
💭
I may be slow to respond.

Alex Artnoc1

💭
I may be slow to respond.
View GitHub Profile

buildroot.org The Buildroot user manual 302 - 384 minutes Buildroot 2021.08 manual generated on 2021-09-04 09:54:54 UTC from git revision aa433d1c5c The Buildroot manual is written by the Buildroot developers. It is licensed under the GNU General Public License, version 2. Refer to the COPYING file in the Buildroot sources for the full text of this license. Copyright © 2004-2020 The Buildroot developers logo.png Chapter 1. About Buildroot Buildroot is a tool that simplifies and automates the process of building a complete Linux system for an embedded system, using cross-compilation. In order to achieve this, Buildroot is able to generate a cross-compilation toolchain, a root filesystem, a Linux kernel image and a bootloader for your target. Buildroot can be used for any combination of these options, independently (you can for example use an existing cross-compilation toolchain, and build only your root filesystem with Buildroot).

elinux.or
RPiconfig - eLinux.org
As the Raspberry Pi doesn't have a conventional BIOS, the various system configuration parameters that would normally be kept and set using the BIOS are now stored in a text file named "config.txt". The Raspberry Pi config.txt file is read by the GPU before the ARM core is initialized. This file is an optional file on the boot partition. It would normally be accessible as /boot/config.txt from Linux, but from Windows (or OS X) it would be seen as a file in the accessible part of the card. To edit the configuration file, see the instructions at R-Pi_ConfigurationFile. You can get your current active settings with the following commands:
vcgencmd get_config <config> - lists a specific config value. E.g. vcgencmd get_config arm_freq vcgencmd get_config int- lists all the integer config options that are set (non-zero vcgencmd get_config str` - lists all the string config options that are set (non-null)
1 File forma
2 Memor
2.1 CMA - dynamic memory spli
3 C

#Customize BASH PS1 prompt to show current GIT repository and branch.
#by Mike Stewart - http://MediaDoneRight.com
#SETUP CONSTANTS
#Bunch-o-predefined colors. Makes reading code easier than escape sequences.
#I don't remember where I found this. o_O
#Reset
Color_Off="\[\033[0m\]" # Text Reset
@Artnoc1
Artnoc1 / bash
Last active February 2, 2023 03:55
#!/usr/bin/env bash
#
#
# Colors for script
BOLD="\033[1m"
GRN="\033[01;32m"
RED="\033[01;31m"
RST="\033[0m"
YLW="\033[01;33m"

BASH_VARIABLES


BASHOPTS

A colon-separated list of enabled shell options. Each word in the list is a valid argument for the -s option to the shopt builtin command (see The Shopt Builtin). The options appearing in BASHOPTS are those reported as ‘on’ by ‘shopt’. If this variable is in the environment when Bash starts up, each shell option in the list will be enabled before reading any startup files. This variable is readonly.


## BASHPID

Expands to the process ID of the current Bash process.
This differs from $$ under certain circumstances, such as subshells that do not require Bash to be re-initialized.

@Artnoc1
Artnoc1 / Githowto.md
Last active January 15, 2022 20:49
GITHOWTO

"47. Добавление удаленного репозитория"


Добавить чистый репозиторий в качестве удаленного репозитория к нашему оригинальному репозиторию. Давайте добавим репозиторий hello.git к нашему оригинальному репозиторию.


cd hello
git remote add shared ../hello.git
@Artnoc1
Artnoc1 / .FORK
Last active November 11, 2022 11:17 — forked from drnic/Very Gisty
termux.md FORK.md [[bash4]].md bashrc
#gh repo fork mzlogin/
#gh repo fork https://github.com/ --clone
# ------------------------------------------------------
#
gh repo fork mzlogin/mzlogin/snippets --clone
gh repo fork mzlogin/MemIniParser --clone
gh repo fork mzlogin/cscope_macros.vim --clone
gh repo fork mzlogin/StickExpandListHead --clone
gh repo fork mzlogin/WrapContentListView --clone
gh repo fork mzlogin/patterns-and-architectures --clone
@Artnoc1
Artnoc1 / HTML2TEXT.md
Last active September 20, 2022 11:37
H2T, CONVERT ALL HTM AND HTML FILES OF A DIRECTORY TO TEXT
#!/data/data/com.termux/files/usr/bin/bash
#html2text

apt install lynx -y
#---------------------------------------
#FOR HTM
for file in ls *.htm
do
new=basename $file htm
@Artnoc1
Artnoc1 / git.savannah.gnu.org_git
Last active April 19, 2022 09:58
git.savannah.gnu.org_git.md
3dldf.git
8sync
8sync.git
AutismTools.git
a2ps.git
achatina.git
acl.git
ada-mode.git
adgmix.git
administration
@Artnoc1
Artnoc1 / nano.md
Last active February 1, 2021 23:08
                  +-----+                      
     +------------| USB |------------+         
     |            +-----+            |         
B5   | [ ]D13/SCK        MISO/D12[ ] |   B4    
     | [ ]3.3V           MOSI/D11[ ]~|   B3    
     | [ ]V.ref     ___    SS/D10[ ]~|   B2    
C0   | [ ]A0       / N \       D9[ ]~|   B1    

C1 | [ ]A1 / A \ D8[ ] | B0