I hereby claim:
- I am jastkand on github.
- I am jastkand (https://keybase.io/jastkand) on keybase.
- I have a public key ASBPn14FnSITRAlkzA9-Ul6_93w8YN-rWTKa9MlTzmBYzAo
To claim this, I am signing this object:
// https://stackoverflow.com/questions/15898740/how-to-convert-rgba-to-a-transparency-adjusted-hex | |
function hexify(color) { | |
var values = color | |
.replace(/rgba?\(/, '') | |
.replace(/\)/, '') | |
.replace(/[\s+]/g, '') | |
.split(','); | |
var a = parseFloat(values[3] || 1), | |
r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255), |
I hereby claim:
To claim this, I am signing this object:
require 'mina/bundler' | |
require 'mina/git' | |
require 'mina/rbenv' | |
set :domain, 'your_domain.com' | |
set :deploy_to, '/home/deployer/app_name' | |
set :repository, '[email protected]:user_name/app_name' | |
set :branch, ENV["brunch"] || 'master' | |
set :app_name, "app_name" |
FROM erlang:19.1 | |
ENV APP_HOME /hackney | |
WORKDIR $APP_HOME | |
ADD . $APP_HOME | |
RUN rebar3 tree | |
CMD ["rebar3", "shell"] |
Сервер обязательно должен быть с SSL
Необходимо загрузить файл сборки на сервер в какой-либо каталог и сохранить ссылку на этот файл. Пусть ссылка на сборку будет https://mysite.com/builds/my-app.ipa
Создать на сервере plist-файл с следующим содержанием
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Upgrade steps were taken from this article.
sudo service postgresql stop 9.3
sudo service postgresql stop 9.4
sudo su - postgres
/usr/lib/postgresql/9.4/bin/pg_upgrade -b /usr/lib/postgresql/9.3/bin/ -B /usr/lib/postgresql/9.4/bin/ -d /var/lib/postgresql/9.3/main -D /var/lib/postgresql/9.4/main -o ' -c config_file=/etc/postgresql/9.3/main/postgresql.conf' -O ' -c config_file=/etc/postgresql/9.4/main/postgresql.conf'
sudo apt-get install tofrodos | |
fromdos file_path.file |
require 'RMagick' | |
require 'fileutils' | |
def clean_temp(dir) | |
FileUtils.rm_rf(dir) if File.exists?(dir) | |
end | |
pdf = Magick::ImageList.new("input.pdf") | |
dir = './temp' |
As configured in my dotfiles.
start new:
tmux
start new with session name: