Skip to content

Instantly share code, notes, and snippets.

View dmitryTsatsarin's full-sized avatar

Dmitry Tsatsarin dmitryTsatsarin

View GitHub Profile
-Computer-
Processor : 2x AMD Athlon(tm) II X2 220 Processor
Memory : 4049MB (3192MB used)
Operating System : Ubuntu 12.04.1 LTS
User Name : dmitri (Dmitry)
Date/Time : Вт. 18 дек. 2012 17:00:49
-Display-
Resolution : 1280x1024 pixels
OpenGL Renderer : Unknown
X11 Vendor : The X.Org Foundation
class A(object):
a=1
class B(object):
b=2
C=B
трям
@dmitryTsatsarin
dmitryTsatsarin / gist:5707024
Created June 4, 2013 15:51
override_settings
from django.test import TestCase
from django.conf import settings
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
with self.settings(NAME='Tim'):
#!/bin/bash
################
# Description:
# This script will take screenshot of your desktop
# or only active window ( running with -u param ),
# copy it to /Dropbox/Public/share/ with uniq name
# and save path to clipboard
#################
# Requirements:
# Dropbox
@dmitryTsatsarin
dmitryTsatsarin / gist:d683678202788d8474be
Created June 28, 2014 20:30
Google chrome notification api example
// Dmitry Tsatsarin
/* Attention!!!!
Required fields:
iconUrl,
type,
title,
message
iconUrl MUST BE(!!!!!) valid url or empty string
the
of
to
and
a
in
is
it
you
that
linux-vdso.so.1 => (0x00007fff96175000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f584e890000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f584e672000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f584e469000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f584e253000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f584de8e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f584ed09000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f584db87000)
@dmitryTsatsarin
dmitryTsatsarin / gist:9dd52e3be3d012758a77
Created June 19, 2015 08:24
рабочий .bashrc
export HISTTIMEFORMAT="%d/%m/%y %T "
# python virtualenv
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export PROJECT_HOME=~/projects/
export WORKON_HOME=~/venvs/
export VIRTUAL_ENV_DISABLE_PROMPT=1
source /usr/local/bin/virtualenvwrapper.sh
fi