Skip to content

Instantly share code, notes, and snippets.

View ariela's full-sized avatar

Takeshi Kawamoto ariela

View GitHub Profile
@ariela
ariela / post-receive
Created May 20, 2011 05:03
gitにpushしたwebサイトを自動的に同期させる
#!/bin/sh
wget -q -O - http://APIのURL
@ariela
ariela / .htaccess
Created May 20, 2011 05:32
各リソースをgz圧縮して転送量を抑える
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !.gz$
RewriteCond %{REQUEST_FILENAME}.gz -s
RewriteRule .+ %{REQUEST_URI}.gz
<FilesMatch ".html.gz$">
ForceType text/html
AddEncoding x-gzip .gz
@ariela
ariela / gist:982413
Created May 20, 2011 05:36
AsakusaSatelliteをPassengerで動かしてみる。
$ cd /vaw/www
$ git clone git://github.com/codefirst/AsakusaSatellite.git
$ cd AsakusaSatellite
$ cp config/filter.yml.example config/filter.yml
$ cp config/websocket.yml.example config/websocket.yml
$ cp config/settings.yml.example config/settings.yml
$ vi config/filter.yml
1 - name: auto_link
2 - name: redmine_ticket_link
3 roots:
@ariela
ariela / gist:1013592
Created June 8, 2011 01:17
画面上部からスライドして表示
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<title>★文書タイトル★</title>
<style>
/**
* スライドして表示される場所
@ariela
ariela / gist:1016613
Last active September 26, 2015 01:27
Chrome Keyconfig設定
{
"name": "Chrome Keyconfig",
"version": "1.13.1",
"normal_actions": {
"Esc": {
"name": "limited mode",
"args": []
},
"j": {
"name": "scroll down",
@ariela
ariela / conf.d\vhost.conf
Created June 10, 2011 07:33
Apache2 VHOST設定
NameVirtualHost *:80
NameVirtualHost *:433
#
# どのドメイン設定にもマッチしない場合
#
<VirtualHost *:80>
Include conf.d/vhost/default.conf
</VirtualHost>
<VirtualHost *:433>
@ariela
ariela / minecraft.sh
Created August 2, 2011 04:28
minecraftのサーバ起動スクリプト(centosでのみテスト)
#!/bin/sh
#
# minecraft Startup script for the minecraft Server
#
# chkconfig: - 90 25
# description: Minecraft is Sandbox game server.
# processname: minecraft
# パス設定 =========================================================================================
MC_PATH_HOME="/opt/minecraft" # minecraftサーバの基本位置
@ariela
ariela / are.html
Created September 22, 2011 06:13
あれ。
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>やるきのないあれ</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<style>
#loader {
@ariela
ariela / .htaccess
Created April 16, 2012 00:51
Apache用のhtaccessメモ
# ファイルキャッシュ有効期限
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 7 days"
ExpiresByType text/javascript "access plus 7 days"
ExpiresByType application/x-javascript "access plus 7 days"
ExpiresByType image/gif "access plus 7 days"
ExpiresByType image/jpg "access plus 7 days"
ExpiresByType image/jpeg "access plus 7 days"
@ariela
ariela / grunt.js
Created September 6, 2012 10:33
gruntの設定
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
coffee: {
dist: {
src: ['assets/coffee/**/*.coffee'],
dest: 'assets/js/wcv-main.js'
}
},