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
| DATABASES["default"].update({ | |
| "NAME":"volaris", | |
| "USER":"yey!", | |
| 'OPTIONS': {'init_command':"set storage_engine=MYISAM;"} | |
| }) |
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
| from django.core.files.images import get_image_dimensions | |
| from django.core.exceptions import ValidationError | |
| HELP_TEXT_570 = _(u"El tamaño debe ser 570px y altura variable.") | |
| HELP_TEXT_604 = _(u"El tamaño debe ser ancho 604px y altura variable.") | |
| def validator_570( image ): | |
| w, h = get_image_dimensions(image) | |
| if h != 570: | |
| ValidationError(HELP_TEXT_570) |
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
| 296512382395.remmina | |
| 20:server=10.0.0.200 | |
| 1317161015928.remmina | |
| 26:server=10.0.0.179 | |
| 1318452389130.remmina | |
| 26:server=10.0.0.100 | |
| 1319680312680.remmina |
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
| from jsonrpclib import Server as ServerProxy | |
| import base64 | |
| import jsonrpclib | |
| import json | |
| class AdminTrytonException(Exception): | |
| def __init__(self, result): | |
| self.result = result |
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
| l = [] | |
| for i in bloques: | |
| if i.donativo: | |
| nombre = i.donativo.nombre | |
| apellido = i.donativo.apellido | |
| pais = i.donativo.pais.nombre | |
| fecha = i.donativo.fecha_creacion | |
| else: | |
| nombre = i.perfil.nombre | |
| apellido = i.perfil.apellidos |
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
| jQuery(function($) { | |
| $('div.inline-group').sortable({ | |
| items: 'tr.has_original', | |
| handle: 'td', | |
| update: function() { | |
| $(this).find('tr.has_original').each(function(i) { | |
| $(this).find('input[name$=sequence]').val(i+1); | |
| $(this).removeClass('row1').removeClass('row2'); | |
| $(this).addClass('row'+((i%2)+1)); | |
| }); |
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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace |
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
| # coding: utf-8 | |
| from django.template import Library | |
| from django.db import models | |
| from django.utils.translation import ugettext as _ | |
| register = Library() | |
| def estado_filter(cl): | |
| if not getattr(cl.model_admin, 'estado_filter', False): | |
| return |
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
| set nu | |
| set ts=4 | |
| set sw=4 | |
| set sts=4 | |
| nnoremap <silent> ,q :bp<CR> | |
| nnoremap <silent> ,w :bn<CR> | |
| nnoremap <silent> ,d :bd<CR> |
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
| from twisted.internet import reactor | |
| from twisted.web import http | |
| from twisted.web.proxy import Proxy, ProxyRequest, ProxyClientFactory, ProxyClient | |
| class InterceptingProxyClient(ProxyClient): | |
| def handleResponsePart(self, buffer): | |
| if 'x-requested-with' in self.headers.keys(): | |
| print(buffer) | |
| ProxyClient.handleResponsePart(self, buffer) | |