Seems that using bare Lex and Yacc is an old school now
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 python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
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
VERSION=0.14.0 | |
SPECIFIER=arduino-cli_${VERSION}_Linux_64bit | |
BINDIR=/usr/local/bin/ | |
# - Avoid redownloading | |
# - Avoid overwriting | |
# - To overwrite, use make uninstall | |
install: | |
TMPDIR=/tmp/$(SPECIFIER) && \ | |
mkdir -p $${TMPDIR} && \ |
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 os import listdir | |
from os.path import isfile, join | |
## Set image folder path | |
dir_path = "C:/img_dir/" | |
## Store files names in folder | |
files = [f for f in listdir(dir_path) if isfile(join(dir_path, f))] | |
for file in files: |
How I update RPIs bootloader
- Get an extra sd-card for flashing updates
- Flash Raspberry OS (used the minimal version) into the sd-card using
balena-etcher
- Using
sudo
runtouch /mnt/.../boot/ssh
to enable ssh login to the rpi - Move the sd-card to the RPi
- Debug hint: from now on use the following to get the different versions
/opt/vc/bin/vcgencmd version
orvcgencmd bootloader_version
or eventvgencmd bootloader_config
.
WIP
This article is really worth it!
This gist tackles, how I did debug the ssh configuration for gitea.
tl;dr: Only read to have some debugging insights, follow this issue to get the final answer directly.
First of all Gitea uses s6 to supervise sshd and gitea itself.
Which automatically resurrects sshd, whenever sshd shuts down.
To rerun the sshd with some other options, hopefully over the same port, as it's the one correctly exposed through docker