Skip to content

Instantly share code, notes, and snippets.

Avatar

David Mieloch drumnation

View GitHub Profile
@drumnation
drumnation / eraseUsers.js
Created Dec 19, 2021
erase firebase auth users from browser console
View eraseUsers.js
// Try this code for the latest Firebase update. Open the console, paste this code and hit enter!!!
setInterval(() => {
document.getElementsByClassName('edit-account-button mat-focus-indicator mat-menu-trigger mat-icon-button mat-button-base')[0].click()
let deleteButtonPosition = document.getElementsByClassName('mat-focus-indicator mat-menu-item ng-star-inserted').length - 1
document.getElementsByClassName('mat-focus-indicator mat-menu-item ng-star-inserted')[deleteButtonPosition].click()
document.getElementsByClassName('confirm-button mat-focus-indicator mat-raised-button mat-button-base mat-warn')[0].click()
}, 1000)
// https://stackoverflow.com/questions/38808712/delete-all-users-from-firebase-auth-console
View error
> Task :app:installRelease
01:20:03 V/ddms: execute: running am get-configcript > Resolve files of :react-native-onesignal:relea
01:20:03 V/ddms: execute 'am get-config' on 'ce07171754cb3a3a017e' : EOF hit. Read: -1
01:20:04 V/ddms: execute: returning
Installing APK 'app-release.apk' on 'SM-N950U - 9' for app:releasees of :react-native-onesignal:relea
01:20:04 D/app-release.apk: Uploading app-release.apk onto device 'ce07171754cb3a3a017e'
01:20:04 D/Device: Uploading file onto device 'ce07171754cb3a3a017e'
01:20:04 D/ddms: Reading file permision of /Users/davidmieloch/Dev/dray/dnp-mobile/android/app/build/o
utputs/apk/release/app-release.apk as: rw-r--r--
01:20:07 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-release.apk"
View startLogRocket.js
import { enableLogging } from 'mobx-logger'
import LogRocket from 'logrocket'
import faker from 'faker'
const config = {
action: true,
compute: true,
predicate: () => true,
transaction: true
}
@drumnation
drumnation / Bitinstructions.md
Created Mar 3, 2019
Instructions for creating a RNW component with Bitsrc.io
View Bitinstructions.md

1. Install Bit

npm install bit-bin --global

2. Login

bit login
@drumnation
drumnation / RNWDemo.js
Created Mar 3, 2019
React Native Web Bitsrc
View RNWDemo.js
import React, { Component } from "react";
import "react-dom"; // optional
import "react-art"; // optional
import "babel-polyfill"; // optional
import {
StyleSheet,
@drumnation
drumnation / bit.md
Last active Mar 1, 2019
Bit.src Command Flow
View bit.md

Install Bit

npm install bit-bin --global yarn global add bit-bin

Login

bit login

Initialize Bit Repo

bit init

@drumnation
drumnation / user-top-artist-track.json
Created Jan 20, 2019
Get User's Top Artists and tracks
View user-top-artist-track.json
{
"items": [
{
"album": {
"album_type": "ALBUM",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/5akVqMzdZOdbMYbE4vNZWD"
},
@drumnation
drumnation / get-users-profile.json
Last active Jan 20, 2019
Spotify Get User Profile
View get-users-profile.json
{
"birthdate": "1983-03-31",
"country": "US",
"display_name": "David Miles",
"email": "davidmiles@milk.com",
"external_urls": {
"spotify": "https://open.spotify.com/user/128455501"
},
"followers": {
"href": null,
@drumnation
drumnation / single-browse-category.json
Created Jan 20, 2019
Spotify single browse category
View single-browse-category.json
{
"href": "https://api.spotify.com/v1/browse/categories/metal",
"icons": [
{
"height": 274,
"url": "https://t.scdn.co/media/original/metal_27c921443fd0a5ba95b1b2c2ae654b2b_274x274.jpg",
"width": 274
}
],
"id": "metal",
@drumnation
drumnation / metal-category-playlists.json
Created Jan 20, 2019
Spotify Metal Category Playlists
View metal-category-playlists.json
{
"playlists": {
"href": "https://api.spotify.com/v1/browse/categories/metal/playlists?offset=0&limit=20",
"items": [
{
"collaborative": false,
"external_urls": {
"spotify": "https://open.spotify.com/playlist/37i9dQZF1DWTcqUzwhNmKv"
},
"href": "https://api.spotify.com/v1/playlists/37i9dQZF1DWTcqUzwhNmKv",