Skip to content

Instantly share code, notes, and snippets.

View sedovolosiy's full-sized avatar

Serhii Siedovolosij sedovolosiy

View GitHub Profile
User:
id
username
password_hash
email
status
auth_key
created_at
updated_at
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/workpilots/workpilots-virtenv/build/pillow/setup.py", line 767, in <module>
zip_safe=not debug_build(), )
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
@sedovolosiy
sedovolosiy / install-opencv-2.4.13-in-ubuntu.sh
Created August 9, 2016 22:03 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install opencv-2.4.13 in Ubuntu 16.04
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev
https://kasperskyhub.staging.wpengine.com/securelist-russia/api/get_post/?post_id=26959
{
"status": "ok",
"post": {
"id": 26959,
"type": "post",
"slug": "ddos-ot-samyx-malenkix",
"url": "https://kasperskyhub.staging.wpengine.com/securelist-russia/blog/issledovaniya/26959/ddos-ot-samyx-malenkix/",
"status": "publish",
"title": "DDoS от самых маленьких",
https://kasperskyhub.staging.wpengine.com/securelist-russia/api/get_author_index/
{
"status": "ok",
"count": 30,
"authors": [
{
"id": 624,
"slug": "alexey-malanov",
"name": "Alexey Malanov",
{
"status": "ok",
"count": 2,
"count_total": 6984,
"pages": 3492,
"posts": [
{
"id": 28614,
"type": "post",
"slug": "the-rio-olympics-scammers-already-competing",
{
"status": "ok",
"post": {
"id": 28614,
"type": "post",
"slug": "the-rio-olympics-scammers-already-competing",
"url": "https://kasperskyhub.staging.wpengine.com/securelist-russia/blog/phishing-blog/28614/the-rio-olympics-scammers-already-competing/",
"status": "publish",
"title": "Олимпиада в Рио-де-Жанейро: мошенники уже участвуют",
"title_plain": "Олимпиада в Рио-де-Жанейро: мошенники уже участвуют",
"sizes": {
"thumbnail": {
"file": "atomickis_blog-150x150.jpg",
"width": 150,
"height": 150,
"mime_type": "image/jpeg",
"source_url": "https://kasperskyhub.staging.wpengine.com/global/files/2015/07/atomickis_blog-150x150.jpg"
},
"medium": {
"file": "atomickis_blog-300x197.jpg",
@sedovolosiy
sedovolosiy / multiple_ssh_setting.md
Created January 21, 2018 11:13 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@sedovolosiy
sedovolosiy / api_logger.rb
Created October 26, 2020 14:01 — forked from dblock/api_logger.rb
API logger with Grape under Rails
class ApiLogger < Grape::Middleware::Base
def before
Rails.logger.info "[api] Requested: #{request_log_data.to_json}\n" +
"[api] #{response_log_data[:description]} #{response_log_data[:source_file]}:#{response_log_data[:source_line]}"
end
private
def request_log_data