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
#release-purpose | |
keytool -exportcert -alias <aliasName> -keystore <keystoreFilePath> | openssl sha1 -binary | openssl base64 | |
# To get the release certificate fingerprint: | |
keytool -exportcert -list -v \ | |
-alias <your-key-name> -keystore <path-to-production-keystore> | |
#debug-purpose | |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 | |
# To get the debug certificate fingerprint: |
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
brew install cassandra | |
brew info cassandra # To see status of cassandra | |
brew services start cassandra # To start cassandra | |
brew services stop cassandra # To stop cassandra | |
# Cassandra.yaml file location | |
cat /usr/local/etc/cassandra/cassandra.yaml |
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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= |
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
mkdir lf | |
sudo yum update -y | |
sudo yum install -y git gcc-c++ openssl-devel make | |
git clone git://github.com/creationix/nvm.git ~/.nvm | |
printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc | |
NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
nvm ls-remote | |
nvm install v6.11.2 | |
node -v |
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
const seed = require('seed-random'); | |
seed("<Unique string>", { global: true }); | |
Math.random(); //number 1; | |
Math.random(); //number 2; | |
seed("<Unique string>", { global: true }); | |
Math.random(); //number 1; | |
seed("<Unique string>", { global: true }); | |
Math.random(); //number 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
pip install pandas==0.19.2 | |
pip install tensorflow==0.12.1 | |
pip install numpy==1.12.0 | |
pip install scikit-learn==0.18.1 | |
pip install tqdm==4.11.2 | |
pip install scipy==0.17.0 | |
# You will also install tffm and run your code inside the main folder | |
# //git clone https://github.com/geffy/tffm.git | |
# //cd tffm Here’s a link to the full code of our example, | |
# //in case you want to skip the explanations. |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
cordova platform update [email protected] | |
#https://cordova.apache.org/announcements/2017/04/05/android-release.html | |
## For Android SDK tools 26.0.2 | |
## if ionic throws 'Could not find gradle wrapper within Android SDK. Might need to update your Android SDK' error | |
cordova platform update [email protected] | |
# new | |
cordova platform update [email protected] |
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
sudo yum install java-1.8.0-openjdk #install java openjdk | |
# Follow http://yum.neo4j.org/stable/?_ga=2.103097408.1564015346.1501514682-208718025.1490024803 | |
# http://neo4j.com/docs/operations-manual/current/installation/linux/rpm/ | |
sudo yum install neo4j | |
#http://neo4j.com/docs/operations-manual/current/installation/linux/systemd/ | |
sudo systemctl enable neo4j | |
sudo systemctl start neo4j | |
sudo systemctl {start, restart, stop, status} neo4j |