Skip to content

Instantly share code, notes, and snippets.

@pinmarch
pinmarch / gyp_main.py
Created September 2, 2015 06:56
drafterのインストール時にsys.exit(gyp.script_main())でAttributeError: 'module' object has no attribute 'script_main'となったときの修正箇所。target file: apiaryio/drafter/ext/snowcrash/tools/gyp/gyp_main.py
#!/usr/bin/env python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
# TODO(mark): sys.path manipulation is some temporary testing stuff.
try:
@pinmarch
pinmarch / installing_gfortran_blas_lapack_atlas.sh
Created October 26, 2014 01:41
requirements.txt etc to use word2vec with heroku
# install gfortran + BLAS + LAPACK + ATLAS
# after '$ heroku run bash'
cd /tmp
curl -O http://ftp.tsukuba.wide.ad.jp/software/gcc/infrastructure/gmp-4.3.2.tar.bz2
tar jxf gmp-4.3.2.tar.bz2
cd gmp-4.3.2
./configure --prefix=/tmp/local
make -j8 && make install
cd ../
@pinmarch
pinmarch / dotcloud.yml
Created June 1, 2012 15:52
gitserver-on-dotcloud(nginx-on-dotcloud+nginx-dav-ext-module)
nginx:
type: custom
buildscript: nginx/builder
systempackages:
# needed for the Nginx rewrite module
- libpcre3-dev
- libexpat-dev
ports:
www: http
processes: