Skip to content

Instantly share code, notes, and snippets.

@yandod
yandod / gist:10083856
Created April 8, 2014 02:24
unite japan day2
Gui
Tim
BioShock
Editor
maiking gui is hard
without code
world space
in the wold
screen space
Unite
----------------------------------------------------------------------
1:開場
 ・ かなりの待機列
 ・ ノベリティと名札を受け取って入場
 ・ 開場は3つの開場を繋げた形で椅子や様子はデブサミに近い。
 ・ Unity関連のゲームやツールの動画が続々と流されている。音響もよい。
 ・ アナウンスがアニメ声
 ・ 同時通訳機と水が椅子に用意されていた。
@yandod
yandod / gist:7984785
Created December 16, 2013 10:09
c3.large on Engine Yard
$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 4.5G 9.6G 32% /
/dev/root 15G 4.5G 9.6G 32% /
tmpfs 1.9G 220K 1.9G 1% /run
udev 10M 0 10M 0% /dev
shm 1.9G 0 1.9G 0% /dev/shm
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
/dev/xvdb 16G 170M 15G 2% /mnt
/dev/xvdz1 15G 242M 14G 2% /data
create table users (
id integer auto_increment,
username text,
password text,
role text,
created datetime,
modified datetime,
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
@yandod
yandod / cake upgrade
Created November 26, 2013 13:56
CakePHP3 upgrade shell
vagrant@precise64:/vagrant_data/App$ ./Console/cake upgrade
A shell to help automate upgrading from CakePHP 3.0 to 2.x.
Be sure to
have a backup of your application before running these commands.
Usage:
cake upgrade [subcommand] [-h] [-v] [-q]
Subcommands:
@yandod
yandod / Vagrantfile
Created November 7, 2013 15:53
Single file Vagrntfile which spin up Ubuntu 12.04 + PHP5.5 + Nginx + MySQL
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
src_dir = './'
doc_root = '/vagrant_data/webroot'
app_name = File.basename(File.dirname(__FILE__))
config.vm.network :forwarded_port, guest: 80, host: 8080
@yandod
yandod / rand.sh
Created October 28, 2013 11:12
random
ls | grep key | php -r '$list=array(); while($l = trim(fgets(STDIN))){$list[]=$l;} echo "\n"; echo $list[array_rand($list)] ."\n";'
{
"languages": {
"ruby": {
"platform": "x86_64-linux",
"version": "1.8.7",
"release_date": "2012-02-08",
"target": "x86_64-unknown-linux-gnu",
"target_cpu": "x86_64",
"target_vendor": "unknown",
"target_os": "linux",
@yandod
yandod / readme.md
Last active December 21, 2015 15:19
動作環境の準備

VirtualBox と Vagrant をインストールする。 USBメモリにそれぞれインストーラーがあります。(Windows & Mac)

  1. VirtualBoxをインストール
  2. Vagrantをインストール
  3. pricise64のイメージのダウンロード

ボックスイメージのダウンロード(600メガくらい)は重たいのでこれもUSBからコピーします。 boxes/prices64.box を任意の場所にコピーし

vagrant box add precise64 (コピーしたファイルまでのパス)

<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body>
<div>
<label>Name:</label>
<input type="text" ng-model="yourName" placeholder="Enter a name here">
<hr>