Skip to content

Instantly share code, notes, and snippets.

Ian Stokes-Rees ijstokes

View GitHub Profile
View dask-sklearn-gridsearch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wckdouglas
wckdouglas / chromeos_setup.md
Last active Jan 13, 2019
setting up chromebook for developer
View chromeos_setup.md

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:

@MrTrustor
MrTrustor / clean-docker-for-mac.sh
Last active May 30, 2020
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.
View clean-docker-for-mac.sh
#!/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
View Jupyter Orbit.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bkreider
bkreider / ripython.sh
Created Jun 14, 2014
remote ipython
View ripython.sh
#!/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>
@debasishg
debasishg / gist:8172796
Last active Jun 24, 2020
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
@bkreider
bkreider / gist:5709899
Last active Dec 18, 2015
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.
View gist:5709899
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
@damianavila
damianavila / remove_output.py
Created Apr 3, 2013
Remove output from IPython notebook from the command line (dev version 1.0)
View remove_output.py
"""
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
@josephholsten
josephholsten / fix_ovf.rb
Created Nov 1, 2011
Because no one actually implements a standard
View fix_ovf.rb
#!/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",
You can’t perform that action at this time.