Skip to content

Instantly share code, notes, and snippets.

View kjlape's full-sized avatar
🤝
nice to meet you

Kaleb Lape kjlape

🤝
nice to meet you
View GitHub Profile
@travisbrown
travisbrown / mcleod-twitter.md
Last active January 7, 2022 05:48
Denver shooter Lyndon McLeod's circle on Twitter

Lyndon McLeod's circle on Twitter

On 27 December 2021, Lyndon James McLeod (a.k.a. Roman McClay) shot at least six people in Denver, killing five. McLeod had a large following among men's rights activists and the dissident right on Twitter, in part because of his book Sanction, which some of his readers interpreted as a "manifesto". McLeod also had a history of threatening to kill people on Twitter, and many of his fans have made it clear that his preoccupation with violence was what drew them to McLeod:

Chance Lunceford (30 April 2020):

If Theodore J. Kaczynski had been a more

@palkan
palkan / normalize.rb
Created December 24, 2021 14:47
ActiveModel .normalize
# frozen_string_literal: true
require "bundler/inline"
gemfile(true, quiet: true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "activesupport", "~> 7.0.0", require: false
@searls
searls / whereable.rb
Created September 4, 2021 16:06
The initial implementation of a Whereable query filter for KameSame.
class Whereable
def initialize(where:, model: Item, ranking_conditions: [], valid: true, data_source: nil)
@model = model
@where = where
@data_source = data_source
@ranking_conditions = ranking_conditions
@valid = valid
end
def valid?
@henhan
henhan / nginx_documentation.md
Last active January 23, 2025 13:37
Extend and override nginx config for Elastic Beanstalk Amazon Linux 2

Extend and override nginx config for Elastic Beanstalk Amazon Linux 2

Documentation on how to override or extend the default nginx config on Elastic Beanstalk running om Amazon Linux 2. Correct as of 2021-08-01. Also see the general documentation on how to extend linux servers.

All references to placing files refer to putting a file at this location in your application bundle. You should never modify a file directly at your Elastic Beanstalk server by ssh:ing to the server, since such a change will be wiped whenever your servers autoscale or if you rebuild your application completely.

Adding a new location block

The easiest extension is to add a new location block to the main server block. This can be done by placing a .conf file with a server block in the folder .platform/nginx/conf.d/elasticbeanstalk. Any such file is automatically included in the main server block.

Overriding the default location

@tgroshon
tgroshon / react-patterns-post-draft.md
Last active March 24, 2023 23:24
Draft of "React Patterns in a Post-Hooks World"
title author
React Patterns in a Post-Hooks World
name url
Tommy Groshong

Introduction

React is an amazing library and over the last 5 years has transformed the

@simpsoka
simpsoka / Leadership-CI.md
Last active May 17, 2025 15:02
This is a list of questions to check our decision making.

Do I want to die on this hill?

  • Pass: This is morally good and if not handled has long term consequences
  • Fail: This if self serving

Am I including everyone?

  • Pass: My ego is not driving this conversation
  • Fail: The people in this conversation will only tell me I'm right and not push back
@thebentern
thebentern / hummus.md
Last active March 3, 2017 01:59
Black-eyed pea hummus

Black-eyed pea hummus

Ingredients

  • 2 x 15.5 oz cans of Trappy's jalapeno black-eyed peas cooked and rinsed
  • 3/4 cup of tahini
  • 3 cloves of fresh garlic
  • 1/4 cup of oil (I used avocado)
  • 1 lemon juiced
  • 2 tsp salt
@jdmaturen
jdmaturen / company-ownership.md
Last active July 29, 2023 22:39
Who pays when startup employees keep their equity?

Who pays when startup employees keep their equity?

JD Maturen, 2016/07/05, San Francisco, CA

As has been much discussed, stock options as used today are not a practical or reliable way of compensating employees of fast growing startups. With an often high strike price, a large tax burden on execution due to AMT, and a 90 day execution window after leaving the company many share options are left unexecuted.

There have been a variety of proposed modifications to how equity is distributed to address these issues for individual employees. However, there hasn't been much discussion of how these modifications will change overall ownership dynamics of startups. In this post we'll dive into the situation as it stands today where there is very near 100% equity loss when employees leave companies pre-exit and then we'll look at what would happen if there were instead a 0% loss rate.

What we'll see is that employees gain nearly 3-fold, while both founders and investors – particularly early investors – get dilute

@thebentern
thebentern / FindColumn.sql
Created December 24, 2015 13:44
Find Column by name in Database
SELECT c.name AS ColName, t.name AS TableName
FROM sys.columns c
JOIN sys.tables t ON c.object_id = t.object_id
WHERE c.name LIKE '%MyName%'
require 'rspec'
describe "Behaviour" do
it "should pass" do
true.should eq true
end
it "should fail" do
true.should eq false
end