Skip to content

Instantly share code, notes, and snippets.

View ijstokes's full-sized avatar

Ian Stokes-Rees ijstokes

View GitHub Profile
@damianavila
damianavila / remove_output.py
Created April 3, 2013 22:05
Remove output from IPython notebook from the command line (dev version 1.0)
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
from IPython.nbformat.current import read, write
@debasishg
debasishg / gist:8172796
Last active March 15, 2024 15:05
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
@MrTrustor
MrTrustor / clean-docker-for-mac.sh
Last active November 21, 2023 11:38
This script cleans the Docker.qcow2 file that takes a lot of disk space with Docker For Mac. You can specify some Docker images that you would like to keep.
#!/bin/bash
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@wckdouglas
wckdouglas / chromeos_setup.md
Last active January 13, 2019 18:02
setting up chromebook for developer

Computing environment setup guide for chromebooks

Douglas Wu


This is a note for myself to setup a developer environment on chromebook without using crouton (Running Linux GUI on chromeOS). I chose chromebrew since it is just a CLI interface and doesn't require running anything on top of any apps. And I am also a fan of miniconda, which works well on the linux kernal of ChromeOS.

  1. Get into developer mode, go to terminal and enter shell.

  2. Install chromebrew:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / Jupyter Orbit.ipynb
Created July 21, 2015 14:48
Jupyter Orbit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josephholsten
josephholsten / fix_ovf.rb
Created November 1, 2011 23:34
Because no one actually implements a standard
#!/usr/bin/env ruby -w
# fix_ovf: convert virtualbox ovf documents to work with vmware
# Usage: fix_ovf < vbox.ovf > vmware.ovf
require 'nokogiri'
class OVFDocument < Nokogiri::XML::Document
XMLNS = {
'rasd' => "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData",
'vssd' => "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData",
@bkreider
bkreider / gist:5709899
Last active December 18, 2015 02:18
Boto (2.9.2) cert issues with us-west-1. This compares two cacerts: the one included in the Requests library and the one included in Boto. Note: The SSL code is pulled from Boto's source code.
import ssl
import boto
import socket
GOOD_CERT="/opt/anaconda/lib/python2.7/site-packages/requests/cacert.pem"
BAD_CERT="/opt/anaconda/lib/python2.7/site-packages/boto/cacerts/cacerts.txt"
HOST="ec2.us-west-1.amazonaws.com"
PORT=443
@bkreider
bkreider / ripython.sh
Created June 14, 2014 22:10
remote ipython
#!/bin/bash
#
# remote ipython:
#
# This starts a remote ipython kernel. Downloads the kernel connection file,
# and starts a local ipython console connected to the remote machine.
#
# Features:
# - Automatically starts remote kernel
# - Copies remote file into ~/.ripython/<hostname.json>