- Creating the rust project:
cargo init gnustatic && cd gnustatic
- Creating
.cargo
configuration directory
# Compiler and flags | |
CC = gcc | |
CFLAGS = -Wall -Wno-nonnull -Wextra -Wno-sign-compare | |
# Target names | |
TARGET = qos | |
SRCS = main.c | |
OBJS = $(SRCS:.c=.o) | |
# Default target |
On the section Driver & Utility
download the most recent version
Unzip it, rename from: TUF-GAMING-X670E-PLUS-ASUS-XXXX.CAP
to TX670EPL.CAP
Format a USB stick to FAT and copy the TX670EPL.CAP
to it
Put the USB stick into USB port intended for BIOS update
#!/usr/bin/env bash | |
declare -A COLOR | |
COLOR['END']='\033[0m' | |
COLOR['RED']='\033[0;31m' | |
COLOR['GREEN']='\033[0;32m' | |
COLOR['YELLOW']='\033[0;33m' | |
COLOR['BLUE']='\033[0;34m' | |
COLOR['WHITE']='\033[0;37m' |
#!/usr/bin/env bash | |
set -e | |
gpiodetect > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo "Debian package gpiod not installed..." | |
apt-get update | |
apt-get install gpiod | |
fi |
#!/usr/bin/env bash | |
declare -A COLOR | |
COLOR['END']='\033[0m' | |
COLOR['RED']='\033[0;31m' | |
if [ "$#" -ne 1 ]; then | |
echo -e "${COLOR['RED']}[ERROR] You must provide one and only one argument:${COLOR['END']}" >&2 | |
echo -e "${COLOR['RED']}1. The path to the job.yaml file\n${COLOR['END']}" >&2 | |
exit 1 |
#!/bin/bash | |
set -e | |
help() { | |
echo -e "${COLOR['RED']}Usage: sudo $(basename "$0") <go version> <arch> ${COLOR['END']}" | |
echo -e "${COLOR['RED']}Options: ${COLOR['END']}" | |
echo -e "${COLOR['RED']} <go version>, The version of GO in format: MAJOR.MINOR.PATCH.${COLOR['END']}" | |
echo -e "${COLOR['RED']} example: sudo $(basename "$0") 1.20.6 ${COLOR['END']}" | |
echo -e "${COLOR['RED']} <arch>, The CPU arch (default amd64) ${COLOR['END']}" |
#!/bin/bash | |
## This is a simple script to update | |
## all packages of a server and | |
## install docker all in one shot. | |
## Enjoy! :D | |
sudo apt-get update && sudo apt-get upgrade -y | |
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done |