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
package CharacterTests; | |
use strict; | |
use warnings; | |
# Using utf8, so we can have interesting chars in the source code. | |
use utf8; | |
use FoswikiFnTestCase; | |
our @ISA = qw( FoswikiFnTestCase ); |
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 databases = db.adminCommand('listDatabases')['databases']; | |
var count = 0; | |
for (var item in databases) { | |
print(databases[item]['name']); | |
count = count + db.getMongo().getDB(databases[item]['name']).current.count(); | |
} |
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 databases = db.adminCommand('listDatabases')['databases']; | |
for (var item in databases) { | |
db = db.getMongo().getDB(item['name']); | |
db.current.ensureIndex({_web: 1}); | |
db.current.ensureIndex({_topic: 1}); | |
db.current.ensureIndex({'TOPICINFO.author': 1}); | |
db.current.ensureIndex({'TOPICINFO.date': 1}); | |
db.current.ensureIndex({'CREATEINFO.author': 1}); | |
db.current.ensureIndex({'CREATEINFO.date': 1}); |
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
#!/usr/bin/perl -wT | |
use warnings; | |
use strict; | |
sub _stashText { | |
my ($fragment, $map, $key) = @_; | |
my $id = $map->{index}; | |
ASSERT(ref($map) eq 'HASH') if DEBUG; |
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 | |
set -e | |
get_atime() { | |
ls -lad --time=atime --time-style='+%Y-%m-%dT%H:%M:%S%z' "$1" | tail -n+1 \ | |
| cut -d ' ' -f6 - | |
} | |
FAIL=0 | |
test_atime_stable() { |
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 | |
#On Jessie this can now be: | |
. /lib/cryptsetup/cryptdisks.functions | |
FORCE_START=1 do_start |
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
# `prepare_dir_tarball some_dir` | |
# | |
# Given a directory name in the pwd (with NO trailing slash), create or update | |
# `some_dir.tar.gz` only if the contents of the tarball would actually change. | |
# | |
# Although Dockerfiles allow you to ADD a directory, this isn't cacheable. | |
# Instead, maintain a tarball which allows you to ADD a host directory as a file | |
# which *is* cacheable. I.E.: | |
# | |
# Prior to running your container: |
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
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c | |
index bc58078..5093ed5 100644 | |
--- a/drivers/mmc/host/omap_hsmmc.c | |
+++ b/drivers/mmc/host/omap_hsmmc.c | |
@@ -1021,6 +1021,15 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status) | |
struct mmc_data *data; | |
int end_cmd = 0, end_trans = 0; | |
+ if (!host->req_in_progress) { | |
+ do { |
NewerOlder