Login to your VPS from command line and type the following:
$ cd /var
$ mkdir repo && cd repo
$ mkdir site.git && cd site.git
$ git init --bare
--bare
means that our folder will have no source files, just the version control.
#=require jquery | |
$(document).on 'change', "form[data-autosubmit] :input, .autosubmit:input, form[data-autosubmit] textarea", ()-> | |
if $(@).parents('form [type=submit]').count > 0 | |
$(@).parents('form [type=submit]').click() | |
else | |
$(@).parents('form').trigger('submit') | |
$(document).on 'blur', "form[data-autosubmit] textarea, form[data-autosubmit] :input", ()-> | |
if $(@).parents('form [type=submit]').count > 0 |
require 'bcrypt' | |
module Encryptor | |
def digest(password) | |
::BCrypt::Password.create(password, cost: 3).to_s | |
end | |
module_function :digest | |
def compare(encrypted_password, password) | |
return false if encrypted_password.blank? |
services: | |
rails: | |
from: ruby:2.1.2 | |
cache: | |
- /bundle | |
- /app/public/assets | |
- /app/public/uploads | |
build: | |
- apt-get update | |
- apt-get install -y libqt4-dev pkg-config |
%div{ style: 'display: none;' } | |
%input{ type: 'file', id: 'uploadImageInput' } |
defmodule MyModule.ArrayCombination do | |
def combination(_, 0), do: [[]] | |
def combination(list, n) when (length(list) < n), do: [] | |
def combination(list, n) when (length(list) == n), do: [list] | |
def combination(list, 1), do: Enum.map(list, fn(x)-> [x] end) | |
def combination([head|tail], n) do | |
Enum.map(combination(tail, n-1), fn(x)-> [head|x] end) ++ combination(tail, n) | |
end |
#=require jquery | |
$(document).on 'change blur', "form[data-autosubmit] :input, .autosubmit:input, form[data-autosubmit] textarea", ()-> | |
if $(@).parents('form [type=submit]').count > 0 | |
$(@).parents('form [type=submit]').click() | |
else | |
$(@).parents('form').trigger('submit') |
# It might seem like we should more correctly reject these sequences in | |
# the encoder, and I would personally agree, but the sad reality is that | |
# we do not distinguish binary and textual data in our language, and so we | |
# wind up with the same thing - a string - containing both. | |
# | |
# That leads to the position where we must treat these invalid sequences, | |
# which are both legitimate binary content, and illegitimate potential | |
# attacks on the system, as something that passes through correctly in | |
# a string |
find . -name '*.*' ! -type d -exec bash -c 'expand -t 2 "$0" > /tmp/e && mv /tmp/e "$0"' {} \; |
winver
). Если установлена более старая сборка:
Settings > Update & Security > Windows Insider Program
(подключаемся к программе, нужен аккаунт Microsoft).Choose your insider level
- выбираем Fast
.Settings > Update & Security > Windows Updates > Check for update
. Смотрим, нашёл ли он обновление до новой сборки (этот шаг у меня занял сутки. Microsoft раздуплился только на следующий день и выдал мне обновление).Fast
на Slow
, дабы что-нибудь внезапно не сломалось.