Saturday, 11 July 2020

Generate MD5/SHA1/SHA256 and HASHKEY for FACEBOOK using Command Prompt or Terminal


# GET  MD5/SHA1/SHA256

DEBUG:-
keytool -list -v -keystore "C:\Users\Milan\.android\debug.keystor
e" -alias androiddebugkey -storepass android -keypass android


LIVE:-
>  Ubunt
keytool -exportcert -alias xapp -keystore /home/msp/Desktop/Milan/Backup/XiFi\ Networks/Play\ Store/xapp_certi.jks -list -v

> Window
C:\Program Files (x86)\Java\jre1.8.0_161\bin>keytool -exportcert -alias sudoku -keystore "D:\My Work\Application Backup\general certi" -list -v

or

keytool -list -v -keystore path_to_jks -alias test -storepass test@123 -keypass test@123


# GET HASHKEY for FACEBOOK

DEBUG :-
keytool -list -printcert -jarfile path_to_apk | grep -Po "(?<=SHA1:)
 .*" |  xxd -r -p | openssl base64


LIVE :- 
GET Hashkey for FACEBOOK (From keystore or jks)
keytool -exportcert -alias androiddebugkey -keystore path_to_jks | openssl sha1 -binary | openssl base64



Note : Found Keytool from JRE OR JDK Folder

Friday, 1 November 2019

Cron time, Different time for cron

A cron schedule is defined by setting values in five slots * * * * *. Each slot takes can take a single number, range of numbers, or * wildcard. Each slot is defined as:

Minute (0-59) Minute of the hour
Hour (0-23) Hour of the day
Day (1-31) Day of the month
Month (1-12) Month of the year
Weekday (0-6) Day of the week where, Sunday == 0, Monday == 1, …, Saturday == 6.
The script to execute (not necessary for Cloud Functions)


Visite below Website:

https://fireship.io/snippets/crontab-crash-course/


Wednesday, 10 July 2019

Json api response Format of diffirent scenario.

Sample 1 - success
{
  "status": 200,
  "message": "Success",
  "data": {
    "fieldint": 1,
    "fieldstr": "value2",
    "fieldN": "valueN"
  }
}

Sample 2 - fail
{
  "status": 403,
  "message": "Forbidden"
}

Sample 3 - a single array
{
  "status": 200,
  "message": "Success",
  "data": {
    "listname": [
      {
        "fieldint": 1,
        "fieldstr": "value2",
        "fieldN": "valueN"
      },
      {
        "fieldint": 1,
        "fieldstr": "value2",
        "fieldN": "valueN"
      },
    ]
  }
}

Sample 4 - multiple arrays
{
  "status": 200,
  "message": "OK",
  "data": {
    "listname1": [
      {
        "fieldint": 1,
        "fieldstr": "value2",
        "fieldN": "valueN"
      },
      {
        "fieldint": 1,
        "fieldstr": "value2",
        "fieldN": "valueN"
      }
    ],
    "listname2": [
      {
        "fieldint": 1,
        "fieldstr": "value2",
        "fieldN": "valueN"
      },
      {
        "fieldint": 1,
        "fieldstr": "value2",
        "fieldN": "valueN"
      }
    ]
  }
}

Sample 5 - Request date not ok
{
  "status": 422,
  "message": "any param missing / any error "
}

Friday, 2 November 2018

Recover Keystore. Mission keystore

do you lost your keystore ?

Generate debug keystore
/home/msp/Desktop/Milan/android-studio/jre/jre/bin/keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

step1)Generate new keystore usnig debug keystore
/home/msp/Desktop/Milan/android-studio/jre/jre/bin/keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks

step2)Convert keystor to pem file
/home/msp/Desktop/Milan/android-studio/jre/jre/bin/keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks

Sunday, 28 October 2018

List of Commands


Helpfull Commands

==================>  Git Command  <=================
git init
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/milankamariya/visitorbook_web.git
git push -u origin main

git remote add origin https://github.com/milankamariya/visitorbook_web.git
git branch -M main
git push -u origin main


==================>  BitBucket Command  <=================

1) Need to create repository in bitbucket login

2) add access key of PC(repository/setting/access key)
*Generate key : https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys-776639788.html

3) usefullcommands:-

===>
add file
git init
git add . /git pull --all
git commit -m 'comment'
git push origin (git push origin master)

===> Remove file or Folder
git rm -r fodername/

===> get checkout
git clone httl...reposito url.


===> Tell Git who you are
git config --global user.name "Sam Smith"

git config --global user.email sam@example.com

# When you work with branch
git clone -b branchname --single-branch https://a.....droid.git

git init
git add .
git commit -m 'comment'
git push origin branchname


==================>  SVN Command  <=================

- For Clean up
svn cleanup

- For Add all file
svn add --force .


- For Commit
svn commit .

ctrl+x

c(Continue)

-Delete file
svn delete gradlew.bat


===================>  COMMANDS  UBUNTU <============

* Permission
sudo chmod -R 777 Downloads/apg

* Remove catch
sudo rm -rf .catch/



Tuesday, 10 July 2018

Sample 360 videos

360 Video Sample url: 

1) http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/gallery/live_photokina_rig_session01_hd.mp4

2) http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/gallery/live_photokina_rig_session02_hd.mp4

3) http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/gallery/live_photokina_rig_session03_hd.mp4

4)http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/default/immersive_ninjas_640x480_15fps_audio_LowID_streamable.mp4

5) http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/default/immersive_ninjas_1280x720_15fps_audio_LowID_streamable.mp4

6) http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/default/immersive_ninjas_1920x1080_15fps_audio_LowID_streamable.mp4

7) http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/default/inter_appart_15fps_640x480_audio_LowID_streamable.mp4

8)http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/default/inter_appart_15fps_1280x720_audio_LowID_streamable.mp4

9)http://www.kolor.com/kolor-eyes-html5-360-video-player-1.1/assets/content/default/inter_appart_15fps_1920x1080_audio_LowID_streamable.mp4

Monday, 28 May 2018

Usefull Websites / Softwar / Extentions


Useful website list as a blow

1) For Check Spelling and grammatical mistakes.

https://app.grammarly.com/


2) Data save online. access from anywhere using an internet

https://notepad.pw

3) Share Mobile screen in Computer using the USB cable.

Install below extension to chrome browser.

https://chrome.google.com/webstore/detail/vysor/gidgenkbbabolejbgbpnhbimgjbffefm

3) Wireframe, Prototype and  Navigation flow.

https://www.invisionapp.com/


Generate MD5/SHA1/SHA256 and HASHKEY for FACEBOOK using Command Prompt or Terminal

# GET   MD5/SHA1/SHA256 DEBUG:- keytool -list -v -keystore "C:\Users\Milan\.android\debug.keystor e" -alias androiddebugkey ...