Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

""" | |
A script that loads a GitHub repositories info and updates a Firebase database with it. | |
You will require the following database rules: | |
{ | |
"rules": { | |
"repositories": { | |
".write": "auth != null", | |
".read": true |
#!/usr/bin/env bash | |
# Copy the url of the active ngrok connection to the clipboard. | |
# Usage: | |
# ngrok-copy # copies e.g. https://3cd67858.ngrok.io to clipboard. | |
# ngrok-copy -u # copies e.g. http://3cd67858.ngrok.io to clipboard. | |
if [[ "$1" == "-u" ]]; then | |
NGROK_URL=`curl -s http://127.0.0.1:4040/status | grep -P "http://.*?ngrok.io" -oh` | |
else | |
NGROK_URL=`curl -s http://127.0.0.1:4040/status | grep -P "https://.*?ngrok.io" -oh` |
#!/usr/bin/env python | |
# | |
# Very basic example of using Python and IMAP to iterate over emails in a | |
# gmail folder/label. This code is released into the public domain. | |
# | |
# RKI July 2013 | |
# http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
# | |
import sys | |
import imaplib |
require 'faker' | |
require 'csv' | |
CSV.open("output.csv", "wb") do |csv| | |
i=0 | |
until i == 25000 | |
fake = [Faker::Name.name, Faker::Internet.email] | |
csv << fake | |
i=i+1 | |
end |
#!/bin/bash | |
# License: Public Domain. | |
# Author: Joseph Wecker, 2012 | |
# | |
# -- DEPRICATED -- | |
# This gist is slow and is missing .bashrc_once | |
# Use the one in the repo instead! https://github.com/josephwecker/bashrc_dispatch | |
# (Thanks gioele) | |
# | |
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? |
CURLOPT_NOTHING = 0; | |
CURLOPT_FILE = 10001; | |
CURLOPT_URL = 10002; | |
CURLOPT_PORT = 3; | |
CURLOPT_PROXY = 10004; | |
CURLOPT_USERPWD = 10005; | |
CURLOPT_PROXYUSERPWD = 10006; | |
CURLOPT_RANGE = 10007; | |
CURLOPT_INFILE = 10009; | |
CURLOPT_ERRORBUFFER = 10010; |