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
apt-get update | |
apt-get upgrade | |
apt-get install sysstat | |
sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r) | |
apt-get install fuse | |
apt-get install git | |
apt-get install cmake |
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
====================================================================== | |
FAIL: Tests that columns of an instance can be read as a dict. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/travis/build/cqlengine/cqlengine/cqlengine/tests/model/test_model_io.py", line 65, in test_model_read_as_dict | |
self.assertEquals(sorted(tm.values()), sorted(column_dict.values())) | |
AssertionError: Lists differ: [8L, UUID('90c38c5e-bec9-4d46-... != [True, 8L, UUID('90c38c5e-bec9... | |
First differing element 0: | |
8 | |
True |
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
jhaddad@jons-mac-pro ~$ cat test.py | |
print "hello", | |
print "hello", | |
jhaddad@jons-mac-pro ~$ python test.py | |
hello hello |
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
6177317 function calls (6105118 primitive calls) in 8.067 seconds | |
Ordered by: cumulative time | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.028 0.028 8.075 8.075 ctest.py:1(<module>) | |
10000 0.066 0.000 7.910 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/models.py:470(create) | |
10000 0.071 0.000 7.754 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/query.py:521(create) | |
10000 0.086 0.000 7.219 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/models.py:489(save) | |
10000 0.168 0.000 5.402 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/query.py:821(save) |
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 get_teams(user_id): | |
return [x.team for x in UserTeamIndex.objects(user_id=user_id)] | |
# vs | |
def get_teams(team_id): | |
return UserTeamIndex.objects(user_id=user_id).masquerade_as(Team) |
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
activity | timestamp | source | source_elapsed | |
----------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+---------------- | |
execute_cql3_query | 22:08:30,398 | 192.168.16.48 | 0 | |
Parsing select * from parent_stats where entity_id = 9f2fc7df-ad83-4560-bc10-41c1b795b681 and date = '2013-04-15 00:00:00+0000'; | 22:08:30,398 | 192.168.16.48 | 72 | |
Preparing statement | 22:08:30,399 | 192.168.16.48 | 142 | |
Executing single-partition query on parent_stats | 2 |
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
Tracing session: 2ff8d730-53b5-11e3-a629-63d608bb827e | |
activity | timestamp | source | source_elapsed | |
----------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+---------------- | |
execute_cql3_query | 20:32:21,027 | 192.168.16.48 | 0 | |
Parsing select * from parent_stats where entity_id = 9f2fc7df-ad83-4560-bc10-41c1b795b681 and date = '2013-04-15 00:00:00+0000'; | 20:32:21,027 | 192.168.16.48 | 97 | |
Preparing statement | 20:32:21,027 | 192.168.16.48 | 158 | |
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
ubuntu@cassandra16 [PRODUCTION]:~$ nodetool proxyhistograms | |
proxy histograms | |
Offset Read Latency Write Latency Range Latency | |
1 0 0 0 | |
2 0 0 0 | |
3 0 0 0 | |
4 0 0 0 | |
5 0 0 0 | |
6 0 0 0 | |
7 0 0 0 |
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
# This is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# aliases | |
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY |
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 com.shift.smm; | |
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.lang.instrument.Instrumentation; | |
import java.util.concurrent.TimeUnit; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; |