Skip to content

Instantly share code, notes, and snippets.

@aharpole
aharpole / dishes_ingredients.md
Last active November 19, 2023 19:24
Thanksgiving master plan

Thanksgiving Master Plan

Charcuterie Plate Appetizer

  • Jamon and cured meats
  • crostini or bagel chips
  • Brie
  • dried apricots
  • olives

Keybase proof

I hereby claim:

  • I am aharpole on github.
  • I am aharpole (https://keybase.io/aharpole) on keybase.
  • I have a public key ASCA7VFutG8Hy5aYOY3aAbfBXk7gCP0d_ckzaGNudS-UhQo

To claim this, I am signing this object:

@aharpole
aharpole / script_filter.sh
Created August 27, 2020 04:19
Alfred "open in TextMate" script filter
read folder <<< "{query}"
echo '<?xml version="1.0"?>'
echo '<items>'
cd ~/projects && ls -d *"$folder"* | xargs -I % echo '<item uid="fs_launch_%" arg="%" valid="yes" autocomplete="%"><title>%</title><subtitle>Open % in TextMate</subtitle><icon>icon.png</icon></item>'
echo '</items>'
@aharpole
aharpole / day_2.md
Created August 15, 2020 23:22
DIY FMD meal plan
Fat Carbs Protein
Gazpacho 150 7 15 3
Olives 60 1 Package Mario’s with garlic 6 1 0
Soup 190 Amy’s Minestrone, 1 can 5 30 6
Fast bar 250 21 14 5
Seaweed 50 Annie Chun’s roasted sesame seaweed snack 2.5 3 3
Chocolate 65 Theo 70% dark, 1 square 4 5 1
Total 765 409.5 272 72
@aharpole
aharpole / case_against_scale.md
Last active June 22, 2020 17:41
The Case Against Scale

Some of the largest companies in the world are tech companies. They are growing in power and they're achieving levels of scale we've never seen before. Unicorns used to be called that because of their rarity. Now they’re practically routine.

These companies have a huge influence on our daily lives, sometimes even if we aren't directly their customers. For some of these companies, it’d be hard not to be a customer.

We spend so much time being in awe of these companies' success, but I don't think we spend enough time wondering about the consequences of this scale. We've internalized this belief that tech at scale is good.

But here’s the thing: scale doesn't make great companies or products. And we know that. McDonald's makes food at scale, but no one considers it to be the best or highest quality food.I don't think I've ever met someone who actually likes Comcast, or AT&T.

I'm going to show you three different companies running at scale, each bigger than the last (by market cap) so we can explore some o

@aharpole
aharpole / FilesSnapshot.xml
Created August 14, 2019 17:47
putty-d2ddw v2013.08.07 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\putty-d2ddw.nupkg" checksum="702F860F0BE25984F68E06DA2E134A86" />
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\putty-d2ddw.nuspec" checksum="A7A71A08DFC86FDD1C7013817FB455CD" />
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\tools\chocolateyInstall.ps1" checksum="97CFFE56AF99DF92573C3B516CC76CF6" />
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\tools\LICENCE" checksum="E4ED1904E07DA6367AA42828BA4AD3B3" />
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\tools\pageant.exe" checksum="5AB33EF4FCA67A283D63791B4753D439" />
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\tools\pageant.exe.gui" checksum="D41D8CD98F00B204E9800998ECF8427E" />
<file path="C:\ProgramData\chocolatey\lib\putty-d2ddw\tools\pfwd.exe" checksum="2CB13593A114F406B5CFAD
@aharpole
aharpole / gist_file
Created August 14, 2019 17:35
Aaron's public gist
blablabla
@aharpole
aharpole / filename_adding_extension.rb
Last active August 14, 2019 17:45
testing filename without extension
def language
:ruby
end
@aharpole
aharpole / iex.ex
Created March 9, 2019 00:18
iex using proposed genserver api
iex(1)> {:ok, pid} = IncrementableValue.start_link()
{:ok, #PID<0.109.0>}
iex(2)> GenServer.update_config(pid, increment_by: 2)
:ok
iex(3)> GenServer.cast(pid, :increment)
:ok
iex(4)> GenServer.call(pid, :get_data)
3
@aharpole
aharpole / final_genserver.ex
Created March 9, 2019 00:18
proposed genserver with new API
defmodule IncrementableValue do
use StateMapGenServer
def start_link(config \\ []) do
config = Keyword.merge([increment_by: 1], config)
GenServer.start_link(__MODULE__, config, [])
end
def init(config) do
{:ok, %{value: 1}, config}