Skip to content

Instantly share code, notes, and snippets.

Avatar
🧑‍✈️
Manual controls

Sasha Gerrand sgerrand

🧑‍✈️
Manual controls
View GitHub Profile
@sgerrand
sgerrand / README.MD
Created Jun 1, 2022 — forked from lmarkus/README.MD
Extracting / Exporting custom emoji from Slack
View README.MD

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@sgerrand
sgerrand / programming-as-theory-building.md
Created Apr 1, 2022 — forked from onlurking/programming-as-theory-building.md
Programming as Theory Building - Peter Naur
View programming-as-theory-building.md

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a > written representation of the program, and it's lossy, so you can't reconstruct

View 20111011_SteveYeggeGooglePlatformRant.md

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

View keybase.md

Keybase proof

I hereby claim:

  • I am sgerrand on github.
  • I am sgerrand (https://keybase.io/sgerrand) on keybase.
  • I have a public key ASCpG62P0juOgwxRfhc_-Hdi4nba_fhma-eMaw6X506-SAo

To claim this, I am signing this object:

@sgerrand
sgerrand / github-billing-comparison.md
Created May 11, 2016
Comparison of GitHub's billing changes, as of 11 May 2016
View github-billing-comparison.md
Team Usage Cost Before Cost Now
1 repo, 5 users $25 $25
1 repo, 10 users $25 $70
11 repos, 5 users $50 $25
11 repos, 10 users $50 $70
5 repos, 50 users $25 $430
50 repos, 5 users $100 $25
50 repos, 50 users $100 $430
View INSTALL.md

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@sgerrand
sgerrand / roro.rb
Created Nov 12, 2013
An example using Minitest::Mock, using the version (4.7) available in the Ruby standard library.
View roro.rb
class Roro
def initialize(host, speakers = [])
@host = host
@speakers = speakers
end
def start
@host.speak
end
end
View summary
Original text here: http://www.heartmindcode.com/blog/2013/08/loyalty-and-layoffs/
View dead_constants.rb
#!/usr/bin/env ruby
gem "parser", "~> 1.4"
require "parser"
require "parser/ruby19"
require "set"
class ConstantDeclarationAndUseProcessor < Parser::AST::Processor
attr_reader :declared, :used
def initialize
View bootstrap.sh
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
echo -e "Installing pip..."
sudo python get-pip.py
rm get-pip.py
echo -e "Done."
echo -e "Installing Python packages..."
sudo pip install pytest
sudo pip install selenium