Programming Adventures

with Michał Kalbarczyk

Top StoriesMore Stories »

When WASM gets Rusty?

When WASM gets Rusty?

We will take a look at WASM again! But this time with Rust. Why Rust? Because I can compile Rust directly into WASM. Our goal...
Let's GO WASM

Let's GO WASM

WASM? WebAssembly? Lately I've started to ask myself: "Is WASM worth paying attention to?" Let's find out. There are few languages that can be directly...
Best dotfiles manager is GIT

Best dotfiles manager is GIT

Long story short. Tried lot of dotfiles managers including custom solutions. All of them have a big disadvantage. You have a copy of a file...
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...

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 Lerned: More »

How to create custom OSX startup script?

If you wondering how you can create a script that lunch things on startup?

Create a file ~/Library/LaunchAgents/com.user.startup.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>com.user.startup</string>
    <key>ProgramArguments</key>
    <array>
      <string>sh</string>
      <string>-c</string>
      <string>"$HOME/.config/startup.sh"</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
  </dict>
</plist>

And your script file ~/.config/startup.sh:

#!/bin/bash

# run what you want

Run launchctl load -w ~/Library/LaunchAgents/com.user.startup.plist

That's it!