Skip to content

Instantly share code, notes, and snippets.

(:name gist
:type git
:url "https://github.com/defunkt/gist.el.git"
:features gist)
xft.fontbackend: xft
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
!Xft.embolden: true
!emacs xresources
Emacs*FontBackend: xft
Emacs*Font: Inconsolata-16
Emacs*Geometry: 80x25+0+0
@vmlinz
vmlinz / _android.zsh
Created December 30, 2010 13:27
android completion
#compdef android
#autoload
local ret=1 state
declare -ga global_args
global_args=(
{-h,--help}"[Help on a specific command.]"
{-s,--silent}"[Silent mode: only errors are printed out.]"
{-v,--verbose}"[Verbose mode: errors, warnings and information.al messages are printed.]"
@vmlinz
vmlinz / init.el
Created March 22, 2013 05:44
emacs configuration for windows 7
;; This file is not part of gnu emacs
;; Time-stamp: <2013-03-20 10:52:56 ZaiQi>
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
@vmlinz
vmlinz / init.el
Created March 22, 2013 05:44
emacs configuration for windows 7
;; This file is not part of gnu emacs
;; Time-stamp: <2013-03-20 10:52:56 ZaiQi>
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of

Description

When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded

Let's fix that! (yeah!)


Short version

Create a new Personal Token in your Github Account Settings (Sidebar: Applications) and then copy the Token. In the Terminal, use export HOMEBREW_GITHUB_API_TOKEN=YOURAPITOKENWITHFUNKYNUMBERSHERE (change that to your API Token) or add that to your .bash_profile and then do source .bash_profile.

# http://EditorConfig.org
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
12:28:30.830 [INFO] [org.gradle.BuildLogger] Starting Build
12:28:30.833 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/vmlinz/.gradle
12:28:30.833 [DEBUG] [org.gradle.BuildLogger] Current dir: /Users/vmlinz/Projects/hello-scaloid-gradle
12:28:30.834 [DEBUG] [org.gradle.BuildLogger] Settings file: null
12:28:30.834 [DEBUG] [org.gradle.BuildLogger] Build file: null
12:28:30.847 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Starting to build the build sources.
12:28:30.849 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Gradle source dir does not exist. We leave.
12:28:30.852 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found env project properties: []
12:28:30.853 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found system project properties: []
12:28:30.933 [DEBUG] [org.gradle.api.internal.artifacts.mvnsettings.DefaultLocalMavenRepositoryLocator] No local repository in Settings file defined. Using default path: /Users/vmlinz/
12:30:07.206 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface awdl0
12:30:07.207 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
12:30:07.210 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
12:30:07.210 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote address /fe80:0:0:0:9070:68ff:fe48:7ba8%awdl0
12:30:07.211 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote multicast interface awdl0
12:30:07.211 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface en0
12:30:07.212 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
12:30:07.212 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
12:30:07.213 [

Notes for building Torch7 for Android

Since I am familiar with Ubuntu Linux, I followed the tutorial using Ubuntu 14.04 64 desktop to build and test Torch7 for Android.

Refer the readme file for Torch7 for Android and the official Torch7 getting started.

The Torch7 project is easy to build following the official guide but the torch-android project is poorly maintained and not well documented, so I wrote this document as a note.

Requirements