Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Benjamin Alijagić benjam1n

🚀
View GitHub Profile
View twitter_followers_in_gdocs_spreadsheet.md

Twitter Followers in Google Docs Spreadsheet

Example 1. Followers

=IMPORTXML("https://twitter.com/intent/user?screen_name=benjam1n", "(//dd[@class='count']//a)[1]")

Example 2. Following

=IMPORTXML("https://twitter.com/intent/user?screen_name=benjam1n", "(//dd[@class='count']//a)[2]")
View keybase.md

Keybase proof

I hereby claim:

  • I am benjam1n on github.
  • I am benjam1n (https://keybase.io/benjam1n) on keybase.
  • I have a public key ASAVlGJc6xjxz5w38vLEGbplIrXDmhBNzRI44HMu8YmWIAo

To claim this, I am signing this object:

View heroku.rb
# ENVs
# HEROKU_API_KEY
# HEROKU_APP_NAME
# Gemfile
# gem 'heroku-api'
# config/initializers/heroku.rb
unless (app_name = ENV["HEROKU_APP_NAME"]).nil?
require 'heroku-api'
View git-delete-history.sh
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
# or e.g. $ bash git-delete-history.sh config/initializers/secret_token.rb
if [ $# -eq 0 ]; then