Skip to content

Instantly share code, notes, and snippets.

View installero's full-sized avatar

Vadim Venediktov installero

View GitHub Profile
@installero
installero / stop_forum_spam.rb
Last active August 10, 2022 15:20
Stop Forum Spam username, ip, email check on Ruby
# https://www.stopforumspam.com/usage
# require 'byebug'
require 'httparty'
url = 'http://api.stopforumspam.org/api';
username, email, ip = ARGV[0..2]
data = {username: [username], email: email, ip: ip}
@installero
installero / html-css-livereload.md
Last active July 23, 2020 13:22
HTML/CSS рецепты: LiveReload

Ссылки

@installero
installero / list_with_spoilers.md
Last active November 3, 2018 06:40
List with spoilers in Markdown example
  1. List item 1
  2. List item 2
  3. List item 3
    Spoiler title Spoiler content
  4. List item 4
@filled = {
'num1' => 1, 'num2' => 2, 'num3' => 3,
'num4' => 4, 'num5' => 5, 'num6' => 6,
'num7' => 7, 'num8' => 8, 'num9' => 9
}
selected = @filled.to_a.select { |e| e[1] != 'text' }
while selected.any?
number = rand(9)

Настройка сертификата в Windows 7

Если вдруг при попытке авторизации вы получили ошибку такого вида:

SSL:connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Twitter::Error)

То придётся ещё немного заморочиться и добавить новый сертификат в вашу систему. Это не сложно. Скопируйте сертификат отсюда, сохраните его, например, по адресу c:\dev\cacert.pem.