Just another list
Normaly we only think about docker containers if we want to containerize something in linux. But there are more options lxd/lxc is one of those other solutions.
Where docker containers are mostly used to start one process, lxd containers are more like containerized...
These are project i want to do a little bit more with, about machine learning
I am creating this list from my trello list to have a reminder of what i can blog about
I need somewhere a list to remember things that i want to learn more off, i have a bunch of lists, so now one more list.
I had a problem installing gitlab-ce a newer version, because it was a mayor update you first needed to install a older version.
Mermaid is a easy way to create easy graphics like flowcharts
For example
flowchart TD
start([Start]) -->
declare1(Declare variables a, b and c) -->
assign1[/Assign a, b and c/] -->
condition1{Is a>b?} -- False -->
condition1_false{Is c>b?} -- False -->
pri...
How to bridge a local mosquitto mqtt broker to a free hivemq cloud bridge
apt-get install mosquitto
To install the package
Change the mosquitto config file /etc/mosquitto/mosquitto.conf
connection cloudmqtt
address .hive...
How to see caching stats etc.
show hitratio rate
varnishstat
Hitrate ratio: 10 100 1000 Hitrate avg: 0.3373 0.3012 0.3400
This Means the last 10 seconds we have a hitrate of 33.73% and the last 100 seconds only 30.12%...
I am trying to use tmux more than screen, but a cheat sheet could be usefull.
detach from window
ctrl-b d
list sessions
tmux ls
connect to session
tmux at -t
create session
tmux new -s "session_name" "co...
Once in a while i want to start a bash script and make sure it one at a time. So searching for solution for creating a lock file in bash, you want to have a solution that doesn't create a race condition.
Start defining which lockfile you want to use
export...
Once in a while i need to debug a bash script that i wrote, but i need to search how to get the line number of debug to a file, so easier for me to put it in mij blog, maybe it will help somebody else also.
Enable debugging
set -x
Add line numbers
...
I try to put here some VIM keybindings, that i forget all the time so that i can find them easily, and maybe it will also help someone else.
press q in normal mode followed by a letter ( a to z)
With opyrator you can create a web function from any python function, it used fastapi, streamlit and pydantic.
For this example i just wanted to test what is posible also using pydantic to change some input and output field
Start by creating...
If you have a disk image with multiple partitions, this type of image is used a lot for the raspberry pi, you can easily mount them using kpartx, you can install kpartx as follows
# arch linux / manjaro
sudo pacman -S multipath-tools
# ubuntu 20.04
sudo apt install kpartx
# centos 8
sudo yum ins...
I few shorts remarks about selinux, more like a reminder for myself
Restore directory permissions, exmple authorized keys files that doesn't work
restorecon -R -v ~/.ssh
How to temporarily disable selinux, i use this for debugging to see if the problem is selinux
echo 0 >/selinux/enforce
#...
Hello,
I once needed to split a mysql dump in to multiple files, one per database so i used this awk one liner.
awk -F'`' '{if ($0 ~ /^-- Current Database:/) db=$2; print >> db"-split.sql"}' mysql_dump.sql
If you need to split one table from one database you can try the following bash scripts
...If you want to start some daemon in the background you can install daemontools and user supervise, but i like to use screen to start daemons in the background, so that i can easily see the output.
# check screen
if ! /usr/bin/screen -ls | awk '{print $1}' | grep "\.${SCREEN_NAME}$" >/dev/null;...
Once in a will you need you have a lang running script that you started into a shell but you want to transfer it to a screen. For this i am using the reptyr program which i installed with
sudo pacman -S reptyr or sudo apt-get install reptyr
find pid
ps ax | grep ssh
# find pid 34177 (for exa...
I wanted to control the my television and blu ray player/receiver from my pi, so i installed the client on my raspbian pi installation.
Everytime cec_client start it's does some initializing, so i wanted to run is as some kind of daemon, i thought about a fire options, like maybe some expect kind...
On-demand activation of Docker containers with systemd
One of the features of systemd is its ability to defer the start-up of networked applications until their services are actually requested, a process referred to as socket activation. This isn't really a new an idea; systemd borrowed the idea f...
Moved the site from shared hosting to a docker container
The Raspberry Pi is typically booted from an SD card which contains the bootloader and the root partition. This can be limiting from a space and speed perspective,and writes to the card will slowly cause it’s death. SD media doesn’t typically use the same wear leveling technology that goes into a so...
Lightworks is our full-featured editor with all the power, performance and features you would expect, with support for all major professional broadcast formats from SD, HD, 2K and Red 4K files. We believe that to make great work, you need great tools. And editing is no exception. Our mission is to g...
Whether you are a Fedora, Ubuntu, Arch Linux or any other Linux distribution user you probably have used the lovable system monitor software, Conky. Being highly configurable, Conky is capable to display any system status such as CPU , disk usage, memory, temperature , emails and etc. on your desk...
VSRE stands for "very short reply expected".
It's a way for you to indicate to the recipients of your email that they have to reply with a short (usually one to five words) reply.
Typical replies to VSRE are "Yes", "No", or "Tuesday", or “Pls send more info".
It is not a standard, just a hum...
Belier allows opening a shell or executing a command on a remote computer through a SSH connection. The main feature of Belier is its ability to cross several intermediate computers before realizing the job.
Belier reaches the final computer through intermediate machines.You can execute commands w...
http://www.jeffstory.org/wordpress/?p=1070
This is the first time in the history of Arch Linux that a GUI installer has been available!
Fu-rch is an “authentic” Arch Linux installer, it does not install a distro derived from Arch! The live CD comes loaded with the Fu-rch GUI installer, gparted...
collectd gathers statistics about the system it is running on and stores this information. Those statistics can then be used to find current performance bottlenecks (i.e. performance analysis) and predict future system load (i.e. capacity planning). Or if you just want pretty...
Work backwards from goals to milestones to tasks. Writing “launch company website” at the top of your to-do list is a sure way to make sure you never get it done. Break down the work into smaller and smaller chunks until you have specific tasks that can be accomplished in a few hours or less: Sketc...
6 Different Ways To Kill Unresponsive Programs in Linux.
The good thing about Linux is that you almost never have to hit the reset button due to unresponsive or hung applications. There are so many ways you can gain back control that you never have to resort to such extreme measures. In thi...