Quantcast
Channel: d0wn
Browsing latest articles
Browse All 71 View Live

space char directly after var in bash

In bash space is used to determine the end of a variable , for example when you launchvar = abcd echo $var ef this will display abcd ef ,if you try to to display abcdef you can‘t do echo $varef the...

View Article



Test the existence of a file in bash

If you need to test in a bash script if a file exist you can launch the following command. if [ -f /tmp/dnsmasq_leases.log ];then echo "The file exist" else echo "The file doesn't exist" fi Note if...

View Article

Image may be NSFW.
Clik here to view.

Using a old intel cpu cooler on the raspberry pi 4.

The raspberry pi 4 has one of the fastest CPU on a SBC , but it doesn’t come with any cooler , The raspberry is indeed capable of running without a cooler , but if you do anything other than idling,...

View Article

Image may be NSFW.
Clik here to view.

Using bash and gatttool to get readings from Xiaomi Mijia LYWSD03MMC...

There is a new inexpensive Temperature and humidity sensor by xiaomi.This time is no longer round , Xiaomi Mijia LYWSD03MMC Bluetooth 4.2 Temperature Humidity sensor if you like me would like to get...

View Article

Image may be NSFW.
Clik here to view.

Orange Pi Zero 2 : A new Raspberry Pi contender ?

The new Orange Pi Zero 2 Single Board computer If you were searching for a very small and capable SBC to run some linux app on arm cpu , you were already able to buy the original Orange PI zero , but...

View Article


Image may be NSFW.
Clik here to view.

Qingping ClearGrass CGDK2 factory reset

The Qingping Temp & RH Monitor Lite is a cool little BLE device to monitor the temperature inside your home , If you are like me , you don’t really like the mihome app and want to use Home...

View Article

Using the REST api to read sensors on Home assistant

During one of my little project of making timelapses videos with some IP cameras, I had the following problem : How do you stop capturing new images at night when the camera see nothing, After all ,...

View Article

ffmpeg : Only keep one language audio track

When downloading movies from the internet, you may notice that some titles include the word “MULTI.” This indicates that the file contains multiple language options. However, despite the relatively...

View Article


JSON text filtering with jq

I frequently have to intereact with some json files , since bash is the main tool i use day to day i must master the usage of jq, but i noticed that the vast majority of totorials on jq usage just...

View Article


Using VI to insert spaces at the begining of every line

In the Vi text editor, you can insert two spaces at the beginning of each line using a command called “substitution.” Here’s how you can do it: when in vi with your text displayed : Press the Esc key...

View Article
Browsing latest articles
Browse All 71 View Live




Latest Images