Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################################ | |
There is some long text that needs to be copied into grub in order to boot. | |
You should be able to copy and paste it using minicom if you add a 1 or 2 ms delay to text input | |
Ctrl-A Z Minicom Menu | |
T Terminal Settings | |
F Character tx delay (ms) | |
2 | |
################################################################################################ | |
### Choose your SD Card |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from machine import Pin | |
for i in range(0, 41): | |
try: | |
pin = Pin(i) | |
print("%s: " % pin, pin.value()) | |
except ValueError: | |
print("Invalid pin:", i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem::Specification.new do |s| | |
# normal spec stuff above | |
s.files = `git ls-files`.split("\n") | |
# get an array of submodule dirs by executing 'pwd' inside each submodule | |
gem_dir = File.expand_path(File.dirname(__FILE__)) + "/" | |
`git submodule --quiet foreach pwd`.split($\).each do |submodule_path| | |
Dir.chdir(submodule_path) do | |
submodule_relative_path = submodule_path.sub gem_dir, "" | |
# issue git ls-files in submodule's directory and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GITHUB = "github" | |
GITLAB = "gitlab" | |
JIHULAB = "jihulab" | |
BITBUCKET = "bitbucket" | |
def ssh_config | |
config = 'Host github.com | |
IdentityFile ~/.ssh/id_ed25519_github | |
Host gitlab.com | |
IdentityFile ~/.ssh/id_ed25519_gitlab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir ~/tmp | |
cd ~/tmp | |
# See | |
# Typical ARM triples (see "armv7l-linux-gnueabi") | |
# https://bgamari.github.io/posts/2019-06-12-arm-terminology.html | |
# GCC -march options | |
# https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env set bootcmd_usb "run findfdt; usb start; if run loadimage_usb; then run usbboot; fi" | |
env set loadfdt_usb "fatload usb ${usbdev}:${usbpart} ${fdt_addr} ${fdt_file}" | |
env set loadimage_usb "fatload usb ${usbdev}:${usbpart} ${loadaddr} ${image}" | |
env set usbargs "setenv bootargs console=${console},${baudrate} root=${usbroot}" | |
env set usbboot "echo Booting from usb ...; run usbargs; if run loadfdt_usb; then bootz ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi" | |
env set usbdev 0 | |
env set usbpart 1 | |
env set usbroot "/dev/sda2 rootwait rw" | |
run bootcmd_usb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# deboot.sh | |
# script to build Ubuntu rootfs (for arm64, armhf, powerpc, ppc64el) | |
# | |
# Copyright 2017 knotdevel | |
# Released under the MIT license | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# |
NewerOlder