Skip to content

Instantly share code, notes, and snippets.

View evlymn's full-sized avatar
🏠
Working from home

Evelyn Mendes evlymn

🏠
Working from home
View GitHub Profile
@evlymn
evlymn / deploy.sh
Created November 19, 2017 21:00
Deploy to Umbler Git
#!/bin/sh
echo "Deploy umbler master"
COMMIT_MSG="$1"
DEPLOY_FOLDER=~/projects/deploy/seusite-com
BUILD_FOLDER=dist
GIT_URL=ssh://[email protected]:9922/~/git/seusite-com.git
if [[ ! -d $DEPLOY_FOLDER ]]; then
git clone $GIT_URL $DEPLOY_FOLDER
### Keybase proof
I hereby claim:
* I am evlymn on github.
* I am evlymn (https://keybase.io/evlymn) on keybase.
* I have a public key ASD4mPAIjTD5xszXPrin47icdhKHhKlkDymjVA6uRLENkgo
To claim this, I am signing this object:
@evlymn
evlymn / authentication.service.ts
Last active March 17, 2021 20:53
Service angular com métodos usados no Firebase Authentication
import { Injectable, NgZone } from '@angular/core';
import { Router } from '@angular/router';
import { AngularFireAuth } from '@angular/fire/auth';
import * as firebase from 'firebase/app';
@Injectable({
providedIn: 'root'
})
export class AuthenticationService {
private auth: firebase.auth.Auth;
@evlymn
evlymn / firebase-angular-app-get-started.md
Last active July 22, 2024 14:40
Um simples passo a passo de como iniciar uma aplicação angular com acesso a um projeto Firebase

Um simples passo a passo de como iniciar uma aplicação angular com acesso a um projeto Firebase

Conhecendo o Firebase

  • Visão Geral
    • Visão geral do Firebase por plataforma e por produtos
  • Guias
    • Um guia com instruções passo a passo dos recursos do Firebase
  • Api Reference
    • Informações detalhadas sobre cada classe e método no SDK do Firebase
@evlymn
evlymn / firebase-hosting.md
Last active October 27, 2021 11:35
Firebase Hosting
@evlymn
evlymn / change_screenshots_location_mac.txt
Created March 31, 2019 17:47
change screenshots location mac
$ defaults write com.apple.screencapture location /users/Evelyn/Screenshots
@evlymn
evlymn / spctl.txt
Created October 8, 2019 21:08
habilitar aplicações macOS Mojave
sudo spctl --master-disable
@evlymn
evlymn / default.json
Created July 5, 2020 18:00
iTerm Default Theme
{
"Ansi 6 Color" : {
"Red Component" : 0,
"Color Space" : "sRGB",
"Blue Component" : 0.78166204690933228,
"Alpha Component" : 1,
"Green Component" : 0.77425903081893921
},
"Tags" : [
@evlymn
evlymn / firebaseConfig.ts
Created May 26, 2021 22:08
firebase config
module.exports = {
type: 'service_account',
project_id: 'project_id',
private_key_id: 'private_key_id',
private_key: 'private_key',
client_email: 'client_email',
client_id: 'client_id',
auth_uri: 'https://accounts.google.com/o/oauth2/auth',
token_uri: 'https://oauth2.googleapis.com/token',
auth_provider_x509_cert_url: 'https://www.googleapis.com/oauth2/v1/certs',
@evlymn
evlymn / index.ts
Created May 26, 2021 22:11
initialize app
const serviceAccountKey = require('./firebaseConfig');
const admin = require('firebase-admin');
admin.initializeApp({
credential: admin.credential.cert(serviceAccountKey),
databaseURL: 'https://simplesapp-realtime.firebaseio.com',
});