Skip to content

Instantly share code, notes, and snippets.

View abarth500's full-sized avatar

Shohei Yokoyama abarth500

  • Tokyo Metropolitan University
  • Tokyo Japan
View GitHub Profile
@abarth500
abarth500 / gist:5419692
Created April 19, 2013 11:11
[情報科学科実験I] 動作テスト用phpプログラム
<?php
phpinfo();
?>
@abarth500
abarth500 / gist:5419745
Created April 19, 2013 11:19
[情報科学科実験I] アップロードしたファイルの確認
ls -ls ~/public_html/
@abarth500
abarth500 / gist:5431880
Last active June 27, 2016 09:46
[情報科学科実験I] Gitのインストール(Fedora)
sudo dbf install git
@abarth500
abarth500 / gist:5432374
Created April 22, 2013 04:02
[情報科学科実験I] gitコマンドのテスト
#gitコマンドが有効か試し打ち
git --version
#このように帰ってきたら成功
git version 1.8.1.4
@abarth500
abarth500 / gist:5432827
Created April 22, 2013 06:28
[情報科学科実験I] サンプルプログラムのダウンロード
git clone --depth 1 git://github.com/abarth500/CSexp1-00.git
@abarth500
abarth500 / gist:5432848
Last active December 16, 2015 12:09
[情報科学科実験I] サンプルプログラムソースコード
<html>
<head>
<title>科学科実験Iサンプルプログラム</title>
<style>
.item{
overflow:hidden;
float:left;
margin:10px;
-webkit-box-shadow: 0 5px 3px -3px #777;
-moz-box-shadow: 0 5px 3px -3px #777;
@abarth500
abarth500 / gist:5433090
Created April 22, 2013 07:39
[情報科学科実験I] PHPの型と演算子
<?php
$str1 = 1;
$str2 = 2;
echo $str1+$str2;
echo $str1.$str2;
?>
@abarth500
abarth500 / gist:5436080
Last active December 16, 2015 12:39
[情報科学科実験I] abコマンド例
ab -n 100 -c 10 http://192.168.0.200/~ユーザ名/index.php
@abarth500
abarth500 / gist:5436163
Created April 22, 2013 15:44
[情報科学科実験I] abコマンド結果例
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: Apache/2.2.22
Server Hostname: localhost
Server Port: 80
@abarth500
abarth500 / gist:5441515
Last active December 16, 2015 13:28
[情報科学科実験I] CSVデータの流し込み
load data local infile "/path/to/import.csv" into table table_name fields terminated by ',' lines terminated by '\r\n';
-- table_nameはこの課題ではzipShizuokaです。
-- CSVファイルのパスはgit cloneをホームディレクトリでやったなら、/home/みなさんのアカウント名/CSexp1-02/zip-shizuoka.csvです。