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
2003% cap deploy:update_code [development] ~/work/myapp | |
triggering load callbacks | |
* 10:48:08 == Currently executing `testing' | |
triggering start callbacks for `deploy:update_code' | |
* 10:48:08 == Currently executing `multistage:ensure' | |
* 10:48:08 == Currently executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote ssh://git-myapp@DB_HOST_NAME/home/git/myapp.git development" | |
command finished in 211ms | |
* executing "if [ -d /var/www/testing-myapp/shared/cached-copy ]; then cd /var/www/testing-myapp/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard hash_hash_hash && git submodule -q init && for mod in `git submodule status | awk '{ print $2 }'`; do git config -f .git/config submodule.${mod}.url `git config -f .gitmodules --get submodule.${mod}.url` && echo Synced $mod; done && git submodule -q sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5 |
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
Rem Excel Macro to | |
Rem count number of cells which assigned non-default colors | |
Rem ColorIndex for default color is magic number -4142 | |
Rem | |
Rem Reminder: paste this into Worksheet's Module, save as .xls | |
Function CountAnyColor(rng) | |
CountAnyColor = 0 | |
For Each c In rng.Cells | |
If c.Interior.ColorIndex <> -4142 Then |
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
Subject: 混雑時のANA国内特典航空券を確実にGET!特典航空券を一般の人より先に予約出来る秘密とは… | |
★メルマガ解除リンク☆ | |
<<URL>> | |
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓 | |
貯めたマイルは、特典航空券に交換できますが… | |
家族旅行で利用する場合、家族がそろう時期は |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# | |
# Create list of lines of days with day of week | |
# suitable for http://chouseisan.com input | |
# | |
require 'date' | |
day = Date.today |
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
Jul 29 00:44:23 HOST_NAME_HERE mdworker32[5192]: Attempt to add read-only file at path file://localhost/Users/shigeya/Library/Application%20Support/Evernote/accounts/Evernote/shigeyas/Evernote.sql read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption. |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'optparse' | |
require 'nokogiri' | |
require 'zlib' | |
module OmniOutliner | |
class Document < Nokogiri::XML::SAX::Document |
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
「中国で買ったマッサージタオルの注意書き」の文字化 | |
http://lockerz.com/s/165360335 | |
[ALERT ICON] で注意 火災との直接接触しないでください | |
● この製品には、迅速に、汚れを削除 | |
することができますし、お肌の新陳 | |
代謝を促進する皮膚の健康を維持す | |
る |
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
# setup mount point | |
# based on: http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition | |
RPOOL=rpool | |
ROOT=${RPOOL}/root | |
cd / | |
zfs set mountpoint=none ${RPOOL} | |
zfs set mountpoint=legacy ${ROOT} |
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
# Setup zfs root | |
# based on: http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition | |
RPOOL=rpool | |
ROOT=${RPOOL}/root | |
cd / | |
zfs create -o compression=off -o exec=off -o setuid=off ${ROOT}/tmp | |
chmod 1777 /${ROOT}/tmp |
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 defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
Bundler.require *Rails.groups(:assets => %w(development test)) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
end |