Skip to content

Instantly share code, notes, and snippets.

View tswast's full-sized avatar

Tim Sweña (Swast) tswast

View GitHub Profile
@crwilcox
crwilcox / bigquery_github.py
Last active February 19, 2020 05:17
Scan GitHub using BigQuery
from google.cloud import bigquery
import json
GITHUB_USERNAME = 'crwilcox'
START_DATE = "2019-08-26"
END_DATE = "2020-02-16"
client = bigquery.client.Client()
query = f"""SELECT repository, type, event AS status, COUNT(*) AS count
@beccasaurus
beccasaurus / _ textme _ .md
Last active November 14, 2016 20:07
textme :: Text me after a long-running command finishes

xkcd compiling comic

Do you find yourself frequently getting coffee while you wait for your code to compile? ☕

Test suite take a long time to run?

Application taking awhile to deploy?

Not to worry!

@wenzhixin
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active January 16, 2024 21:15
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@mbostock
mbostock / .block
Last active January 17, 2023 18:54 — forked from mbostock/.block
Stacked Area Chart
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-stacked-area-chart
@samnang
samnang / gist:1759336
Created February 7, 2012 11:52
Install Bash version 4 on MacOS X
# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar xzf bash-4.2.tar.gz
cd bash-4.2
./configure --prefix=/usr/local/bin && make && sudo make install
# Add the new shell to the list of legit shells