I hereby claim:
- I am mikalv on github.
- I am meeh (https://keybase.io/meeh) on keybase.
- I have a public key ASD-1mNJ6fo9VjMezaArNaEqvzALPwx1SbeCZ5R0IanaUwo
To claim this, I am signing this object:
package main | |
import ( | |
"bytes" | |
"code.google.com/p/go.crypto/openpgp" | |
"encoding/base64" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
OS X Yosemite Kernel Debug Kit Read Me | |
Please Note: After installation, the Kernel Debug Kit will be available at: | |
/Library/Developer/KDKs/ | |
——————————————————————————————— | |
The kernel file location has changed. | |
The kernel file location has moved to /System/Library/Kernels/kernel | |
DEVELOPMENT and DEBUG kernels | |
The OS X Yosemite Kernel Debug Kit includes the DEVELOPMENT and DEBUG kernel builds. These both have additional assertions and error checking compared to the RELEASE kernel. The DEVELOPMENT kernel can be used for every-day use and has minimal performance overhead, while the DEBUG kernel has much more error checking. | |
I hereby claim:
To claim this, I am signing this object:
var xmpp = require('node-xmpp'); | |
//Set node-xmpp options. | |
//Replace with your projectID in the jid and your API key in the password | |
//The key settings for CCS are the last two to force SSL and Plain SASL auth. | |
var options = { | |
type: 'client', | |
jid: '[email protected]', | |
password: 'XXXXXXXX', | |
port: 5235, |
This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.
These two files should help you to import passwords from mac OS X keychains to 1password. | |
Assumptions: | |
1) You have some experience with scripting/are a power-user. These scripts worked for me | |
but they haven't been extensively tested and if they don't work, you're on your own! | |
Please read this whole document before starting this process. If any of it seems | |
incomprehensible/frightening/over your head please do not use these scripts. You will | |
probably do something Very Bad and I wouldn't want that. | |
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous | |
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they |
Using cron to perform incremental Map-Reduce in MongoDB |
var doMapReduce = function(options, callback) { | |
var map = function () { | |
var dateKey = new Date(options.time.getTime()); | |
dateKey.setMinutes(0); | |
dateKey.setSeconds(0); | |
dateKey.setMilliseconds(0); | |
var mapped = { |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
# Note – this is not a bash script (some of the steps require reboot) | |
# I named it .sh just so Github does correct syntax highlighting. | |
# | |
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5 | |
# | |
# The CUDA part is mostly based on this excellent blog post: | |
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
# Install various packages | |
sudo apt-get update |