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 / 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