Skip to content

Instantly share code, notes, and snippets.


Petros Amiridis petros

View GitHub Profile


There's a lot of recommended reading for product managers out there. Some of it is incredibly useful, and some of it is a waste of time. Business books don't really get me excited, but there are a few books, articles, newsletters, and podcasts authored by folks I look up to in the industry that I find myself coming back to often. When you're reading about product management, it's important to take everything with a grain of salt. The industry changes rapidly, and so does the discipline. If you learn something you want to try out from one of these books, go for it! But be careful not to whiplash yourself or your team.

I find new books and articles all the time, so I'm going to start dropping them here. Hope they help and inspire some other Product folks!


The Influential Product Manager by Ken Sandy

This book is for people who are starting out in Product Management, but the

petros / bullsAndCows.js
Created May 24, 2019
Bulls and cows game Ruby vs JavaScript. (Credit:
View bullsAndCows.js
#!/usr/bin/env js
function main() {
var len = 4;
function playBullsAndCows(len) {
var num = pickNum(len);
// print('The secret number is:\n ' + num.join('\n '));
petros /
Created Mar 28, 2016
Pork in a pouch a la Petros

Pork a la Petros


  • 4 pork steaks (from the neck)
  • 1 carrot per steak
  • Gruyere or parmesan cubes 4-6 per steak depending on size
  • 1-2 long red peppers per steak
  • Salt
  • Pepper
petros /
Created Apr 7, 2014
Escaping jekyll code in jekyll
  <span>{{ | date_to_string }}</span> &raquo;
    {% if post.external-url %}
      <a href="{{ post.external-url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a> · <a class="metaperma" href="{{ root_url }}{{ post.url }}">&#8984;</a> <br />
    {% else %} <!-- normal posts -->
      <a href="{{ post.url }}"> {{ post.title }}</a>
      <!-- {{ post.excerpt }} -->
    {% endif %}

Keybase proof

I hereby claim:

  • I am petros on github.
  • I am petros ( on keybase.
  • I have a public key whose fingerprint is 0258 A4D8 FBE1 6C8A 1072 1C17 79CC 4830 0A0D 3529

To claim this, I am signing this object:

View application_controller.rb
class ApplicationController < ActionController::Base
include SessionAuthentication
# ...
petros / gist:2310429
Created Apr 5, 2012
Auto-launching ssh-agent on msysgit
View gist:2310429
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV"
echo succeeded
chmod 600 "$SSH_ENV"
. "$SSH_ENV" > /dev/null
petros / gist:2063527
Created Mar 17, 2012
Nice git aware bash prompt
View gist:2063527

Here is a nice addition to your .bash_profile, so as to have a cool git aware prompt:

export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
source ~/
PS1='\[\033[34m\]\W\[\033[0m\]$(__git_ps1 " (\[\033[35m\]%s\[\033[0m\])") \$ '
petros / gist:1208330
Created Sep 10, 2011 — forked from apod/gist:1208284
Resize application
View gist:1208330
tell application (path to frontmost application as Unicode text)
set x to 400
set y to 400
set width to 1024
set height to 768
set bounds of window 1 to {x, y, x + width, y + height}
end tell