Skip to content

Instantly share code, notes, and snippets.

View yut148's full-sized avatar

yut148

View GitHub Profile
@yut148
yut148 / gist:4554263
Created January 17, 2013 07:05
idcf L8 ( 4CPU / 8GB RAM ) spec
[root@i-1199-21813-VM bin]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Xeon(R) CPU X5675 @ 3.07GHz
stepping : 1
cpu MHz : 3058.999
@yut148
yut148 / gist:4570985
Created January 19, 2013 06:05
WARNINGワロス
352721260 2013-01-19 06:03:58 WARNING: Feature 'ALTER TABLE DISABLE KEYS' is not supported by MemSQL. Execution will continue, but the feature will be ignored.
352721554 2013-01-19 06:03:58 WARNING: Feature 'ALTER TABLE ENABLE KEYS' is not supported by MemSQL. Execution will continue, but the feature will be ignored.
352722318 2013-01-19 06:03:58 WARNING: Feature 'storage engine plugins' is not supported by MemSQL. Execution will continue, but the feature will be ignored.
360973018 2013-01-19 06:04:06 INFO: Table mysql.help_category compiled in 8249 miliseconds (3374 miliseconds for header)
360984443 2013-01-19 06:04:06 INFO: Table mysql.help_category row size 816 bytes (base overhead 32 bytes, column help_category_id 2 bytes, column name 256 bytes, column parent_category_id 4 bytes, column url 512 bytes)
360984502 2013-01-19 06:04:06 INFO: Table mysql.help_category UNIQUE KEY `name` (`name`) USING SKIPLIST per row size 40 bytes
360984995 2013-01-19 06:04:06 WARNING: Feature 'LOCK TABLES .. WRITE / LOCK TA
@yut148
yut148 / gist:4571028
Created January 19, 2013 06:21
memsql/Feature 'Fulltext indexes' is not supported by MemSQL.
Sat Jan 19 06:03:04 UTC 2013
ERROR 1706 (HY000) at line 2162: Feature 'Fulltext indexes' is not supported by MemSQL.
@yut148
yut148 / gist:4593365
Created January 22, 2013 09:40
How to build SRPM tig-0.17-1.el6.src.rpm CentOS release 6.2
yum install xmlto asciidoc git ncurses-devel
wget http://dl.fedoraproject.org/pub/epel/6/SRPMS/tig-0.17-1.el6.src.rpm
rpmbuild -bb /root/rpmbuild/SPECS/tig.spec
@yut148
yut148 / gist:4690276
Created February 1, 2013 09:16
RequiresとBuildRequiresを削除。ImageMagickのバージョンを問わず使えるruby-RMagick。動作は未確認です。
%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
%{!?ruby_abiver: %global ruby_abiver %((echo "1.8"; ruby -rrbconfig -e "puts Config::CONFIG['ruby_version']" 2>/dev/null) | tail -1)}
%define modname RMagick
%define repoid 47971
Name: ruby-%{modname}
Version: 1.15.17
Release: 2%{?dist}
@yut148
yut148 / gist:5075806
Created March 3, 2013 11:52
zabbix-server-1.8.14-1.el6.x86_64.rpm upgrade to zabbix-2.0.5.tar.gz start up script /etc/init.d/zabbix-server
diff zabbix-server zabbix-server.org
18,29c18,28
< #if [ -x /usr/sbin/zabbix_server ]; then
< # ZABBIX=zabbix_server
< #elif [ -x /usr/sbin/zabbix_server_mysql ]; then
< # ZABBIX=zabbix_server_mysql
< #elif [ -x /usr/sbin/zabbix_server_pgsql ]; then
< # ZABBIX=zabbix_server_pgsql
< #elif [ -x /usr/sbin/zabbix_server_sqlite3 ]; then
< # ZABBIX=zabbix_server_sqlite3
@yut148
yut148 / gist:5098241
Created March 6, 2013 10:03
apache css etc. gzip configuration example
<Directory "/var/www/html">
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !\.gz$
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule .+ %{REQUEST_URI}.gz
<files *.html.gz>
AddType "text/html;charset=utf-8" .gz
</files>
@yut148
yut148 / gist:5243974
Created March 26, 2013 08:49
CentOS6.3 use PAM access control /etc/pam.d/sshd
cat /etc/pam.d/sshd
#%PAM-1.0
auth required pam_sepermit.so
auth include password-auth
#追加
account required pam_access.so
account required pam_nologin.so
account include password-auth
password include password-auth
# pam_selinux.so close should be the first session rule
@yut148
yut148 / gist:5397011
Created April 16, 2013 15:42
splunk-5.0.2-149561-linux-2.6-x86_64.rpm install log
[root@localhost src]# rpm -ivh ./splunk-5.0.2-149561-linux-2.6-x86_64.rpm
警告: ./splunk-5.0.2-149561-linux-2.6-x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 653fb112: NOKEY
準備中... ########################################### [100%]
1:splunk ########################################### [100%]
-------------------------------------------------------------------------
Splunk has been installed in:
/opt/splunk
To start Splunk, run the command:
/opt/splunk/bin/splunk start
@yut148
yut148 / gist:5397048
Created April 16, 2013 15:46
Splunk rev. 8. 7. 2012 license
SPLUNK SOFTWARE LICENSE AGREEMENT
THIS SPLUNK SOFTWARE LICENSE AGREEMENT ("AGREEMENT") GOVERNS THE
INSTALLATION AND USE OF THE SPLUNK SOFTWARE DESCRIBED HEREIN. THE
INSTALLATION AND USE OF THE SPLUNK SOFTWARE WILL BE SUBJECT TO THE
ORDER DOCUMENT(S).
YOU WILL BE REQUIRED TO INDICATE YOUR AGREEMENT TO THESE TERMS AND
CONDITIONS IN ORDER TO DOWNLOAD THE SOFTWARE, REGISTER THE SOFTWARE
WITH SPLUNK AND OBTAIN LICENSE KEYS NECESSARY TO COMPLETE THE