Skip to content

Instantly share code, notes, and snippets.

View hjr3's full-sized avatar

Herman J. Radtke III hjr3

View GitHub Profile
@hjr3
hjr3 / pennies.php
Last active December 13, 2015 23:09
Integer precision loss when converting float to integer.
<?php
$outstandingBalance = -34.05;
$pennies = abs($outstandingBalance) * 100;
var_dump((int) $pennies); // => int(3404)
@hjr3
hjr3 / refactoring-models-with-patterns.md
Last active December 14, 2015 03:28
Notes from LA Ruby Conf 2013 talks - Refactoring Fat Models with Patterns
@hjr3
hjr3 / bdd.md
Last active December 14, 2015 03:38
Notes from LA Ruby Conf 2013 - BDD: It's not your test framework, it's you

BDD: It's not your test framework, it's you

  • @robb1e
  • @moonmaster9000

Notes

  • brittle tests do not reveal intent. they explain how, not what.
  • create your own DSL about the important things your domain
@hjr3
hjr3 / fpm-netstat.sh
Last active January 18, 2018 15:41
Handy script to get strace to attach to all php-fpm workers
netstat -apn | grep $outgoing_ip_address
@hjr3
hjr3 / managers.md
Last active October 9, 2024 09:44
My research on managers in Technology

Managers in Technology

CTO vs VP of Engineering

CTO is responsible for the technology "vision" (future)

  • should report to the CEO
  • understands how technology fits into the larger, real world
  • responsible for the culture
  • head architect is the CTO in training
  • must be excellent at communication
@hjr3
hjr3 / memcache.php
Last active December 17, 2015 13:49
Memcache timeout examples
<?php
$m = new Memcache;
$m->addServer('127.0.0.1', 11211);
$m->addServer('127.0.0.1', 11214); // down
$m->set('foo', 'bar');
$foo = $m->get('foo');
var_dump($foo);
@hjr3
hjr3 / notes.md
Created June 4, 2013 20:42
2013 Los Angeles Ruby Conference Notes

vim & tmux

  • status bar is completely configurable
  • http://goo.gl/98M56
  • can script everything tmux can do. can script splitting windows, etc
  • can add a "send text at start" command to iTerm2
  • ctrl-P + fuzzy search kien.github.com/ctrlp.vim
  • Ag! for a vim aware grep
  • github.com/tpope - a lot of useful vim plugins
@hjr3
hjr3 / req.md
Last active December 22, 2015 16:29
HauteLook job requirement for Platform Engineer

Software Engineer

Job Description:

As an Infrastructure Automation Engineer you will be responsible for the development and production infrastructure that enables HauteLook developers to build products for millions of customers as reliably, rapidly, and frequently as possible. Your primary tasks will be to automate and simplify processes, manage system configurations, integrate disparate systems and manage virtualization/containerization.

The ideal candidate for this job probably has two shirts with the phrase "Shared Nothing" just in case one gets lost. They also realize that DevOps is a culture and not a job description.

Responsibilities:

  • Create and maintain tools for continuous integration of code across development and production. (Automate)
  • Improve the analytics infrastructure to allow the business to become even more data driven. (Measure)
@hjr3
hjr3 / req.md
Last active February 25, 2020 19:51
Job description for Lead Software Engineer

Lead Software Engineer

HauteLook is seeking a Lead Software Engineer with eCommerce experience for a small, cross functional team. The Lead Software Engineer is focused on implementing the technical road map for their designated team. They own the technical implementation process and ensure that best practices and solid engineering principles are being upheld. Equally important, they have a good attitude and energy that empowers the team.

Responsibilities

  • Write and ship code that has the maximum positive impact for HauteLook members and Hautelook as a business
  • Lead a team of 4-5 engineers to do the same
  • Work with product and project managers to create great products
  • Articulate ideas in ways that are helpful and constructive for other members of the team
@hjr3
hjr3 / motto.md
Created September 25, 2013 16:52
Motto

Keep things simple, be flexible and move quickly.