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,
| xlsx2csv -d ';' name.xlsx name.csv |
| Extension MIME Type | |
| .doc application/msword | |
| .dot application/msword | |
| .docx application/vnd.openxmlformats-officedocument.wordprocessingml.document | |
| .dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template | |
| .docm application/vnd.ms-word.document.macroEnabled.12 | |
| .dotm application/vnd.ms-word.template.macroEnabled.12 | |
| .xls application/vnd.ms-excel |
| pkexec visudo |
| 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 |
| git cherry-pick <commit id> |
В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)
Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.
Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\[\033[38;5;10m\]\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\[\033[m\])\$ " |