Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:Qmbbi1towwdoMfTpQPZPqbcFTGQFVoDk51hewka2qLuVVS ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

  • I am kern on github.
  • I am alexkern (https://keybase.io/alexkern) on keybase.
  • I have a public key whose fingerprint is 1EAE 7AA9 B3A6 8788 F601 48E8 86E2 0E73 35B2 9F6F

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kern on github.
  • I am alexkern (https://keybase.io/alexkern) on keybase.
  • I have a public key whose fingerprint is 1EAE 7AA9 B3A6 8788 F601 48E8 86E2 0E73 35B2 9F6F

To claim this, I am signing this object:

@kern
kern / save-sqs-queue.py
Created February 22, 2016 20:59
Saves all messages from an AWS SQS queue into a folder
import argparse
import boto.sqs
import json
import os
parser = argparse.ArgumentParser(description='Saves all messages from an AWS SQS queue into a folder.')
parser.add_argument(
'-q', '--queue', dest='queue', type=str, required=True,
help='The name of the AWS SQS queue to save.')

Kubernetes + AWS ECR = ❤️

Makefile and YAML templates for automating the use of AWS Elastic Container Registry with Kubernetes.

Based off of this awesome Redsaid blog post.

Requirements

  • Amazon ECR, along with your AWS account ID and the region your ECR is in
  • AWS CLI
@kern
kern / README.md
Last active January 6, 2016 02:09
TensorFlow + CUDA 7.0 AWS g2 instance installation script.

First, install all of TensorFlow and CUDA's dependencies:

$ # When prompted: Keep the local version currently installed
$ curl https://gist.githubusercontent.com/kern/ab56600768b9f4fc1f72/raw/8d0b86a678d1398be2b82ac6e4ab1f8ad0698f01/install_deps.sh | sh

Wait for reboot, then run:

$ # When prompted: Scroll all the way down > accept > y > y > y > default (/usr/local/cuda-7.0) > y > n
$ curl https://gist.githubusercontent.com/kern/ab56600768b9f4fc1f72/raw/8d0b86a678d1398be2b82ac6e4ab1f8ad0698f01/install_nvidia.sh | sh

$ curl https://gist.githubusercontent.com/kern/ab56600768b9f4fc1f72/raw/8d0b86a678d1398be2b82ac6e4ab1f8ad0698f01/install_tensorflow.sh | sh

@kern
kern / tensorflow-cuda-30.patch
Last active August 22, 2016 05:08
Patch to allow TensorFlow to run on CUDA Compute 3.0
diff --git a/tensorflow/core/common_runtime/gpu/gpu_device.cc b/tensorflow/core/common_runtime/gpu/gpu_device.cc
index 26d3464..286123f 100644
--- a/tensorflow/core/common_runtime/gpu/gpu_device.cc
+++ b/tensorflow/core/common_runtime/gpu/gpu_device.cc
@@ -607,7 +607,7 @@ void BaseGPUDeviceFactory::GetValidDeviceIds(std::vector<int>* ids) {
}
// Only consider GPUs with compute capability >= 3.5 (Kepler or
// higher)
- if (major < 3 || (major == 3 && minor < 5)) {
+ if (major < 3 /*|| (major == 3 && minor < 5)*/) {

Startup@Berkeley Posting Guidelines

Anything relating to startups, entrepreneurship, innovation, technology, hacking, design, business, or related fields is fair game for discussion in the group. The focus is on the Bay Area and Berkeley specifically, so please make sure events are accessible to students at UC Berkeley.

We require that all posts must be approved by moderators to maintain a high standard of content. Comment as much as you'd like, however!

  • First and foremost, be kind to one another.
  • Please don't post job listings. This is not a recruiting platform. You may, however, recruit for your campus organization.
  • Moderators may remove posts and comments that are of low quality or are deemed harmful to the community.
  • Avoid prejudice in all its forms. Racism, sexism, homophobia, and any other demeaning behavior will not be tolerated.
@kern
kern / hh-descomp.md
Last active August 29, 2015 14:12
Hackathon Hackers Design Competition

Hackathon Hackers Design Competition

View the submissions and vote!

HH and HH Design have teamed up to host the first Hackathon Hackers Design Competition!

The cover photo for Hackathon Hackers is OLD. Like ancient. Like it’s the same one uploaded the day this group was created. It’s time for an update.

The creativity of the hacker community knows no bounds. We’re hoping you can come up with cover photo concepts that capture the unique ethos of student hackathons. So take some time out of your holiday break, spin up your favorite image editor, and try your hand at branding HH.

@kern
kern / slow_virtus_spec.rb
Created October 17, 2012 10:05
How would you test Person in isolation?
require "virtus"
require "rspec/autorun"
class Address < Virtus::Attribute::Object
primitive String
def coerce(value)
# Simulate a slow call to an external service that normalizes the
# address's format.
sleep 1