#!/bin/bash
yum install ncurses-devel openssl-devel -y
yum groupinstall "Development Tools" -y
cd /tmp
wget "http://erlang.org/download/otp_src_19.3.tar.gz" -O otp19.tar.gz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Card | |
box-shadow: | |
0 7px 14px 0 rgba(50,50,93,.1), | |
0 3px 6px 0 rgba(0,0,0,.07); | |
// Dropdown | |
box-shadow: | |
0 0 0 1px rgba(136,152,170,.1), | |
0 15px 35px 0 rgba(49,49,93,.1), | |
0 5px 15px 0 rgba(0,0,0,.08); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax enable | |
colorscheme cobalt2 | |
set tabstop=2 | |
set softtabstop=2 | |
set expandtab | |
" UI Config | |
set number | |
set showcmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ./src/ \( -not -path '*/\.*' -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) -exec ~/rsync -N --crtimes '{}' ./dist/ \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule PrefixID do | |
@doc """ | |
Custom Ecto.Type use macro | |
Example: | |
use PrefixID, prefix: "secret_key" | |
After this, the Ecto type will have |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# /etc/init.d/minecraft | |
# version 0.4.2 2016-02-09 (YYYY-MM-DD) | |
# | |
### BEGIN INIT INFO | |
# Provides: minecraft | |
# Required-Start: $local_fs $remote_fs screen-cleanup | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Foo.Helpers.UrlValidator do | |
def validate(url) do | |
case URI.parse(url) do | |
%URI{scheme: nil} -> {:error, "No scheme"} | |
%URI{host: nil} -> {:error, "No host"} | |
_ -> {:ok, url} | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
# Force ssl | |
RewriteCond %{SERVER_PORT} ^80$ | |
RewriteRule ^(.*)$ https://www.%{SERVER_NAME}%{REQUEST_URI} [L,R=301,NC] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab | |
colorscheme badwolf | |
syntax enable | |
set number | |
set showcmd | |
set cursorline | |
filetype indent on | |
set wildmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var CalendarDate, RelativeTime, browserIsCompatible, domLoaded, iso8601, months, pad, parse, parseTimeZone, process, relativeDate, relativeTimeAgo, relativeTimeOrDate, relativeWeekday, run, strftime, update, weekdays; | |
browserIsCompatible = function() { | |
return document.querySelectorAll && document.addEventListener; | |
}; | |
if (!browserIsCompatible()) { | |
return; | |
} |