Docker Microservie Instances
Helm (Kubernetes) Scalling
Understanding Microservice Performance.
appmetrics-*
| $ sudo apt-get update | |
| $ sudo apt-get install nginx | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /var/www/html; | |
| index index.html index.htm index.nginx-debian.html; |
Docker Microservie Instances
Helm (Kubernetes) Scalling
Understanding Microservice Performance.
appmetrics-*
| #!/bin/bash | |
| # installing erlang on ubuntu's | |
| VERSION="R15B01" | |
| sudo apt-get install build-essential libncurses5-dev openssl libssl-dev | |
| sudo mkdir -p /opt/erlang/ | |
| curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl | |
| sudo mv kerl /opt/erlang/ |
Install ElasticSearch and Java
1 wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
2 sudo dpkg -i elasticsearch-1.0.1.deb
3 sudo update-rc.d elasticsearch defaults 95 10
4 sudo add-apt-repository ppa:webupd8team/java
5 sudo apt-get update
6 sudo apt-get install oracle-java7-installer
7 java -version
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless | |
| wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.deb | |
| sudo dpkg -i elasticsearch-6.3.2.deb | |
| sudo systemctl enable elasticsearch.service | |
| #https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-16-04 | |
| # For config and Securing the ES |
| if [ ! -f /usr/bin/mongod ]; then | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 | |
| echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list | |
| sudo apt-get update | |
| sudo apt-get install -y mongodb-org | |
| else | |
| echo "mongo db already installed. Skipping..." | |
| sudo service mongod stop | |
| sudo apt-get purge mongodb-org* | |
| sudo rm -r /var/log/mongodb |
| Android-ObservableScrollView | |
| https://github.com/ksoichiro/Android-ObservableScrollView | |
| https://github.com/biokys/cropimage | |
| ExoPlayer | |
| --Live audio video Streaming and all | |
| https://github.com/google/ExoPlayer | |
| package com.sivsivsree.firetest; | |
| import android.app.Notification; | |
| import android.app.NotificationManager; | |
| import android.app.PendingIntent; | |
| import android.app.Service; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.os.IBinder; | |
| import android.support.v4.app.NotificationCompat; |
| /* | |
| * Code snippet to post a HTML5 Canvas image to Facebook | |
| * H. Nagata | |
| * | |
| * Variables: | |
| * accessToken: Facebook access token | |
| * targetID: Posting target id such as user id or album id | |
| * canvas: HTMLCanvasElement | |
| * base64.decode: c.f. https://github.com/hnagata/js-base64 | |
| * |
| <?php | |
| require 'tmhOAuth.php'; // Get it from: https://github.com/themattharris/tmhOAuth | |
| // Use the data from http://dev.twitter.com/apps to fill out this info | |
| // notice the slight name difference in the last two items) | |
| $connection = new tmhOAuth(array( | |
| 'consumer_key' => '', | |
| 'consumer_secret' => '', | |
| 'user_token' => '', //access token |