Skip to content

Instantly share code, notes, and snippets.

Avatar
🏃‍♂️

Aaron Cruz mraaroncruz

🏃‍♂️
View GitHub Profile
@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

@mraaroncruz
mraaroncruz / jwt_params.rb
Created Apr 28, 2019
JWT params middleware
View jwt_params.rb
module Middlewares
class JwtParams
def initialize(app)
@app = app
end
def call(env)
request = Rack::Request.new(env)
token = request.params['auth']
@mraaroncruz
mraaroncruz / Dockerfile
Last active Mar 8, 2019
Very, very simple ruby docker image
View Dockerfile
FROM ruby:2.6
RUN mkdir /app
WORKDIR /app
ADD Gemfile Gemfile.lock /app/
RUN gem install bundler \
&& bundle install -j 8
ADD . /app
You can’t perform that action at this time.