Skip to content

Instantly share code, notes, and snippets.

View petros's full-sized avatar
👾
Making games

Petros Amoiridis petros

👾
Making games
View GitHub Profile
@petros
petros / shell.md
Created April 11, 2024 16:01
How to remove duplicate entries from macOS Open with
❯ /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

❯ killall Finder
@petros
petros / markdown.md
Last active September 14, 2022 08:04
Code blocks between list items on GitBook
  1. Item 1
  2. Item 2
    This code block should render fine on GitBook.
    It has 4 spaces of identation.
    The number should be preserved on GitBook.
    This is undocumented and it may cause other rendering problems we do not know about.
    
  3. Item 3
@petros
petros / keybindings.json
Created August 11, 2022 20:05 — forked from whazzmaster/keybindings.json
Test tasks for Visual Studio Code and Elixir
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+t cmd+t",
"command": "workbench.action.tasks.runTask",
"args": "Run All Tests"
},
{
"key": "f5",
"command": "workbench.action.tasks.runTask",

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 19:14
Bulls and cows game Ruby vs JavaScript. (Credit: http://rosettacode.org/wiki/Bulls_and_cows)
#!/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 March 28, 2016 20:15
Pork in a pouch a la Petros

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 April 7, 2014 07:49
Escaping jekyll code in jekyll
<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 %}

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:

class ApplicationController < ActionController::Base
include SessionAuthentication
# ...
end
@petros
petros / gist:2310429
Created April 5, 2012 12:05
Auto-launching ssh-agent on msysgit
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