Generate new keystore certificate
For more info, visit https://rnfirebase.io/
# Open your terminal
# Enter the following to generate your missing key. (if fails, try elevating your privileges with `sudo`).
Generate new keystore certificate
For more info, visit https://rnfirebase.io/
# Open your terminal
# Enter the following to generate your missing key. (if fails, try elevating your privileges with `sudo`).
# Copyright (C) 2018 The Android Open Source Project | |
# | |
# Licensed 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 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
// Are you new to Javascript? | |
//Just copy, open firefox (did not work on Google Chrome for me) | |
//press f12, go console tab, paste, change according to instructions and press enter | |
//Thank you rafaelxavierborges for providing the message sending code | |
//I have just turned it into a spammer that counts from 0 and send the next number every second | |
var t=0; //what is the first number you want to send | |
var i=1; //delay in seconds | |
setInterval(function(){ | |
window.InputEvent = window.Event || window.InputEvent; | |
var d = new Date(); |
//usr/bin/env jshell "$0" "$@"; exit $? | |
// install dependencies: | |
// wget https://repo1.maven.org/maven2/org/jmrtd/jmrtd/0.7.2/jmrtd-0.7.2.jar | |
// wget http://bouncycastle.org/download/bcprov-jdk15on-160.jar | |
// wget https://repo1.maven.org/maven2/net/sf/scuba/scuba-sc-j2se/0.0.18/scuba-sc-j2se-0.0.18.jar | |
// wget https://repo1.maven.org/maven2/net/sf/scuba/scuba-smartcards/0.0.18/scuba-smartcards-0.0.18.jar | |
/env --class-path scuba-sc-j2se-0.0.18.jar:scuba-smartcards-0.0.18.jar:jmrtd-0.7.2.jar:bcprov-jdk15on-160.jar | |
/env --add-modules java.smartcardio,java.xml.bind |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const Geopoint = require('geopoint'); | |
const googleapis = require('googleapis'); | |
admin.initializeApp(); | |
const GeoPointFirestore = admin.firestore.GeoPoint; | |
const db = admin.firestore(); |
... | |
<permission | |
android:name="android.permission.INTERACT_ACROSS_USERS_FULL" | |
android:protectionLevel="signature" /> | |
... | |
<activity android:name=".UnlockScreenActivity" /> |
FROM node:10-alpine | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json /usr/src/app/ | |
COPY yarn.lock /usr/src/app/ | |
RUN yarn install |
const functions = require('firebase-functions') | |
const admin = require('firebase-admin') | |
// This is hosted using Firebase Functions to gain easier access without meddling with service key | |
admin.initializeApp(functions.config().firebase) | |
exports.verifyToken = functions.https.onRequest((req, res) => { | |
const { idToken } = req.query | |
if (!idToken) { |