This file contains hidden or 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
curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt > ruby2.x-openssl.patch | |
RUBY_APPLY_PATCHES=$'ruby2.x-openssl.patch' PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig RUBY_EXTRA_CONFIGURE_OPTIONS="--with-openssl-dir=/usr/lib/openssl-1.0" asdf install ruby 2.1.2 |
This file contains hidden or 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
#need install libmagick6 | |
PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig' gem install rmagick -v '2.15.4' |
This file contains hidden or 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
gem install puma -v '2.16.0' -- --with-cppflags=-I/usr/include/openssl-1.0 --with-ldflags=-L/usr/lib/openssl-1.0 |
This file contains hidden or 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
version: '2' | |
services: | |
drone-server: | |
image: drone/drone:0.8 | |
ports: | |
- 8001:8000 | |
- 9000 | |
volumes: |
This file contains hidden or 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
require 'digest' | |
class ProofOfWork | |
class << self | |
# Проверяет доказательство работы | |
def verify_pow(nonce, message, difficulty) | |
little_endian(digest(nonce, message)) % (1 << difficulty) == 0 | |
end | |
# Создает доказательство работы для сообщения |
This file contains hidden or 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
/*------------------------------------------------------------------------- | |
* | |
* UUID generation functions using the OSSP UUID library | |
* | |
* Copyright (c) 2007-2013, PostgreSQL Global Development Group | |
* | |
* contrib/uuid-ossp/uuid-ossp.c | |
* | |
*------------------------------------------------------------------------- | |
*/ |
This file contains hidden or 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/sh | |
TIMEOUT=15 | |
QUIET=0 | |
echoerr() { | |
if [ "$QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi | |
} | |
usage() { |
This file contains hidden or 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
//// GLOBAL VENDOR STYLES | |
@import "../application/stylesheets/bootstrap/bootstrap"; | |
@import "metismenu/src/metisMenu.css"; | |
@import "switchery-npm/index.css"; | |
@import "malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css"; | |
//LINE AWESOME ICONS | |
@import "~line-awesome/src/scss/line-awesome"; | |
@import "~simple-line-icons/scss/simple-line-icons"; |
This file contains hidden or 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
# generated by pgsh | |
DATABASE_URL=postgres://postgres:postgres@localhost:5432/my-project |
This file contains hidden or 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
def attributes_for_save | |
p = proc do |*args| | |
v = args.last | |
v.delete_if(&p) if v.respond_to? :delete_if | |
v.nil? || v.respond_to?(:'empty?') && v.empty? | |
end | |
attributes.delete_if(&p) | |
end |