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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
======= | |
Copyright DataStax, Inc. | |
Please see the included license file for details. | |
--> | |
<!-- |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
======= | |
Copyright DataStax, Inc. | |
Please see the included license file for details. | |
--> | |
<!-- |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
======= | |
Copyright DataStax, Inc. | |
Please see the included license file for details. | |
--> | |
<!-- |
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
mkdir enhanced | |
for sp in *.jpg; do | |
echo "Converting Image: $sp" | |
convert -auto-gamma -auto-level -normalize $sp "enhanced/$sp" | |
done | |
# from http://superuser.com/questions/370920/auto-image-enhance-for-ubuntu |
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
COMMAND=$1 | |
FILE=$DSE_CASS_CONFIG_HOME/jvm.options | |
OPTIONS=( | |
'-XX:+PrintGCDetails' | |
'-XX:+PrintGCDateStamps' | |
'-XX:+PrintHeapAtGC' | |
'-XX:+PrintTenuringDistribution' | |
'-XX:+PrintGCApplicationStoppedTime' |
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
class SleepTimer(object): | |
""" | |
timer = SleepTime(10) | |
do_something_for_3_sec() | |
timer.sleep() # will sleep 7 | |
""" | |
def __init__(self, how_long): | |
self.how_long = how_long | |
self.start_time = datetime.datetime.now() | |
self.i_have_slept = False |
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
``` | |
class Foo(object): | |
def __init__(self): | |
self._init_variables() | |
def _init_variables(seld): | |
self._x = 4 | |
``` |
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
export DRIVER_FILE=3.0.0rc1.tar.gz | |
export DRIVER_DIR=python-driver-3.0.0rc1 | |
sudo pip uninstall cassandra-driver -y | |
wget https://github.com/datastax/python-driver/archive/$DRIVER_FILE | |
tar xzf $DRIVER_FILE | |
cd $DRIVER_DIR | |
sudo python setup.py install --no-extensions | |
NewerOlder