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
<?php | |
// vim: ts=4 sw=4 noet tw=78 fo=croqn | |
/* | |
* Tests a site performance by using it's sitemap. | |
* | |
* The SiteFetcher class runs multiple URLs in parallel. In theory, you can | |
* instantiate multiple SiteFetcher objects, but unless you fork() this | |
* program, they will be running in sequence, not in parallel. | |
* | |
* Note that the settings are conservative defaults that may still put your |
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
<?php | |
/** | |
* Drop this into the shell directory in the Magento root and run with -h to see all options. | |
*/ | |
require_once 'abstract.php'; | |
/** | |
* Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints. |
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
#!/bin/bash | |
# Patch apllying tool template | |
# v0.1.2 | |
# (c) Copyright 2013. Magento Inc. | |
# | |
# DO NOT CHANGE ANY LINE IN THIS FILE. | |
# 1. Check required system tools | |
_check_installed_tools() { | |
local missed="" |
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
#!/bin/sh | |
_me=`basename $0` | |
_prod_root='/data/web/public' | |
_stage_root='/data/web/staging' | |
_wp_subdir='blog' | |
_wp_imageroot='' | |
[ ! -z "${_wp_subdir}" ] && _wp_imageroot="${_wp_subdir}/wp-content/uploads" | |
echo "Synchronizing media to staging (${_stage_root})" |
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 dcb7b18f53289861af3b540723c759372777f60f Mon Sep 17 00:00:00 2001 | |
From: Melvyn Sopacua <[email protected]> | |
Date: Tue, 15 Nov 2016 12:07:35 +0100 | |
Subject: [PATCH] Fix port to build with openssl-devel: | |
* Do some macro hacking to rework *_init(ctx) to ctx = *_new() caused by | |
making (most) types Opaque | |
* libmd(3) will now be used for generic hashing functions | |
* -lcrypto has to be added since CRYPTO_CHECK(*, openssl, *) now fails | |
* Temporarily set PATCH_STRIP to allow git patches to apply cleanly |
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
--- ./pages/models.py.orig 2016-09-08 03:02:33.000000000 +0200 | |
+++ ./pages/models.py 2017-01-26 23:26:16.672548649 +0100 | |
@@ -18,6 +18,7 @@ | |
from mezzanine.pages.fields import MenusField | |
from mezzanine.pages.managers import PageManager | |
from mezzanine.utils.urls import path_to_slug | |
+from mezzanine.core.models import wrapped_manager | |
class BasePage(Orderable, Displayable): |
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.db import models | |
from django.db.models.signals import post_init | |
from django.db.models.fields import NOT_PROVIDED | |
from django.core import validators as v | |
class Substance(models.Model): | |
name = models.CharField(max_length=32, primary_key=True) | |
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
#!/bin/sh | |
WRKDIR=/usr/obj/ports/usr/ports/astro/nominatim/work | |
WRKSRC=$(realpath .) | |
BUILD_DIR="${WRKDIR}/.build" | |
MAKE=$(which gmake) | |
MAKE_JOBS=${MAKE_JOBS:-"2"} | |
CONFIGURE_ARGS="-DWWW_PUBLIC:PATH=/usr/local/www/nominatim -DWWW_APP:PATH=/usr/local/share/nominatim" | |
rm -rf ${BUILD_DIR} | |
mkdir -p ${BUILD_DIR} |
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.views import generic | |
from django.db.models.base import Model | |
from collections import OrderedDict | |
from django.forms import BaseForm | |
from django.core.validators import RegexValidator | |
__all__ = ( | |
'AdditionalFormsMixin', | |
) |
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 uuid import uuid4 | |
from django.db.models import Model | |
from django.forms import BaseForm | |
__all__ = ( | |
'WrappedForm', | |
) | |
OlderNewer