sudo apt update
sudo apt install brightnessctl
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
https://lindevs.com/install-protoc-on-ubuntu |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
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 python:3.9-slim-bullseye | |
ENV VIRTUAL_ENV=/opt/venv | |
RUN python3 -m venv $VIRTUAL_ENV | |
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | |
# Install dependencies: | |
#COPY requirements.txt . | |
#RUN pip install -r requirements.txt |
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
// sleep function is updated as below | |
func sleepForWait(ctx context.Context,t time.Duration) { | |
select { | |
case <-ctx.Done(): | |
return | |
case <-time.After(t): | |
return | |
} | |
} |
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
func sleepForWait(t time.Duration) { | |
for startTime := time.Now(); time.Since(startTime) < t; time.Sleep(10 * time.Second) { | |
if !*IsCampaigRunning { | |
// We use logrus for logging | |
logrus.Info("LEFT SLEEPING !!! IMMEDIATELY STOPING CAMPAIGNS PROCESSING") | |
return | |
} | |
} | |
} |
NewerOlder