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
db.invitation.find({ "_id" : ObjectId("503f6c14e4b060812b6e99e7")}).explain() | |
{ | |
"cursor" : "BtreeCursor _id_", | |
"isMultiKey" : false, | |
"n" : 1, | |
"nscannedObjects" : 1, | |
"nscanned" : 1, | |
"nscannedObjectsAllPlans" : 1, | |
"nscannedAllPlans" : 1, | |
"scanAndOrder" : false, |
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
root@chainsaw:~# tail -f -n 500 /var/log/mongodb/mongodb.log | |
Mon Sep 10 03:19:46 [conn12466] query jeraff.todoList query: { creatorId: "5039fc83e4b0df076990eb26", slug: "miscellaneous-todos" } ntoreturn:1 ntoskip:0 nscanned:1 keyUpdates:0 locks(micros) r:55658 nreturned:1 reslen:570 55ms | |
Mon Sep 10 03:19:51 [conn13848] end connection 192.168.254.189:40481 (425 connections now open) | |
Mon Sep 10 03:19:51 [initandlisten] connection accepted from 192.168.254.189:40483 #13850 (426 connections now open) | |
Mon Sep 10 03:19:59 [conn13849] end connection 192.168.254.82:42840 (425 connections now open) | |
Mon Sep 10 03:19:59 [initandlisten] connection accepted from 192.168.254.82:42843 #13851 (426 connections now open) | |
Mon Sep 10 03:20:21 [conn13850] end connection 192.168.254.189:40483 (425 connections now open) | |
Mon Sep 10 03:20:21 [initandlisten] connection accepted from 192.168.254.189:40486 #13852 (426 connections now open) | |
Mon Sep 10 03:20:29 [conn13851] end connection 192.168.254.82:42843 (425 connections now open) | |
Mo |
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
root@nightmare:~# iozone -R -l 5 -u 5 -r 4k -s 100m -F /data/iozone/1.txt /data/iozone/2.txt /data/iozone/3.txt /data/iozone/4.txt /data/iozone/5.txt | |
Iozone: Performance Test of File I/O | |
Version $Revision: 3.373 $ | |
Compiled for 64 bit mode. | |
Build: linux-AMD64 | |
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins | |
Al Slater, Scott Rhine, Mike Wisner, Ken Goss | |
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | |
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, |
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
// entity is pretty much a pojo | |
@Entity(value = "activityStream", noClassnameStored = true) | |
public class ActivityStream extends BaseEntity { | |
private String userId; | |
private String todoId; | |
private String todoListId; | |
private String suggestionId; | |
private String actorId; | |
private ActivityType activityType; // turned into an int before inserting |
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
insert query update delete getmore command flushes mapped vsize res faults locked db idx miss % qr|qw ar|aw netIn netOut conn set repl time | |
0 9 3 0 3 3 0 21.1g 43.6g 4.82g 0 jeraff:0.1% 0 0|0 0|0 1k 11k 828 jeraffprod PRI 21:15:54 | |
3 30 5 0 12 14 0 21.1g 43.6g 4.82g 0 .:1.2% 0 0|0 0|0 4k 33k 828 jeraffprod PRI 21:15:55 | |
2 26 22 4 25 15 0 21.1g 43.6g 4.96g 0 jeraff:152.9% 0 0|0 0|1 22k 72k 828 jeraffprod PRI 21:15:56 | |
3 26 3 0 7 4 0 21.1g 43.6g 5.34g 0 jeraff:206.5% 0 0|0 0|1 4k 38k 828 jeraffprod PRI 21:15:57 | |
2 47 19 1 20 31 0 21.1g 43.6g 4.9g 0 jeraff:180. |
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
insert query update delete getmore command flushes mapped vsize res faults locked db idx miss % qr|qw ar|aw netIn netOut conn set repl time | |
0 27 7 0 541 30 0 20.1g 41.2g 3.18g 0 jeraff:159.7% 0 6|0 0|2 29k 353k 329 jeraffprod PRI 18:33:05 | |
0 15 6 0 899 7 0 20.1g 41.2g 3.2g 1 jeraff:221.9% 0 4|2 0|2 44k 578k 330 jeraffprod PRI 18:33:10 | |
10 55 37 5 2081 73 0 20.1g 41.3g 3.17g 1 .:75.1% 0 8|0 0|1 117k 1m 333 jeraffprod PRI 18:33:12 | |
2 24 28 0 41 16 0 20.1g 41.3g 3.17g 2 jeraff:114.6% 0 17|1 1|2 11k 75k 338 jeraffprod PRI 18:33:13 | |
8 43 146 5 206 55 0 20.1g 41.3g 3.18g 1 jeraff:79.3% 0 5|0 0|2 69k 356k 341 jeraffprod PRI 18:33:15 |
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
import sys | |
import urllib2 | |
langs = { | |
"en": "English", | |
"la": "Latin", | |
"af": "Afrikaans", | |
"sq": "Albanian", | |
"ar": "Arabic", | |
"hy": "Armenian", |
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
YELLOW="\[\033[1;33m\]" | |
PINK="\[\e[1;35m\]" | |
GREEN="\[\e[1;32m\]" | |
BLUE="\[\e[1;36m\]" | |
PLAIN="\[\e[m\]" | |
BLACK="\[\e[1;30m\]" | |
function parse_git_branch { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\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
{ "Africa/Abidjan" , 0x000000 }, | |
{ "Africa/Accra" , 0x000055 }, | |
{ "Africa/Addis_Ababa" , 0x0000FD }, | |
{ "Africa/Algiers" , 0x000153 }, | |
{ "Africa/Asmara" , 0x00027E }, | |
{ "Africa/Asmera" , 0x0002D4 }, | |
{ "Africa/Bamako" , 0x00032A }, | |
{ "Africa/Bangui" , 0x000395 }, | |
{ "Africa/Banjul" , 0x0003EA }, | |
{ "Africa/Bissau" , 0x000461 }, |
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
Caused by: java.lang.ClassCastException: com.jeraff.config.ConfigurationWrapper cannot be cast to com.jeraff.config.ConfigurationWrapper |