One way to do this is to use bundler to scaffold our gem:
bundler gem my_gem
I prefer to put tasks meant to manage the gem itself in lib/tasks, and tasks the gem is meant to provide to gem users in lib/my_gem/tasks.
One way to do this is to use bundler to scaffold our gem:
bundler gem my_gem
I prefer to put tasks meant to manage the gem itself in lib/tasks, and tasks the gem is meant to provide to gem users in lib/my_gem/tasks.
| # space150 vine-to-GIF | |
| # given a vine.co uri, downloads the MP4 and creates an image sequence / GIF from it | |
| # requires ruby, ffmpeg, and imagemagick | |
| require 'open-uri' | |
| require 'nokogiri' | |
| id = ARGV[0] | |
| # try to convert from URL to id. |
UPDATE 2016-12-01: Please refer to the official guide instead of this process.
UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.
Hello,
| root# apt-get update | |
| root# apt-get upgrade | |
| root# adduser deployer | |
| root# gpasswd -a deployer sudo | |
| root# nano /etc/ssh/sshd_config | |
| root# PermitRootLogin no | |
| root# service ssh restart |
В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)
Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.
Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
#Docker
##Files and Folders.
|
|\_ app
|...
|\_ docker
| |