sudo useradd -m username visudo
sudo userdel ubuntu sudo rm -Rf ubuntu
#execute as root user | |
aptitude update | |
aptitude install sudo | |
apt-get install build-essential sysv-rc-conf vim | |
apt-get install libssh-dev curl git-core sendmail sendmail-bin nkf | |
apt-get install mysql-client mysql-server libmysqlclient-dev | |
apt-get install apache2 libapache2-mod-php5 | |
apt-get install php5 php-pear php-apc php5-cli php5-curl php5-gd php5-mcrypt php5-mysql | |
apt-get install libreadline5-dev libapache2-mod-ruby libapr1-dev libaprutil1-dev zlib1g-dev |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=utf-8,iso-2022-jp,euc-jp,ucs2le,ucs-2 | |
set wrap | |
set wrapscan | |
set number | |
set ruler | |
set noexpandtab | |
set tabstop=4 |
<?php | |
require_once '../config.php'; | |
function sign($url, $params) { | |
$parsed_url = parse_url($url); | |
$query = http_build_query_rfc3986($params); | |
$request = array( | |
'GET', | |
$parsed_url['host'], |
<?php | |
require_once 'Mobile.class.php'; | |
class HogeMobile extends Mobile { | |
var $title = 'TItle'; | |
var $key_color = '#000'; | |
var $link_color = '#00f'; | |
var $visited_color = '#00f'; | |
var $active_color = '#f00'; |
// The main ray tracer. | |
#pragma warning (disable: 4786) | |
#include "RayTracer.h" | |
#include "scene/light.h" | |
#include "scene/material.h" | |
#include "scene/ray.h" | |
#include "parser/Tokenizer.h" |
#!/bin/bash | |
#packages | |
sudo apt-get -y update | |
sudo apt-get install -y zsh tmux vim git-core | |
#zsh | |
sudo chsh -s /bin/zsh |
load 'deploy' | |
# Uncomment if you are using Rails' asset pipeline | |
load 'deploy/assets' | |
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
load 'config/deploy' # remove this line to skip loading any of the default tasks |
[user] | |
name = Your Name | |
email = [email protected] | |
[alias] | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
st = status | |
ci = commit | |
co = checkout |
require 'rubygems' | |
require 'google_drive' | |
# set your username and password | |
login = GoogleDrive.login(GoogleDrive::USERNAME, GoogleDrive::PASSWORD) | |
# set your spreadsheet key | |
sheet = login.spreadsheet_by_key(GoogleDrive::SPREADSHEET) | |
sheet.worksheets.each do |ws| | |
p ws.title |