Programming Adventures

with Michał Kalbarczyk

Top StoriesMore Stories »

How to Create Desktop Application with Elixir

How to Create Desktop Application with Elixir

Writing desktop application is not an easy task. But why don't use Elixir, Phoenix and LiveView? We will figure out how we can create a...
How to Use Elixir's Compiler to Avoid Typos

How to Use Elixir's Compiler to Avoid Typos

In this article, I want to describe how you can use elixir metaprogramming to avoid some runtime errors caused by typos. If you're passing around...
7 Tips for Building Kiosk Device with Nerves and Buildroot

7 Tips for Building Kiosk Device with Nerves and Buildroot

For about a year I’m working on some interesting machine. The first challenge was to build a kiosk device. During working on that I’ve made...
Umbrella On Rails

Umbrella On Rails

So you want to have a Rails application with few other applications inside? Can I have a Rails application inside a Rails application? If you...
Brewing the Firmware for Raspberry PI with Elixir and Nerves

Brewing the Firmware for Raspberry PI with Elixir and Nerves

As the PIX PROJECT started to be a real thing. I decided to make it more dynamic. The first version written in Ruby is very...
The Beginner’s Guide to Linux Kernel Module, Raspberry Pi and LED Matrix

The Beginner’s Guide to Linux Kernel Module, Raspberry Pi and LED Matrix

When I found an old broken bluetooth speaker with RGB LED matrix, I decided to make use of it. It will be the great challenge...

Featured ProjectsMore Projects »

colorize

colorize

22 April 2007

Ruby gem for colorizing text using ANSI escape sequences. Extends String class or add a ColorizedString with methods to set text color, background color and text effects.

Github: https://github.com/fazibear/colorize

Defql

Defql

21 January 2017

Create elixir functions with SQL as a body.

Github: https://github.com/fazibear/defql

fazic

fazic

8 December 2017

FAZIC is a fantasy retro computer. You can create, share, and play tiny games or programs. You have the built-in BASIC interpreter, so you can start now like it's the 80s.

https://fazic.fazibear.me

Inesita

Inesita

21 June 2015

Inesita is a web frontend framework for fast building browser application using Ruby. It uses Virtual DOM for page render.

https://inesita.fazibear.me/

Last LernedMore »

How to replace text in files?

Wondering how you can replace text content in every file using regex?

Just create and alias using your shell. Im my case it will be fish alias:

Add to your ~/.config/fish/config.fish this line:

alias replace "perl -p -i -e $argv"

and here you go!

~ $ replace 's/hello/goobye/g' *.md

BTW! Hope you have perl installed. I have ;)