Skip to content

Instantly share code, notes, and snippets.

Avatar
🏃‍♂️

Aaron Cruz mraaroncruz

🏃‍♂️
View GitHub Profile
@mraaroncruz
mraaroncruz / butter-chicken.md
Last active Mar 18, 2021
Butter chicken recipe
View butter-chicken.md

Ingredients

  • 2 Chicken Breasts small chunks
  • 3 EL butter
  • 10 small tomatoes (or 1 cup tomato sauce)
  • 1 cup tomato sauce
  • 1 onion (medium cubes)
  • 3 cloves garlic (smashed)
  • 2 EL Ginger (or ginger puree)
  • 30g Cashews (a handful?) (I also used some peeled almonds but whatever you have I guess)
@mraaroncruz
mraaroncruz / solr_client.ex
Created Feb 15, 2021
Quick implementation of a Solr client in Elixir
View solr_client.ex
defmodule MyApp.Search.SolrClient do
require Logger
def url, do: Application.get_env(:my_app, :solr)[:url]
def select_url(url), do: "#{url}/select"
def update_url(url), do: "#{url}/update"
def update_json_url(url), do: "#{url}/update/json/docs"
def select(params) when is_list(params) do
@mraaroncruz
mraaroncruz / questions.md
Created Nov 13, 2020
DreamClients general interview pre-questions
View questions.md

DreamClients Podcast Interview Questions

The goal of the podcast is to help people find ways to get better clients, and to get more of them (more, better clients?).

Filling the pipeline

  • Do you have any hacks to fill your pipeline?
  • Where do most of your clients come from?
  • What types of activities do you do every day or week that helps you fill the pipeline?
  • Do you remember what you did in the beginning to get more clients? Do you do things differently now? Why?
  • What advice would you give to a freelance software dev just starting out?
@mraaroncruz
mraaroncruz / Dockerfile
Created Oct 29, 2020
webkoll docker implementation (ugly)
View Dockerfile
FROM elixir:latest
RUN apt-get update && \
apt-get install -y python rsync
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt update \
&& apt install -y nodejs yarn
@mraaroncruz
mraaroncruz / docker-compose.yml
Created May 20, 2020
Docker compose for influxdb and grafana
View docker-compose.yml
version: "3"
services:
influxdb:
image: influxdb:latest
ports:
- "127.0.0.1:8083:8083"
- "127.0.0.1:8086:8086"
- "127.0.0.1:8090:8090"
env_file:
- "env.influxdb"
@mraaroncruz
mraaroncruz / routes.json
Created Dec 19, 2019
Example response from route API
View routes.json
{
"route": {
"weight_name": "routability",
"legs": [
{
"summary": "S5, S33",
"steps": [
{
"intersections": [
{
@mraaroncruz
mraaroncruz / install_docker_and_compose.bash
Last active Dec 11, 2019
Bootstrap docker and compose on new machine
View install_docker_and_compose.bash
#!/bin/bash
# Run like
# $ curl https://gist.githubusercontent.com/mraaroncruz/a3c19e4b901846bea872e5f24e617d55/raw/2948b92e094215542c9679a9384694c5c6e5e9dd/install_docker_and_compose.bash | bash
set -e
setup () {
### Update the apt package index:
sudo apt update
View Caddyfile
foo.example.com
rewrite /grafana {
r (.*)
to /{1}
}
proxy / grafana:3000 {
transparent
}
@mraaroncruz
mraaroncruz / cloudSettings
Last active Jul 23, 2019
VSCode settings
View cloudSettings
{"lastUpload":"2019-07-20T10:34:33.114Z","extensionVersion":"v3.4.0"}
@mraaroncruz
mraaroncruz / NetworkingTalk.md
Created Jul 17, 2019
Networking Talk notes
View NetworkingTalk.md

Networking Talk

Intro

The hardest part for me about networking is trying to balance the fact that I want something with being able to give.

I have friends that are great people to have in my network and have referred me lots of work and I sometimes feel a bit scummy having them in my CRM.

This year