Skip to content

Instantly share code, notes, and snippets.

Noah Kantrowitz coderanger

Block or report user

Report or block coderanger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
progrium / fbpost
Last active Aug 17, 2018
Facebook no longer allows news feed posts to be added programmatically via API. But we can still post them programmatically...
View fbpost
#!/usr/bin/env node
// Usage:
// Login manually, saving your authenticated session in "data":
// $ ./fbpost --login
// Now you can post whatever you want via argument:
// $ ./fbpost "Hello world, this is a post!"
(async() => {
const puppeteer = require('puppeteer');
View Dockerfile-GCS
RUN rm $SPARK_HOME/jars/guava-14.0.1.jar
RUN mkdir -p /opt/hadoop/conf
COPY conf/core-site.xml /opt/hadoop/conf
COPY conf/ $SPARK_HOME/conf
ENTRYPOINT [ "/opt/" ]
yossorion /
Last active Oct 16, 2019
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

maxvt /
Last active Oct 23, 2019
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

a-dma /
Last active Jul 2, 2019
Bash script for setting or clearing touch requirements for cryptographic operations in the OpenPGP application on a YubiKey 4.
# Bash script for setting or clearing touch requirements for
# cryptographic operations the OpenPGP application on a YubiKey 4.
# Author: Alessio Di Mauro <>
GCA=$(which gpg-connect-agent)

aws-cli bash helper functions

The official AWS command line tools, have support for configuration profiles. See Configuring the AWS Command Line Interface - Named Profiles.

Managing multiple profiles with the AWS CLI itself is relatively straight forward, switching between them with --profile flag on the command line or the AWS_PROFILE environment variable.

These helpers extend that functionality for convenience with other tools in the ecosystem.


solarce /
Created Aug 7, 2015
A quick list of the Travis Docker containers on that you can `docker pull`

The following is a list of public Docker images Travis uses for our container based builds. You can grab them with docker pull$lang.

  • Do note that they are large in size, 800MB - 1.8G


sebsto / gist:20e550876db521710186
Created Feb 12, 2015
Block users access to AWS EC2 meta data
View gist:20e550876db521710186
sudo iptables -A OUTPUT -m owner ! --uid-owner root -d -j DROP
View gist:f3b1d2e9e4d094d118fa


So the SF pasttime isn't baseball or anything like that, it's laughing at tourists who wear shorts. All the visions of warm, beachy California are lies spread by the Los Angeles tv industry. SF can be cold and windy even in summer (actually especially in summer, the land warms up and causes the fog to roll in) and the fog is beautiful but it's FRICKIN COLD. I always bring a jacket to SF no matter what time of year it is. It can be 30 deg C maybe 20 miles away and 10 degrees C in SF. No joke.


SF has awesome food, with a lot of Asian and Mexican influence. Here's a great list from all price ranges:

Pay particular attention to Mexican/Central and South American food, since I know the UK has great Asian food but not Mexican. The burrito is a Californian staple. Try the al pastor and the carnitas.

You can’t perform that action at this time.