This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
# NOT Thread-Safe! | |
# now support only text files | |
# TODO: | |
# 1. Remove self.path in functions | |
import os | |
import shutil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string = "abcdefabcdeabcddcbacdbacdbbabdcfbcdabfbcdf" | |
result = [] | |
mask = 0 | |
rules = { | |
1: "a", | |
2: "b", | |
4: "c", | |
8: "d", | |
16: "e", | |
32: "f", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
timer_resolution 100ms; | |
worker_rlimit_nofile 65535; | |
worker_priority -2; | |
events { | |
worker_connections 32768; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/iconvdata/iso646.os.d:290: *** missing separator. Stop. | |
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r3/work/glibc-2.15/iconvdata' | |
make[1]: *** [iconvdata/subdir_lib] Error 2 | |
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r3/work/glibc-2.15' | |
make: *** [install] Error 2 | |
emake failed | |
* ERROR: sys-libs/glibc-2.15-r3 failed (install phase): | |
* (no error message) | |
* | |
* Call stack: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router ~ # emerge --info glibc [28/1977] | |
Portage 2.1.11.9 (default/linux/amd64/10.0/server, gcc-4.5.4, glibc-2.15-r2, 3.4.9-gentoo x86_64) | |
================================================================= | |
System Settings | |
================================================================= | |
System uname: Linux-3.4.9-gentoo-x86_64-AMD_Athlon-tm-_Processor_LE-1620-with-gentoo-2.1 | |
Timestamp of tree: Sun, 28 Oct 2012 10:00:02 +0000 | |
app-shells/bash: 4.2_p37 | |
dev-java/java-config: 2.1.11-r3 | |
dev-lang/python: 3.2.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only in kurs/2var(rabotaet)/client: daemon.pyc | |
diff -r -u kurs 1/2var(rabotaet)/client/main_client.py kurs/2var(rabotaet)/client/main_client.py | |
--- kurs 1/2var(rabotaet)/client/main_client.py 2012-11-03 02:52:06.000000000 +0400 | |
+++ kurs/2var(rabotaet)/client/main_client.py 2012-11-05 14:45:18.000000000 +0400 | |
@@ -10,7 +10,7 @@ | |
import subprocess | |
import platform | |
-class derivedDaemon(Daemon): | |
+class derivedDaemon(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from tornado import httpserver | |
from tornado import httpclient | |
from tornado import ioloop | |
from tornado import web | |
from tornado import options | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from tornado import httpserver | |
from tornado import httpclient | |
from tornado import ioloop | |
from tornado import web | |
from tornado import options | |
from tornado import httputil | |
from tornado import curl_httpclient |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import alsaaudio, time, audioop | |
try: | |
from Tkinter import * # python2 | |
except ImportError: | |
from tkinter import * # python3 | |
try: | |
xrange # py 2 | |
except NameError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static apr_status_t ap_unix_create_privileged_process( | |
apr_proc_t *newproc, const char *progname, | |
const char * const *args, | |
const char * const *env, | |
apr_procattr_t *attr, ap_unix_identity_t *ugid, | |
apr_pool_t *p) | |
{ | |
int i = 0; | |
const char **newargs; | |
char *newprogname; |