Skip to content

Instantly share code, notes, and snippets.

debility debility

Block or report user

Report or block debility

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@debility
debility / converter.sh
Last active Aug 29, 2015
apache config converter + secure setting + php secure setting
View converter.sh
#!/bin/sh
CONFIG_FILE="/etc/httpd/conf/httpd.conf"
DATE=`date '+%Y%m%d'`
if [ -f "${CONFIG_FILE}.orig.${DATE}" ]; then
echo '(maybe)apache config file is already converted. :-P'
exit
fi
View gist:1508890
File:
CentOS 5.7 i386 20GB (gzipped -> 649MB)
use File::Copy;
copy($baseImageFileName, $imageFileName);
real 6m34.418s
user 0m0.394s
sys 0m47.059s
@debility
debility / apache_config_converter.sh
Created Jan 4, 2012
apache config converter v0.1.1
View apache_config_converter.sh
#!/bin/sh
CONFIG_FILE="/etc/httpd/conf/httpd.conf"
DATE=`date '+%Y%m%d'`
if [ -f "${CONFIG_FILE}.orig.${DATE}" ]; then
echo '(maybe)apache config file is already converted. :-P'
exit
fi
@debility
debility / gist:1563184
Created Jan 5, 2012
apache config converter + secure setting + php secure setting
View gist:1563184
#!/bin/sh
CONFIG_FILE="/etc/httpd/conf/httpd.conf"
DATE=`date '+%Y%m%d'`
if [ -f "${CONFIG_FILE}.orig.${DATE}" ]; then
echo '(maybe)apache config file is already converted. :-P'
exit
fi
View gist:1768177
*** cli_helper.rb 2012-02-08 20:01:17.520514397 +0900
--- cli_helper.rb.org 2012-02-08 19:49:11.137878140 +0900
***************
*** 62,79 ****
outbuf = stdout.read
errbuf = stderr.read
}
! begin
! GC.disable
! stat = Open4::popen4(cmd, &blk)
@debility
debility / pom.xml.patch
Created Mar 17, 2012
patch for Dspace 1.7.2 + Solr 3.3.0 (DSPACE_SRC/dspace/modules/solr/pom.xml)
View pom.xml.patch
--- pom.xml.orig 2012-03-17 17:34:33.964667039 +0900
+++ pom.xml 2012-03-17 17:40:01.000000000 +0900
@@ -46,7 +46,7 @@
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-solr</artifactId>
- <version>1.4.1.1</version>
+ <version>3.3.0.0</version>
<classifier>skinny</classifier>
<type>war</type>
@debility
debility / gist:3003955
Created Jun 27, 2012
mysqlcf log 20120627
View gist:3003955
MySQL Casual Talks Fukuoka
---
@Spring_MT はじめに
発表すること(内容じゃなくて)をcasualに
情報共有≠事業価値の欠損
---
View gist:3017593
福岡インフラ勉強会
@matsumanaさんのまとめエントリ
http://matsumana.wordpress.com/2012/06/30/%E7%AC%AC3%E5%9B%9E-%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9%E5%8B%89%E5%BC%B7%E4%BC%9A%EF%BC%A0%E7%A6%8F%E5%B2%A1%E3%81%A7lt%E3%81%97%E3%81%A6%E3%81%8D%E3%81%BE%E3%81%97%E3%81%9F/
@matsumana 脱職人芸への道
[資料]http://www.slideshare.net/matsumana0101/vol3-lt-20120629
サーバの設定配布とか同期とか
- 手作業
- rsync
@debility
debility / gist:3910990
Created Oct 18, 2012
mysql 5.5 config at RDS
View gist:3910990
mysql -ufusic -h testdb.xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com -p -e "show variables;" > mysql.params
Variable_name : Value
-----
auto_increment_increment : 1
auto_increment_offset : 1
autocommit : ON
automatic_sp_privileges : ON
back_log : 50
basedir : /rdsdbbin/mysql/
@debility
debility / gist:3911223
Created Oct 18, 2012
mysqlcf2 log 20121018
View gist:3911223
mysqlcf2 log 20121018
MySQL Casual Talks Fukuoka #2
---
@Spring_MT はじめに
発表すること(内容じゃなくて)をcasualに
椅子もまさかりも飛んでこない
情報共有≠事業価値の欠損
You can’t perform that action at this time.