SSHポートフォワードが提供されていない qrsh
コマンドで Jupyter Notebook を利用したい on TSUBAME3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for config load | |
# wget -P $HOME -N https://gist.githubusercontent.com/metaVariable/71a32abc63ad2770997f66361db86810/raw/294b8d122731a5962f701b3f537213c8023931ab/.tmux.conf | |
# prefixキーをC-aに変更する | |
set -g prefix C-a | |
# C-bのキーバインドを解除する | |
unbind C-b | |
# キーストロークのディレイを減らす |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/cuda:8.0-devel | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends \ | |
wget \ | |
make \ | |
g++ \ | |
git \ | |
ca-certificates \ | |
libboost-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/cuda:9.0-devel | |
MAINTAINER Akiyama Laboratory, Tokyo Institute of Technology <megadock@bi.cs.titech.ac.jp> | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends \ | |
wget \ | |
make \ | |
g++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker build . ghostz:1.0.0 | |
FROM gcc:7.3.0 | |
RUN wget -P /tmp http://www.bi.cs.titech.ac.jp/ghostz/releases/ghostz-1.0.0.tar.gz && \ | |
tar xvzf /tmp/ghostz-1.0.0.tar.gz -C /opt && \ | |
rm -rf /tmp/ghostz-1.0.0.tar.gz | |
WORKDIR /opt/ghostz-1.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION=2.5.1 | |
echo "# install squashfs-tools for CentOS." | |
echo "# update and install squashfs-tools." | |
yum update -y | |
yum install -y squashfs-tools libarchive-devel | |
# Singularity | |
echo "# make singularity-$VERSION." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <mpi.h> | |
#include <stdio.h> | |
int main(int argc, char** argv) { | |
// Initialize the MPI environment | |
MPI_Init(NULL, NULL); | |
// Get the number of processes | |
int world_size; | |
MPI_Comm_size(MPI_COMM_WORLD, &world_size); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import curses | |
import subprocess | |
import sys | |
from datetime import datetime | |
AUTHOR = "Jonathan Mackenzie" | |
NAME = "pqstat" | |
def get_qstat(args): | |
return subprocess.Popen(['qstat']+args,stdout=subprocess.PIPE).communicate()[0] | |
def main(scr): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 参考元: https://qiita.com/mkuriki_/items/f934c8a81c922832a618#_reference-e7c0fc5959275df5a954 | |
BUILD_DIR="$HOME/tmux-build" | |
INSTALL_DIR="$HOME/.local" | |
libevent_ver="2.1.8-stable" | |
ncurses_ver="6.1" | |
tmux_ver="2.6" | |
mkdir -p ${BUILD_DIR} | |
cd ${BUILD_DIR} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CMD=${CMD:-"qstat"} | |
WAIT=${WAIT:-"60s"} | |
MAX=${MAX:-"10000"} | |
for i in $(seq $MAX) | |
do | |
clear | |
printf " ==== $(date +%H:%M:%S) ====\n\n" |
OlderNewer