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
# Gitサーバーのパス。 | |
$projectroot = "/Users/kikaigyo/git"; | |
# tmpのパス。 | |
$git_temp = "/tmp"; | |
# target of the home link on top of all pages | |
#$home_link = $my_uri || "/"; | |
# html text to include at home page |
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
#!/bin/bash | |
# This script checks the available inactive memory. | |
# Memory is purged if the available number of MB is | |
# greater than the following "msize" variable. Attach | |
# this script to launchd to run it periodically. | |
msize=1200 | |
MM=`vm_stat | awk '/Pages\ inactive\:/ {print int($3/256)}'` |
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
#!/bin/bash | |
# This script checks the available inactive memory. | |
# Memory is purged if the available number of MB is | |
# greater than the following "msize" variable. Attach | |
# this script to launchd to run it periodically. | |
msize=1200 | |
MM=`vm_stat | awk '/Pages\ inactive\:/ {print int($3/256)}'` |
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
--disk usage | |
(* 10.6までは5〜10秒。10.7以降は20〜25秒 *) | |
do shell script "du -sx / &> /dev/null & sleep 25 && kill $!" | |
delay 2 | |
--Finderを再起動 | |
do shell script "killall Finder" | |
--Menubarを再起動 | |
do shell script "killall SystemUIServer" |
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
(*起動中のアプリを全て終了するが、メニューバー常駐のは含まれない*) | |
tell application "System Events" to set quitapps to name of every application process whose visible is true and name is not "Finder" | |
repeat with closeall in quitapps | |
quit application closeall | |
end repeat |
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
on run {input, parameters} | |
(* Your script goes here *) | |
tell application "Finder" | |
set theinput to item 1 of input as alias | |
set theInfo to info for theinput | |
set theName to name of theInfo | |
set inpath to "\"" & (POSIX path of ¬ | |
(theinput)) & "\"" | |
choose folder with prompt "Choose Destination Folder" | |
set outpath to "\"" & (POSIX path of ¬ |
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
#Web検索 | |
open "https://www.google.co.jp/search?hl=ja&qscrl=1&q=$@" | |
open "http://www.google.com/search?q=$(cat | ruby -e 'require "cgi"; print CGI.escape($<.read.chomp)')" | |
# news検索 | |
open "https://google.co.jp/search?hl=ja&gl=jp&tbm=nws&q=$@" | |
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
#!/bin/sh | |
# This script opens the Finder's "Get Info" window | |
# for the file or folder specified as a command-line argument. | |
# http://tukaikta.blog135.fc2.com/blog-entry-240.html | |
scriptname=`basename $0` | |
if [ $# -lt 1 ]; then | |
echo "Usage: $scriptname file_or_folder" | |
exit |
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 hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file, as long the original | |
# URL is included. See below for acknowledgements. | |
# Please forward any additions, corrections or comments by email to | |
# [email protected] | |
# Last updated: Nov 30th, 2012 at 00:01 |
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 hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file, as long the original | |
# URL is included. See below for acknowledgements. | |
# Please forward any additions, corrections or comments by email to | |
# [email protected] | |
# Last updated: Nov 30th, 2012 at 00:01 |