Skip to content

Instantly share code, notes, and snippets.

Takumi Kinjo kinjo

  • Japan
Block or report user

Report or block kinjo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kinjo
kinjo / ubuntu-base
Last active Aug 29, 2015
My favorite packages.
View ubuntu-base
# test
linux-headers-generic
build-essential
bzr
curl
cvs
dnsutils
git
lv
manpages
@kinjo
kinjo / Vagrantfile
Last active Aug 29, 2015
Vagrantfile for my base Box
View Vagrantfile
# -*- 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@kinjo
kinjo / Dockerfile
Last active Jul 8, 2019
Dockerfile for Apache2
View Dockerfile
FROM ubuntu:latest
MAINTAINER Takumi Kinjo
RUN apt-get update
RUN apt-get check
RUN apt-get dist-upgrade -y
RUN apt-get install -y apache2
# See http://www.kstaken.com/blog/2013/07/06/how-to-run-apache-under-docker/
@kinjo
kinjo / .gitignore
Last active Aug 29, 2015
Vagrantfile for Docker on Ubuntu 14.04 in OkinawaDevOps
@kinjo
kinjo / outlinefill.pl
Last active Jan 2, 2016
Fill the columns of a outline text.
View outlinefill.pl
#!/usr/bin/env perl
# outlinefill.pl <outline indent chars> <output delimiter>
@b = ();
while (<STDIN>) {
chomp;
@a = split /$ARGV[0]/, $_;
@b = () if ($#a < $#b);
@kinjo
kinjo / myrc
Created Oct 31, 2012
My favorite shell functions.
View myrc
# . <(curl -L http://goo.gl/pdDKD)
# e.g.: jked /etc/hosts:3:
function jked {
file=`echo "$@" | sed 's/[:]/ /g' | awk '{print $1}'`
n=`echo "$@" | sed 's/[:]/ /g' | awk '{print $2}'`
if echo "$n" | grep '^[0-9]*$'; then
vi "$file" +"$n"
else
vi "$file"
@kinjo
kinjo / .gitignore
Last active Aug 29, 2019
my favorite elisps
@kinjo
kinjo / deporc
Last active Apr 9, 2016
depo tool
View deporc
#!/bin/zsh
# Make a directory to store the depo.
#
# mkdir ~/depo
# cd ~/depo
#
# If you use Zsh, type below to define the utility functions.
#
# . <(curl -L http://goo.gl/mhGoq)
@kinjo
kinjo / README
Created Sep 29, 2012
Register users and memberships to Redmine
View README
Register users and memberships to Redmine.
@kinjo
kinjo / startup.sh
Created Jun 3, 2012
startup script for my rails app dev
View startup.sh
#!/usr/bin/env bash
# tested on ubuntu12.04 server
# this cannot perform on lion. lion's ed command does not have 'y' command.
# rails new my-app
# cd my-app
# bash < <(curl -s https://raw.github.com/gist/2862788/ed729517cc94c3c3aee44bdbec1f3039184d5181/startup.sh)
git init
You can’t perform that action at this time.