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
std::cout << "hoge" << endl; |
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/sh | |
#LVMのボリュームをバックアップするスクリプト | |
TYPE=$1 | |
VG=$2 | |
SNAPSHOT_SIZE=$3 | |
BACKUP_TARGETS=$4 | |
BACKUP_DIR=$5 | |
usage() | |
{ |
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
name="patricia"; | |
memory=768 | |
kernel = "/boot/kernel-genkernel-x86_64-2.6.27-gentoo-r4"; | |
vcpus=1 | |
disk = [ "iscsi:/dev/disk/by-path/ip-169.254.0.1:3260-iscsi-iqn.1986-03.com.sun:02:6269a693-15b3-e82d-f6ae-d06ade214996-lun-0,xvda,w","iscsi:/dev/disk/by-path/ip-169.254.0.1:3260-iscsi-iqn.1986-03.com.sun:02:177bf3ea-3283-eaec-a9ca-fb0ec65e660f-lun-0,xvdb,w" ]; | |
root = "/dev/xvda1 ro"; | |
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
import os, re | |
arch = os.uname()[4] | |
if re.search('64', arch): | |
arch_libdir = 'lib64' | |
else: | |
arch_libdir = 'lib' | |
kernel = "/usr/lib/xen/boot/hvmloader" | |
builder='hvm' | |
memory = 2048 |
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
<?xml version='1.0' encoding='utf-8'?> | |
<!-- 最小の tomcat-users.xml --> | |
<tomcat-users> | |
<role rolename="manager"/> | |
<user username="admin" password="admin" roles="manager"/> | |
</tomcat-users> | |
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
;nobody,nogroupでとあるディレクトリをゲスト共有するやる気のない smb.confの例 | |
[global] | |
workgroup = STBBS.NET | |
map to guest = Bad User | |
unix charset = utf-8 | |
[share] | |
guest ok = yes | |
force user=nobody | |
force group=nogroup |
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
/** 複合プライマリキーの表現 **/ | |
@Entity | |
@IdClass(FootballerPk.class) | |
public class Footballer { | |
//part of the id key | |
@Id public String getFirstname() { | |
return firstname; | |
} | |
public void setFirstname(String firstname) { |
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
<?xml version="1.0"?> | |
<!-- 適当なbuild.xml --> | |
<project default="war"> | |
<property name="war" value="myproj.war"/> | |
<property name="webapp" value="build/webapp"/> | |
<property name="classes" value="${webapp}/WEB-INF/classes"/> | |
<property name="lib" value="src/webapp/WEB-INF/lib"/> | |
<target name="war"> |
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
M = lambda{|p, x,y| p.moveTo(x,y)} | |
C = lambda{|p, x1,y1,x2,y2,x3,y3| p.curveTo(x1,y1,x2,y2,x3,y3) } | |
path = [[M,52,0],[C,42,9,32,17,24,30],[C,15,42,7,60,0,76],[M,0,76],[C,11,65,18,55,34,45], | |
[C,49,34,72,22,92,11],[M,92,11],[C,77,44,56,75,48,112],[C,39,148,41,192,38,233], | |
[M,38,233],[C,45,209,54,182,62,163],[C,69,143,77,129,85,113],[M,96,69], | |
[C,92,102,81,136,86,170],[C,90,203,110,238,122,272],[M,122,272], | |
[C,123,258,125,244,127,232],[C,128,219,130,208,132,197],[M,137,29], | |
[C,132,55,122,80,122,109],[C,121,137,129,174,136,203],[C,142,231,154,253,163,278], | |
[M,163,278],[C,164,246,164,214,169,184],[C,173,153,182,125,189,97],[M,200,29], | |
[C,197,47,191,61,191,84],[C,190,106,193,137,194,164],[M,194,164], |
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
part1="v15l8>ceeel16dcg4.gfe8e8e8dcg4.gfe8fgl8fed<bg>ceeel16dcg4.gfe8e8e8dcg4.gfe8fgl8fed4rcgf16e16fgag4cgf16e16fgag4cag4fel16dcl18del19dedc4l8rcgf16e16fgag4cgf16e16fgag4cag4fel16dcl18del19dedc4l8rceeel16dcg4.gfe8e8e8dcg4.gfe8fgl8fed<bg>ceeel16dcg4.gfe8e8e8dcg4.gfe8fgl8fed4rcgf16e16fgag4cgf16e16fgag4cag4fel16dcl18del19dedc4l8rcgf16e16fgag4cgf16e16fgag4cag4fel16dcl18del19dedc1" | |
part2="v12<c8ccccccccl8cc<ff+g4r>cl4ccccccccl8cc<ff+g4r>cl4cccccccccl8c<g>cc<gg>c4rcl4cccccccccl8c<g>cc<gg>c4rcl4ccccccccl8cc<ff+g4r>cl4ccccccccl8cc<ff+g4r>cl4cccccccccl8c<g>cc<gg>c4rcl4cccccccccl8c<g>cc<gg>c1" | |
part3="l8rv13>cccre4.rcccre4.rcr2.rcccre4.rcccre4.rcr4.c-4r2.fe4r2rfe4rfe4r1.rfe4r2rfe4rfe4r1rcccre4.rcccre4.rcr2.rcccre4.rcccre4.rcr4.c-4r2.fe4r2rfe4rfe4r1.rfe4r2rfe4rfe4" | |
play part1,part2,part3 |
OlderNewer