lxc
- LXC - Wikipedia
- OSレベル の仮想化ソフトウェア
- 完全仮想化(ハードウェアをエミュレート、オーバーヘッド大) - KVM etc
- 準仮想化(ゲストOSがホストOSのAPIを使用、オーバーヘッド中) - Xen, Hyper-V etc。Virtualboxもこちらか
- 仮想機械ではなく、個別のプロセスとネットワークスペースを作り出す仮想環境
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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/sh | |
svn diff --diff-cmd diff -x -uw $* |
This file contains 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
--- PKGBUILD.org 2014-11-18 18:06:33.000000000 +0900 | |
+++ PKGBUILD 2015-02-22 16:18:42.861243876 +0900 | |
@@ -52,12 +52,12 @@ | |
## Mozc compile option | |
_bldtype=Release | |
-_mozcver=1.15.1917.102 | |
-_utdicver=20141110 | |
-_zipcoderel=201410 | |
+_mozcver=2.16.2037.102 |
This file contains 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 numpy as np | |
import scipy.spatial.distance | |
if __name__ == '__main__': | |
x = np.array([1, 1, 1, 1, 1]) | |
y = np.array([1, 0, 1, 0, 1]) | |
z = np.array([0, 1, 0, 0, 0]) | |
print 1 - scipy.spatial.distance.cosine(x, y) |
This file contains 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
;; zone-pgm-rainbow | |
(require 'zone) | |
(defvar zone-programs) | |
(defvar zpr-hue-factor 50) | |
(defvar zpr-sat 1.0) | |
(defvar zpr-light 0.5) | |
(defun zone-pgm-rainbow () | |
(require 'color nil) |
This file contains 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
@servers(['web' => 'deploy-ex']) | |
@setup | |
$repo = 'git@github.com:Servers-for-Hackers/deploy-ex.git'; | |
$release_dir = '/var/www/releases'; | |
$app_dir = '/var/www/app'; | |
$release = 'release_' . date('YmdHis'); | |
@endsetup | |
@macro('deploy', ['on' => 'web']) |
Vundle を使っている方は、 https://stackoverflow.com/questions/35087549/typescript-syntax-highlighting-in-vim を参照してください。
TypeScript のコードを書くにあたって、
黒い画面の vim と MacVim で Syntax Highlight したいです。
~/dotfiles/.vimrc
があり、 ~/.vim/bundle/
があるものとして進めます。
This file contains 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
var rfc822Date = moment(yourDate).format('ddd, DD MMM YYYY HH:mm:ss ZZ') |
This file contains 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
"use strict"; | |
// 使用するSQLite3のDBは以下 | |
// https://drive.google.com/file/d/0BzCcFSX0gJGkNFQya2ZIZ0xQelE/view?usp=sharing | |
/** | |
* Sequelizeの導入 | |
*/ | |
var Sequelize = require("sequelize"); |
OlderNewer