Skip to content

Instantly share code, notes, and snippets.

View danielnv18's full-sized avatar

Daniel Noyola danielnv18

View GitHub Profile
import { Injectable } from '@angular/core';
import { Request, Http, RequestMethod, RequestOptions, URLSearchParams, Headers } from '@angular/http';
import { ENV } from '../environment/environment';
import 'rxjs/add/operator/map';
@Injectable()
export class Api {
url: string = ENV.API_URL;
constructor(public http: Http) { }
@danielnv18
danielnv18 / .ahoy.yml
Last active March 12, 2019 20:51
Run ahoy with the wodby images for drupal
ahoyapi: v2
commands:
ps:
cmd: docker-compose ps "$@"
usage: List containers.
start:
cmd: docker-compose start "$@"
usage: Start services.
@danielnv18
danielnv18 / Dockerfile
Last active January 20, 2020 14:38
Docker with php 7.3 with unixodbc, Microsoft ODBC Driver 17 for Linux and pdo_sql
FROM php:7.3-fpm
MAINTAINER Daniel Noyola <daniel.noyola.dev@gmail.com>
# Install Dependencies
RUN apt-get update && apt-get install -y locales unixodbc libgss3 odbcinst \
devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev \
unixodbc-dev wget unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install pdo \
import { TestBed } from '@angular/core/testing';
import { AngularFireAuth } from '@angular/fire/auth';
import { AngularFirestore } from '@angular/fire/firestore';
import { BehaviorSubject } from 'rxjs';
import { AngularFireModule } from '@angular/fire';
import { AngularFireAuthModule } from '@angular/fire/auth';
import { AuthService } from './auth.service';
const FirestoreStub = {
collection: (name: string) => ({

Laravel + React + Inertia Development Guidelines

This document provides essential information for developers working on the Church CRM project.

Build/Configuration Instructions

Prerequisites

  • PHP 8.4 or higher
  • Composer
  • Node.js and npm
@danielnv18
danielnv18 / setup-wsl-ubuntu.sh
Last active October 28, 2025 20:11
WSL Ubuntu setup
#!/usr/bin/env bash
# Quick install:
# bash <(curl -fsSL https://gist.githubusercontent.com/danielnv18/8774a1200548b84abafb98e481e15e52/raw/setup-wsl-ubuntu.sh) --name "Your Name" --email "your@email.com"
set -euo pipefail
# =========================
# Ubuntu on WSL Bootstrapper
# - Git configuration (name, email)
# - SSH keys from Windows