Get number of files, directories and links in linux
Here is a simple way to find out how many files, directories and links are in current directory:
Here is a simple way to find out how many files, directories and links are in current directory:
When I use git a diff function is really useful but by default it displays VT100 commands instead text coloring. This is solution how to enable colors in git diff. Solution: add this line to your ~/.cshrc.user and source that… Continue Reading
I recently I ran into a problem in Erlang project and I had to find a way to Remove multiple spaces in string and leave only one one space. Solution: Here is solution how to remove it with simple re:replace… Continue Reading
Sed is a really powerful and useful linux program when you want to replace certain string in a file. But it gets harder when you wan replase srting in all available files in directory . Here is the solution with… Continue Reading
About 1,5 year ago I bought a Saleae clone for about 12$. Saleae clone is a small logic analyser built with 8051 microcontroller (CY7C6813A-68VPXC) with USB on board, that uses an original Saleae Logic software. As I remember I had… Continue Reading
I recently bougth two USB-to-UART converters with Prolific PL2303 chip inside. I found them on Aliexpress in a really good price (0.89$ each). After waiting 3 weeks, they finally arrived.
I allways forget how to extract a *.tar.gz file from command line on Linux, so I have to write it down. Example of extract tar file: Where: –x extract –v verbose output (prints all extracted files) –f specify input filename… Continue Reading
Recently I came across a quite difficult problem during setting up a debug configuration for my STM32 ARM development environment in Eclipse. When I was running a I always got „file not found” error in GDB console. GDB error:
General: Return true if all function returns are true. If there is at least one false returns false. Similar to And function but gives the opportunity to execute an additional function Returns true when: Returns false when: Erlang code: Where: returns… Continue Reading
It is very annoying when you try to develop a new application in Codeigniter, but your environment is misconfigured. It often happens when I install a new instance of WAMP Server and it have a default configuration. A very common… Continue Reading