This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
quotepath = false | |
[alias] | |
st = status | |
ci = commit -a | |
co = checkout | |
up = pull --rebase | |
lg = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d' | |
lo = log --graph --all --color --pretty='%x09%h %ad %cn%x09%s %Cred%d' --date=short | |
ls = ls-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
die() { | |
echo "$1" 1>&2 | |
exit 1 | |
} | |
usage() { | |
die "Usage: $(basename $0) [-o outfile] <tree-ish> [<path>...]" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
die() { | |
echo "$@" 1>&2 | |
exit 1 | |
} | |
usage() { | |
die "Usage: $(basename $0) <from> [<to>]" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'serialport' | |
class Fplug | |
DEFAULT_PORT = '/dev/tty.fplug' | |
REQ_TEMPLATE = [0x10, 0x81, 0x00, 0x00, 0x0e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x62, 0x01, 0x00, 0x00] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rackup | |
# encoding: utf-8 | |
# This file can be used to start Padrino, | |
# just execute it from the command line. | |
require File.expand_path("../config/boot.rb", __FILE__) | |
# Bower components を /assets/* で参照できるようにする | |
if File.exists?('.bowerrc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_erd/diagram/graphviz' | |
module RailsERD | |
class Diagram | |
module GraphvizFontFix | |
# font name to PostScript name table | |
FONTNAMES = { | |
'Arial' => 'ArialMT', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
die() { | |
echo "$1" 1>&2 | |
exit 1 | |
} | |
usage() { | |
die "Usage: $(basename $0) [-s] [-u USER] CONTAINER" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sshd | |
# | |
# VERSION 0.0.1 | |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
RUN echo "root:foobar" | chpasswd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sshd+nginx | |
# | |
# VERSION 0.0.1 | |
FROM ubuntu | |
RUN apt-get update | |
# sshd | |
RUN apt-get install -y openssh-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# swift | |
# | |
# VERSION 0.0.1 | |
FROM ubuntu:15.10 | |
MAINTAINER gnue | |
RUN apt-get update \ | |
&& apt-get install -y curl libedit-dev libicu-dev libpython2.7 \ | |
&& apt-get clean |
OlderNewer