This file contains hidden or 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
@v=('分かる','それな'); | |
print@v[rand @v],"\n"while<STDIN>; |
This file contains hidden or 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
if grep -i SELINUX=Enforcing /etc/selinux/config > /dev/null; then | |
sudo sed -i s/SELINUX=Enforcing/SELINUX=Permissive/i /etc/selinux/config | |
fi | |
if [ "$(/usr/sbin/getenforce)" != 'Permissive' ]; then | |
sudo /usr/sbin/setenforce 0 | |
fi |
This file contains hidden or 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
カゴカド | |
カゴカワ | |
カゴカン | |
カゴドド | |
カゴドワ | |
カゴドン | |
カゴワド | |
カゴワワ | |
カゴワン | |
カドカゴ |
This file contains hidden or 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
cd /usr/local/src | |
curl -O http://nodejs.org/dist/v0.12.3/node-v0.12.3-linux-x64.tar.gz > /dev/null | |
tar zxvf node-v0.12.3-linux-x64.tar.gz | |
mv node-v0.12.3-linux-x64 node | |
ln -s /usr/local/src/node/bin/* /usr/local/bin |
This file contains hidden or 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
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs | |
RESET="\e[0m" | |
GREEN="\e[0;32m" |
This file contains hidden or 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
# Description: | |
# Let hubot track your co-workers' honor points | |
# | |
# Configuration: | |
# HUBOT_SCOREKEEPER_MENTION_PREFIX | |
# HUBOT_SCOREKEEPER_MENTION_SUFFIX | |
# | |
# Commands: | |
# <name>++ - Increment <name>'s point | |
# <name>-- - Decrement <name>'s point |
This file contains hidden or 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
(function(){var s=getSelection().toString();window.location='tweetbot:///post?text='+encodeURIComponent((!!s?'"'+s+'" / ':'Now Browsing: ')+document.title+' '+window.location);})(); |
This file contains hidden or 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
#compdef cap | |
# ------------------------------------------------------------------------------ | |
# Description | |
# ----------- | |
# | |
# Completion script for Capistrano (http://capistranorb.com/). | |
# | |
# ------------------------------------------------------------------------------ | |
# Authors | |
# ------- |
This file contains hidden or 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 'capistrano/git' | |
class Capistrano::Git | |
module SubDirectoryStrategy | |
include DefaultStrategy | |
def release | |
git :archive, fetch(:branch), fetch(:project_root), '| tar -x -C', release_path, "--strip=#{fetch(:project_root).count('/')+1}" | |
end | |
end |
This file contains hidden or 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
def scope_to_factory(scope) | |
class_name = scope.first.class.name | |
class_underscore_name = class_name.underscore.gsub('/', '_') | |
f = File.new("#{Rails.root}/spec/factories/#{class_underscore_name}.rb", 'w') | |
f.puts "# coding: utf-8" | |
f.puts "# Read about factories at https://github.com/thoughtbot/factory_girl" | |
f.puts "" | |
f.puts "FactoryGirl.define do" | |
f.puts " factory :#{class_underscore_name}, class: \"#{class_name}\" do" | |
scope.each do |record| |