https://www.ecliptik.com/Cross-Building-and-Running-Multi-Arch-Docker-Images/
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
ca-certificates update | |
2014-12-11 - Jan Alexander Steffens | |
The way local CA certificates are handled has changed. If you have added any locally trusted certificates: | |
Move /usr/local/share/ca-certificates/*.crt to /etc/ca-certificates/trust-source/anchors/ | |
Do the same with all manually-added /etc/ssl/certs/*.pem files and rename them to *.crt | |
Instead of update-ca-certificates, run trust extract-compat | |
Also see man 8 update-ca-trust and trust --help. |
https://old.yoctoproject.org/tools-resources/projects/toaster
The community used to use hob
to see the dependencies and work on
a project useing a user interface. Now we use toaster
which is a
django
web page.
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 | |
# This is a script that validate the length of arguments | |
if [ $# -lt 3 ]; then | |
cat <<- EOM | |
this command requies three arguments: | |
username, userid, and favorite number. | |
EOM | |
else | |
# Program goes here |
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 | |
# This is a basic bash script | |
flashred="\033[5;31;40m" | |
red="\033[31;40m" | |
close_tag="\033[0m" | |
echo -e "${flashred}ERROR: ${close_tag}${red}Something went wrong! ${close_tag}" |
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
/* this code uses only C features */ | |
static PyObject * | |
foo(PyObject *self, PyObject *args) | |
{ | |
PyObject *cb; | |
// Receive a single argument which can be any Python object | |
// note: the object's reference count is NOT increased (but it's pinned by | |
// the argument tuple). | |
if (!PyArg_ParseTuple(args, "O", &cb)) { |
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
gcloud compute addresses create kubernetes-the-hard-way \ | |
--region $(gcloud config get-value compute/region) |
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
gcloud compute networks create kubernetes-the-hard-way --subnet-mode custom |
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
# Using Ubuntu | |
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
# Using Debian, as root | |
curl -sL https://deb.nodesource.com/setup_12.x | bash - | |
apt-get install -y nodejs |