Skip to content

Instantly share code, notes, and snippets.

View DorkNstein's full-sized avatar

Yeshwanth M DorkNstein

  • Dallas
View GitHub Profile
#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:
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
@DorkNstein
DorkNstein / .bashrc
Last active December 6, 2020 17:45
bashrc file with all the useful aliases
# .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=
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
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;
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/jpeg" />
</intent-filter>
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.
@DorkNstein
DorkNstein / 0_reuse_code.js
Created August 30, 2017 14:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@DorkNstein
DorkNstein / ionic-gradle-error-fix.sh
Last active November 2, 2017 23:04
Android SDK Tools 25.3.1 Google dropped support for the android binary, so cordova-android has now adopted support for the avdmanager and sdkmanager binaries. We have also taken the opportunity to rewrite how we use gradle on the user's system. cordova-android now requires Android Studio or Gradle to be installed on the user's system. Follow the…
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]
@DorkNstein
DorkNstein / Install-neo4j-on-aws-rhel.sh
Last active April 24, 2019 18:25
neo4j config location /etc/neo4j/neo4j.conf
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