Skip to content

Instantly share code, notes, and snippets.

@panozzaj
panozzaj / index.js
Created March 15, 2021 14:53
StackOverflow / StackExchange Greasemonkey script
// ==UserScript==
// @name StackExchange cleanup
// @description Remove some elements on StackExchange pages
// @include https://stackoverflow.com/*
// @include https://meta.stackoverflow.com/*
// @include https://superuser.com/*
// @include https://meta.superuser.com/*
// @include https://serverfault.com/*
// @include https://meta.serverfault.com/*
// @include https://askubuntu.com/*
@panozzaj
panozzaj / multitenant.md
Created December 24, 2019 02:54 — forked from woloski/multitenant.md
Multi Tenant Apps in Auth0

Multitenancy refers to a principle in software architecture where a single instance of the software runs on a server, serving multiple client-organizations (tenants)

Let's start by enumerating some multi tenant applications and understand how they handle it.

Slack

Authentication:

Thanks for sharing this, just bought the book based on this. I think I agree with this quote. I would also say (without knowing the surrounding context) that unplanned work / rework can also indicate structural/organizational issues.

IME, unplanned work can happen in an organization that is not set up to handle a sufficient amount of planned work / lacks coherent strategy / doesn't communicate that strategy well. Fire drills and "new" work often occur. This can just be because it takes time for information to propogate through the organization. Or because people at the edges doing the work don't have a clear priority (doing what is visible or for the squeakiest wheel, not what is ultimately most important). Even assuming no other dysfunction, if you are way over capacity on product/engineering (insufficient people/resources, requirements expire quickly) at some point you just churn due to organizational entropy. By the time you have figured out what to

@panozzaj
panozzaj / gist:e20553f82ae5685ef24d97dbc8f8a977
Created November 10, 2016 03:28
RubyConf 2016 plain-text schedule
Thursday, 11/10
9:30AM - 10:30AM
[A] Opening Keynote - Yukihiro Matsumoto (Matz)
10:40AM - 11:25AM
[A] Building a Better OpenStruct - Ariel Caplan
[B] (Learning and Teaching) Bootcamp Grads Have Feelings, Too - Megan Tiu
[C] Attention Rubyists: you can write video games - Cory Chamblin
[D] (Comparative Ruby) Building maintainable command-line tools with MRuby - Eric Hodel
" Vim global plugin for better digraph interactions...
" Maintainer: Damian Conway
" License: This file is placed in the public domain.
"##############################################################################
"## ##
"## To use: ##
"## ##
"## inoremap <expr> <C-K> BDG_GetDigraph() ##
"## ##
@panozzaj
panozzaj / gist:7868223
Created December 9, 2013 06:32
Random pulling of post ideas and printing to console
#!/usr/bin/env ruby
ideas = []
current_lines = []
lines = File.read('post_ideas.txt')
lines.split("\n").each do |line|
next if line.strip == ''
if line =~ /^==========/
if current_lines != []
@panozzaj
panozzaj / gist:5977024
Created July 11, 2013 16:35
documentup issue?
Given this document email_readme.md (equals signs not included):
===========================================
# Sample document
## More Help
Please send any questions or ideas on how this documentation can be improved to <a href="mailto:support@railsthemes.com">support@railsthemes.com</a>. Thanks!
===========================================
@panozzaj
panozzaj / gist:1329787
Created November 1, 2011 03:22
Bad Hipchat Chat Log Timestamps
Oct-30 3:38 PM
Oct-30 3:38 PM
Oct-30 3:39 PM
Oct-30 3:39 PM
Oct-30 3:40 PM
Oct-30 3:40 PM
Oct-30 3:40 PM
Oct-30 3:41 PM
Oct-30 3:41 PM
Oct-30 3:44 PM
@panozzaj
panozzaj / welcome_index_view
Created June 28, 2011 19:47
@baird_rt asked me what else I could be except for 'Definitely Alive!'
- if @last_tweet_time.nil? || @last_checkin_time.nil?
.header.hmm
Had problems querying services. Try again later.
- else
- last_action = @last_tweet_time > @last_checkin_time ? @last_tweet_time : @last_checkin_time
- if last_action > 2.hours.ago
.header.alive
Anthony is definitely alive!
- elsif last_action > 6.hours.ago
.header.alive
@panozzaj
panozzaj / diff_script
Created May 12, 2011 19:25
Word diff two markdown files in git and output the result formatted for Pandoc CSS
#!/bin/zsh
filename=$1
if [[ -z $filename ]] || [[ $filename == 'help' ]]
then
echo 'usage: diff_script file.markdown [old_revision] [new_revision]'
echo ' old_revision defaults to HEAD^'
echo ' new_revision defaults to current file (HEAD if unchanged)'
exit
fi