Skip to content

Instantly share code, notes, and snippets.

View Phathdt's full-sized avatar
😆
there is always a reason to smile

Phathdt Phathdt

😆
there is always a reason to smile
  • Caliber Venture Builder
  • Ho Chi Minh city
View GitHub Profile
@sourabh-upadhyay
sourabh-upadhyay / sublime_ruby_setup.md
Created February 16, 2017 11:45
sublime /bin/bash ruby command not found

If you face issue when running ruby code in sublime like (sublime /bin/bash ruby command not found) Then just follow the below steps to run the code in Sublime.

$ type -p ruby

  • /home/mypc/.rvm/rubies/ruby-2.4.0/bin/ruby

$ sudo ln -s /home/mypc/.rvm/rubies/ruby-2.4.0/bin/ruby /usr/local/bin/ruby

Then restart your sublime and run the ruby code.

@william8th
william8th / .tmux.conf
Last active July 22, 2024 12:43
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"

Using Elixir releases and multi-stage Docker files to simplify Phoenix deployment

This repo is my experiment in deploying a basic Phoenix app using the release feature from elixir 1.9 (https://elixir-lang.org/blog/2019/06/24/elixir-v1-9-0-released/) and docker, via a multi-stage Dockerfile (https://docs.docker.com/develop/develop-images/multistage-build/) leveraging bitwalker's docker images for Elixir and Phoenix.

Step 1: Install Elixir 1.9.1 (and Erlang)

The simplest way to manage Elixir versions is to use asdf.