Skip to content

Instantly share code, notes, and snippets.

"---------------------------------------------------------------------
" vim plugins
"---------------------------------------------------------------------
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
@calorie
calorie / knife.rb
Last active August 29, 2015 14:20
local_mode true
chef_repo = File.join(File.dirname(__FILE__), '..')
cookbook_path [File.join(chef_repo, 'cookbooks'), File.join(chef_repo, 'site-cookbooks')]
node_path File.join(chef_repo, 'nodes')
role_path File.join(chef_repo, 'roles')
ssl_verify_mode :verify_peer
@calorie
calorie / hoge.yml
Created March 29, 2015 22:54
tmuxinator sample
# ~/.tmuxinator/hoge.yml
project_name: hoge
project_root: ~/work/hoge
pre:
- sudo dhclient -r
- sudo ifdown eth0
- sudo ifup eth0:0
windows:
- editor: vim
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
@calorie
calorie / auto_woot.js
Last active August 29, 2015 14:13
plug.dj auto woot script without ads.
function autowoot(){ $("#woot").click(); }
autowoot();
API.on(API.ADVANCE, autowoot);
export USE_SYSTEM_GECODE=1
export DOCKER_HOST=tcp://127.0.0.1:4243
export VAGRANT_DEFAULT_PROVIDER=docker
diff --git script/mpiut.in script/mpiut.in
index 7b817b0..6dbf334 100644
--- script/mpiut.in
+++ script/mpiut.in
@@ -8,6 +8,6 @@ EXEC="exec_test"
MPIUTFLAGS="-I${INSTDIR}/include -finstrument-functions -rdynamic"
MPIUTLIBS="-L${INSTDIR}/lib -lmpiunit -lm"
-$CC $MPIUTFLAGS $MPIUTLIBS src/*.c test/*.c -o $EXEC
+$CC $MPIUTFLAGS src/*.c test/*.c -o $EXEC $MPIUTLIBS
#include "mpi.h"
#include <stdio.h>
int
sync()
{
int rank, val = 0;
MPI_Request request;
MPI_Status status;
Expand Filesystem, OK
Advanced Options, Hostname
Advanced Options, SSH, Enable, OK
Advanced Options, Update
Finish
$ sudo reboot
user:pi pass:raspberry
$ sudo vi /etc/network/interfaces
@calorie
calorie / .cvimrc
Last active April 15, 2020 10:28
.cvimrc
set nocncpcompletion
set nosmoothscroll
set nohud
set noregex
set noinsertmappings
set noautoupdategist
set nochangelog
set typelinkhints
set defaultnewtabpage
let scrollduration = 10