Skip to content

Instantly share code, notes, and snippets.

@tforrest
tforrest / Rakefile
Created May 8, 2018 23:05 — forked from schickling/Rakefile
Activerecord without Rails
require "active_record"
namespace :db do
db_config = YAML::load(File.open('config/database.yml'))
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
desc "Create the database"
task :create do
ActiveRecord::Base.establish_connection(db_config_admin)
@tforrest
tforrest / request.py
Last active January 18, 2018 05:36
Session example with a Bearer token in requests
import requests
# use a .format to set the path
BASE_URI = "https://api.genius.com/{}"
def create_session(token):
session = requests.session()
session.headers.update({
@tforrest
tforrest / main.go
Created January 7, 2018 23:56 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets