Skip to content

Instantly share code, notes, and snippets.

@tmknom
tmknom / setup-mac.sh
Created January 15, 2015 09:50
Macの開発環境構築用スクリプト(Homebrewは事前にインストールしておくこと)
export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/usr/local/Caskroom"
# Make sure using latest Homebrew
brew update
# Update already-installed formula
brew upgrade
# Add Repository
brew tap homebrew/versions
@tmknom
tmknom / twpolmake.pl
Created January 15, 2015 09:53
Tripwireのポリシーファイルを最適化するスクリプト:CentOSで自宅サーバー構築( http://centossrv.com/tripwire.shtml )より拝借
#!/usr/bin/perl
# Tripwire Policy File customize tool
# ----------------------------------------------------------------
# Copyright (C) 2003 Hiroaki Izumi
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@tmknom
tmknom / Laravel_IDE.md
Created January 18, 2015 23:05
Laravel IDE補完 メモ

composer.json に追記

"require": {
        "laravel/framework": "4.2.*",
        "barryvdh/laravel-ide-helper": "1.*",
        ...
},
@tmknom
tmknom / Vagrantfile
Created December 31, 2015 07:38
Rails環境を一発で立ち上げるVagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-6.7"
config.vm.hostname = 'rails-vagrant'
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.provision :shell, inline: <<-EOT
# 各種モジュールのインストール
# git settings
source ~/Documents/.git-prompt.sh
source ~/Documents/.git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUPSTREAM=auto
export PS1='\[\033[32m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
@tmknom
tmknom / fabfile.py
Created January 17, 2015 07:11
超速でCentOS6.6(さくらのVPS)をセキュアにセットアップするFabricスクリプト
# -*- encoding:utf-8 -*-
#
# CentOSをセキュアにセットアップするFabricスクリプト
#
# This software is released under the MIT License, see LICENSE.txt.
#####################################################################
from fabric.api import env, run, sudo, put
from fabric.colors import green
from fabric.decorators import task
@tmknom
tmknom / fabfile.py
Last active September 27, 2020 00:28
CentOSをセキュアにセットアップするFabricスクリプト(暫定版:http://nekopunch.hatenablog.com/entry/2015/01/16/112402
# -*- encoding:utf-8 -*-
#
# CentOSをセキュアにセットアップするFabricスクリプト
#
# 前提条件 : Fabricインストール済/SSHの公開鍵作成済
# 実行方法 : fab deploy
# 検証環境 : CentOS6.6 (さくらのVPS 標準OSインストール)
#####################################################################
from fabric.api import env, run, sudo, put