Skip to content

Instantly share code, notes, and snippets.

View EstebanFuentealba's full-sized avatar
:octocat:

Esteban Fuentealba EstebanFuentealba

:octocat:
View GitHub Profile
@cbedroid
cbedroid / React-Native-Missing-KeyStore.md
Last active May 3, 2024 10:57
React-Native Generating SigningReport (Error: Missing keystore)

Fix Firebase Missing Keystore for React Native App

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`).
 
@cortinico
cortinico / default.generated.config
Created January 18, 2019 00:22
Jetifier default config file
# 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,
@michaeltys
michaeltys / ShareFileToInstagram
Created October 10, 2018 15:13
Sharing an image to instagram stories or create a post
private void shareFileToInstagram(Uri uri, boolean isVideo, Post post) {
Intent feedIntent = new Intent(Intent.ACTION_SEND);
feedIntent.setType(isVideo ? "video/*" : "image/*");
feedIntent.putExtra(Intent.EXTRA_STREAM, uri);
feedIntent.setPackage(Constants.INSTAGRAM_PACKAGE_NAME);
Intent storiesIntent = new Intent("com.instagram.share.ADD_TO_STORY");
storiesIntent.setDataAndType(uri, isVideo ? "mp4" : "jpg");
storiesIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
storiesIntent.setPackage(Constants.INSTAGRAM_PACKAGE_NAME);
@igormuba
igormuba / whatsapp_sendMSG.js
Last active November 9, 2022 02:32 — forked from yask123/whatsapp_sendMSG.js
Spam messages to WhatsApp counting from 0
// 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();
@joostd
joostd / jmrtd.jsh
Created July 26, 2018 16:09
Simple JShell script to read personal ID number from ICAO passport using jmrtd and scuba
//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
@alvarowolfx
alvarowolfx / index.js
Last active August 14, 2018 14:01
Asset Tracker Cloud Functions
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();
@rochapablo
rochapablo / AndroidManifest.xml
Last active January 1, 2021 15:21
CALLKIT FOR ANDROID IN REACT NATIVE + TWILIO
...
<permission
android:name="android.permission.INTERACT_ACROSS_USERS_FULL"
android:protectionLevel="signature" />
...
<activity android:name=".UnlockScreenActivity" />
@Gomah
Gomah / Dockerfile
Last active March 23, 2021 14:33
Nuxt.js Dockerfile :: Now.sh
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
@jank84
jank84 / vuejs-ts-check-tricks.md
Last active April 26, 2024 04:39
vuejs with ts-check

ts check

ignore next ts check error

const app = new Vue({
  router,
  store,
  // @ts-ignore
  ...App
@danielkcz
danielkcz / firebase.functions.js
Last active January 11, 2019 12:40
Firebase authentication with Graphcool
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) {