Skip to content

Instantly share code, notes, and snippets.

Avatar

Petros Amiridis petros

View GitHub Profile
View reading-for-product-managers.md

kaths-bookshelf

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!

Books

The Influential Product Manager by Ken Sandy

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

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

Pork a la Petros

Ingrentients

  • 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
petros / Sample.md
Created Apr 7, 2014
Escaping jekyll code in jekyll
View Sample.md
<li>
  <span>{{ post.date | 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 %}
</li>
View keybase.md

Keybase proof

I hereby claim:

  • I am petros on github.
  • I am petros (https://keybase.io/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
# ...
end
@petros
petros / gist:2310429
Created Apr 5, 2012
Auto-launching ssh-agent on msysgit
View gist:2310429
SSH_ENV="$HOME/.ssh/environment"
# 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
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 ~/.git-completion.sh
PS1='\[\033[34m\]\W\[\033[0m\]$(__git_ps1 " (\[\033[35m\]%s\[\033[0m\])") \$ '
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWSTASHSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
@petros
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)
activate
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