Skip to content

Instantly share code, notes, and snippets.

View linevych's full-sized avatar
🐴

Anton Linevych linevych

🐴
View GitHub Profile
/томос|різдво|христове|христос|митрополит|ісус|православний|православна|церква|рпц|церковним|христовим|бог|боже|божий|божому|молитва|патріарх|патріаршому|патріарху|патріархам|господь|господу|господнім|/i
@linevych
linevych / settings.py
Created January 17, 2018 00:49
Celery settings to to debug it with PyCharm
from celery import current_app
current_app.conf.CELERY_ALWAYS_EAGER = True
current_app.conf.CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
@linevych
linevych / dmesg
Created December 14, 2016 19:10
Dmesg
[ 0.000000] Linux version 4.8.10-gentoo (root@desktop) (gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4) ) #2 SMP Mon Dec 12 17:05:41 EET 2016
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.8.10-gentoo root=UUID=499d3a52-1ed5-4454-bd74-ad61a392dc52 ro iommu=force amd_iommu=on init=/usr/lib/systemd/systemd
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
@linevych
linevych / .config
Created December 14, 2016 19:08
Kernel config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.8.10-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
@linevych
linevych / models.py
Created July 9, 2016 21:02
Custom User model for Dmytro
# -*- coding: utf-8 -*-
# В Python 3 кодування писати не має змісту.
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import AbstractUser
USER = 0
OWNER = 1
SELLER = 2
user_type_choice = (
@linevych
linevych / urls.py
Last active July 6, 2016 19:31
Code review for Dmytro
"""vitruna URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
fab -R preview deploy:full=True
[139.59.135.161:2001] Executing task 'deploy'
Do you want to deploy preview? [y/N] y
[139.59.135.161:2001] run: git pull origin preview
Traceback (most recent call last):
File "/home/linevich/projects/.env/lib/python3.5/site-packages/fabric/main.py", line 751, in main
*args, **kwargs
File "/home/linevich/projects/.env/lib/python3.5/site-packages/fabric/tasks.py", line 385, in execute
multiprocessing
File "/home/linevich/projects/.env/lib/python3.5/site-packages/fabric/tasks.py", line 275, in _execute