This file contains 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 buttons; | |
buttons = document.getElementsByClassName('_42ft'); | |
for (var i = 0; i < buttons.length; i++) { | |
if(buttons[i].getAttribute('ajaxify') != null){ | |
if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){ | |
buttons[i].click(); | |
} | |
} | |
} |
This file contains 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
def patch_migration_jsonfield(apps, schema_editor): | |
if schema_editor.connection.vendor == 'postgres': | |
return | |
for operation in Migration.operations: | |
field_stack = list() | |
if hasattr(operation, 'fields'): | |
for field in operation.fields: | |
name, field_cls = field | |
if field_cls.__class__ == django.contrib.postgres.fields.jsonb.JSONField: |
This file contains 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
using System.Linq; | |
using System.Threading; | |
using Raven.Abstractions.Data; | |
using Raven.Abstractions.Indexing; | |
using Raven.Client; | |
using Raven.Client.Embedded; | |
using Raven.Json.Linq; | |
using Xunit; | |
namespace RavenDbPatching.StringIdPatching { |
This file contains 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
using System.Linq; | |
using System.Threading; | |
using Raven.Abstractions.Data; | |
using Raven.Abstractions.Indexing; | |
using Raven.Client; | |
using Raven.Client.Embedded; | |
using Raven.Json.Linq; | |
using Xunit; | |
namespace RavenDbPatching.StringIdPatching { |
This file contains 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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<sites> | |
<site name="website"> | |
<patch:attribute name="database">master</patch:attribute> | |
</site> | |
</sites> | |
</sitecore> | |
</configuration> |
This file contains 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 | |
BASE_PATH=`pwd` | |
export PGDATA=$BASE_PATH/data | |
export PGUSER=postgres | |
export ARCLOG_PATH=$BASE_PATH/arclog | |
# determine target PostgreSQL version | |
VERSION=`pg_config --version | sed 's/^PostgreSQL //'` |