Skip to content

Instantly share code, notes, and snippets.

View hlspablo's full-sized avatar
🎯
Focused

Pablo Henrique hlspablo

🎯
Focused
View GitHub Profile
import { Inject, Injectable, InjectionToken } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Logger, LogglyConfiguration, LOGGLY_CONFIG } from '@partenariat/logger';
@Injectable()
export class AngularLogglyLogger extends Logger {
constructor(http: HttpClient, @Inject(LOGGLY_CONFIG) configuration: LogglyConfiguration) {
super(http, configuration);
}
}
@hlspablo
hlspablo / row_level_security.md
Last active April 4, 2023 13:52
Row Level Security with Supabase
--
-- For use with https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone
--

-- Custom types
create type public.app_permission as enum ('channels.delete', 'messages.delete');
create type public.app_role as enum ('admin', 'moderator');
create type public.user_status as enum ('ONLINE', 'OFFLINE');
import React, { useCallback, useEffect, useState } from 'react';
import {
ContinueButtonContainer,
ContinueText,
ImageTopCenterWrapper,
ImageTopView,
ImageTopViewShadow,
MainView,
MainContainer,
StepContainer,
@hlspablo
hlspablo / cloudSettings
Last active February 21, 2021 16:59
Visual Studio Code Config
{"lastUpload":"2021-02-21T16:59:10.707Z","extensionVersion":"v3.4.3"}
@hlspablo
hlspablo / wsgi_bjoern.py
Created December 14, 2019 00:19 — forked from gcavalcante8808/wsgi_bjoern.py
Bjoern Django Final
import bjoern
import os, signal
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
app = get_wsgi_application()
NUM_WORKERS = 8
@hlspablo
hlspablo / script.sh
Created August 28, 2019 21:32 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux