Skip to content

Instantly share code, notes, and snippets.

View kazu69's full-sized avatar
:octocat:
⭐️ 🚀 🍻 🍶

kazu69 kazu69

:octocat:
⭐️ 🚀 🍻 🍶
View GitHub Profile
@kazu69
kazu69 / js_debug.sh
Last active August 29, 2015 13:57
android sdk for mac
adb logcat | grep browser
@kazu69
kazu69 / server.md
Last active August 29, 2015 13:57
Start the local server easily. Just run one line shell after npm install.

Start the local server easily with node.js

static

npm install -g node-static
static -p 8000 & open http://localhost:8000

http-server

'use strict'
module.exports = (grunt) ->
require('load-grunt-tasks') grunt
require('time-grunt') grunt
grunt.initConfig
svgstore:
defaults:
options:
@kazu69
kazu69 / Dockerfile
Last active August 29, 2015 13:57
Dockerfile for install ruby using rbenv (centos)
#
# VERSION 0.0.1
#
FROM centos
MAINTAINER kazu69 "https://github.com/kazu69"
# Setup
RUN yum update -y
RUN yum -y install git gcc make zlib-devel openssl-devel readline-devel ncurses-devel gdbm-devel db4-devel libffi-devel tk-devel libyaml-devel
@kazu69
kazu69 / Vagrantfile
Last active August 29, 2015 13:58
dokku + vagrant deploy app
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "Ubuntu12_04"
config.vm.box_url = "http://download.appscale.com/download/AppScale%201.12.0%20VirtualBox%20Image"
config.vm.network :private_network, ip: "192.168.33.10"
@kazu69
kazu69 / SassMeister-input.scss
Created April 16, 2014 09:08
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// Hacking made easy
// ---
// A couple of Sass functions
// To ease the pain of dealing
// With special values for IE
@kazu69
kazu69 / Vagrantfile
Last active August 29, 2015 14:00
mac OSX support Dcoker0.8 width boot2docker-vagrant-box
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "boot2docker-0.8.0"
config.vm.box_url = "https://github.com/mitchellh/boot2docker-vagrant-box/releases/download/v0.8.0/boot2docker_virtualbox.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
end
@kazu69
kazu69 / .travis.yml
Last active August 29, 2015 14:00
Easy setup blogging that uses a github pages and middleman-blog
---
language: ruby
script: bundle exec middleman build
env:
global:
- GIT_COMMITTER_NAME=USERNAME
- GIT_COMMITTER_EMAIL=USERNAME-EMAIL
- GIT_AUTHOR_NAME=USERNAME
- GIT_AUTHOR_EMAIL=USERNAME-EMAIL
@kazu69
kazu69 / Gemfile
Last active August 29, 2015 14:00
dokku
source "https://rubygems.org"
gem 'vagrant', git: "https://github.com/mitchellh/vagrant.git"
group :plugins do
gem 'sahara'
gem 'vagrant-omnibus'
gem 'vagrant-librarian-chef'
gem 'vagrant-hostsupdater'
end
@kazu69
kazu69 / find_git_refs.sh
Last active August 29, 2015 14:02
git initial commit revert
# gitの参照は以下に存在している
tree -L 1 .git/refs
.git/refs
├── heads
├── remotes
├── stash
└── tags
# 例えば現在のmasterのhashは
cat .git/refs/heads/master