Skip to content

Instantly share code, notes, and snippets.

View Eugeny's full-sized avatar

Eugene Eugeny

View GitHub Profile
[
{
"id": "services",
"name": "Services",
"version": "0.5",
"icon": "http://meta.ajenti.org/plugins/services/icon.png",
"desc": "Control system services.",
"author": "Ajenti team",
"homepage": "http://ajenti.org",
"platforms": "ubuntu",
-- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (i686)
--
-- Host: localhost Database: bsuir
-- ------------------------------------------------------
-- Server version 5.1.49-1ubuntu8
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
.shaded {
opacity: 0.5;
display: inline-block;
background: #500;
color: #fff;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
.shaded {
background: #500;
color: #fff;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<style type="text/css">
.shaded {
background: #500;
color: #fff;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<style type="text/css">
.shaded {
background: #500;
color: #fff;
}
>>> from datetime import *
>>> datetime.strptime('+0300', '%z')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/_strptime.py", line 317, in _strptime
(bad_directive, format))
ValueError: 'z' is a bad directive in format '%z'
/* Code comments */
#code-note-form {
display: block;
}
#code-note-form textarea {
width: 100%;
}
<div id="patch">
{% for file in diff.files %}
<div class="box wide-box" id="file-{{file.name|slugify}}">
<div class="top">
{{ file.name }}
<div class="links">
view file:
{% if c and not c.merge and not file.created %}
<a href="/{{repository.user.username}}/{{repository.name}}/{{c.parent}}/blob/{{file.name}}"" class="link lined">
before</a> |
4152044 function calls (4118544 primitive calls) in 28.031 CPU seconds
Ordered by: internal time, call count
List reduced from 547 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
401514 6.884 0.000 9.066 0.000 /usr/lib/pymodules/python2.6/django/utils/translation/__init__.py:23(delayed_loader)
200784/200776 5.112 0.000 5.932 0.000 /usr/lib/pymodules/python2.6/django/utils/importlib.py:18(import_module)
100373 2.453 0.000 20.073 0.000 /usr/lib/pymodules/python2.6/django/utils/formats.py:10(get_format_modules)
1016557 1.711 0.000 1.711 0.000 /usr/lib/pymodules/python2.6/django/utils/functional.py:274(__getattr__)