View android.sh
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
export PATH="/opt/android-sdk-linux/tools:${PATH}" |
View gist:d10a6c78339ac6a6af9d
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
rsync -auzv -e "ssh -p 2222" ../dir/ user@127.0.0.1:~/dir |
View makigumo_bot.coffee
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
# Description: | |
# 巻雲がしゃべるだけのbot | |
# | |
# Commands: | |
# hubot | |
Cron = require('cron').CronJob | |
JIHOU_MESSAGES = [ | |
"零時、深夜零時ですよぉ?" |
View gist:b499e207a8cd29a9a00f
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
sudo /var/lib/pipework/pipework $BRIDGE_NAME $CONTAINER_ID $IP_ADDR/24 | |
sudo ip addr add $IP_ADDR/24 dev $BRIDGE_NAME |
View install_sdk.sh
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
# install "Android SDK Build-tools, revision 19.1" | |
# filtered by target | |
echo y | android update sdk -u -a -t ${target_name} | |
# target_name can take following values | |
# | |
# tools | |
# platform-tools | |
# build-tools-20.0.0 |
View build.gradle
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
//------------------------------- | |
// load default config file | |
//------------------------------- | |
def default_env_conf_url = file("default.gradle").toURL() | |
def config = new ConfigSlurper().parse(default_env_conf_url) | |
// load environment config file | |
if (hasProperty('env')) { | |
def env_config_url = file("${env}.gradle").toURL() |
View redmine_custom_subject.patch
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
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb | |
index 62c6fbb..2467a66 100644 | |
--- a/app/helpers/application_helper.rb | |
+++ b/app/helpers/application_helper.rb | |
@@ -74,7 +74,12 @@ module ApplicationHelper | |
if options[:subject] == false | |
title = issue.subject.truncate(60) | |
else | |
- subject = issue.subject | |
+ if options[:use_custom_subject] |
View output_json.rb
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
puts c1.to_json(except: [:created_at, :updated_at], include: {items: {except: [:created_at, :updated_at]}}) |
View prepar_apache_app.sh
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
#!/bash/bin | |
if [ $# != 2 ]; then | |
echo "usage: $0 app_name app_port" 1>&2 | |
exit 0 | |
fi | |
app_name=$1 | |
port=$2 |
View prepare_nginx_app.sh
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
#!/bash/bin | |
if [ $# != 2 ]; then | |
echo "usage: $0 app_name app_port" 1>&2 | |
exit 0 | |
fi | |
app_name=$1 | |
port=$2 |