Top Stories More Stories »

How to generate git commit message using AI?

When WASM gets Rusty?

Let's GO WASM

Best dotfiles manager is GIT

How to Create Desktop Application with Elixir

How to Use Elixir's Compiler to Avoid Typos

7 Tips for Building Kiosk Device with Nerves and Buildroot

Umbrella On Rails

Brewing the Firmware for Raspberry PI with Elixir and Nerves
Featured Projects More Projects »
colorize
2007-04-22
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.
Inesita
2015-06-21
Inesita is a web frontend framework for fast building browser application using Ruby. It uses Virtual DOM for page render.
fazic
2017-12-08
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.
Defql
2017-01-21
Create elixir functions with SQL as a body. Github: https://github.com/fazibear/defql
Last Learned: 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!
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!