Skip to content

Instantly share code, notes, and snippets.

View yut148's full-sized avatar

yut148

View GitHub Profile
@yut148
yut148 / gist:5397059
Created April 16, 2013 15:48
install splank
Do you agree with this license? [y/n]: y
This appears to be your first time running this version of Splunk.
Copying '/opt/splunk/etc/openldap/ldap.conf.default' to '/opt/splunk/etc/openldap/ldap.conf'.
Generating RSA private key, 1024 bit long modulus
....++++++
.......................................................++++++
e is 65537 (0x10001)
writing RSA key
@yut148
yut148 / gist:5424496
Created April 20, 2013 02:36
ruby on rails success !! rpm -qi centos-release Name : centos-release Relocations: (not relocatable) Version : 6 Vendor: CentOS Release : 4.el6.centos.10 Build Date: 2013年02月25日 17時57分43秒 Install Date: 2013年04月20日 05時11分26秒 Build Host: c6b8.bsys.dev.centos.org Group : System Environment/Base Source RPM: centos-release-6-4.el6.centos.10.src.rpm S…
actionmailer (3.2.13, 3.1.12)
actionpack (3.2.13, 3.1.12)
activemodel (3.2.13, 3.1.12)
activerecord (3.2.13, 3.1.12)
activeresource (3.2.13, 3.1.12)
activesupport (3.2.13, 3.1.12)
arel (3.0.2, 2.2.3)
builder (3.0.4)
bundler (1.3.5)
coffee-rails (3.1.1)
@yut148
yut148 / gist:5540877
Created May 8, 2013 14:35
nginx 1.4.0 official rpm build configure. Adding spdy --with-http_spdy_module
./configure \
--prefix=%{_sysconfdir}/nginx \
--sbin-path=%{_sbindir}/nginx \
--conf-path=%{_sysconfdir}/nginx/nginx.conf \
--error-log-path=%{_localstatedir}/log/nginx/error.log \
--http-log-path=%{_localstatedir}/log/nginx/access.log \
--pid-path=%{_localstatedir}/run/nginx.pid \
--lock-path=%{_localstatedir}/run/nginx.lock \
--http-client-body-temp-path=%{_localstatedir}/cache/nginx/client_temp \
--http-proxy-temp-path=%{_localstatedir}/cache/nginx/proxy_temp \
fs = require 'fs'
path = require 'path'
app = require('http').createServer (req, res) ->
res.writeHead 200, 'Content-Type': 'text/html'
res.end fs.readFileSync (path.resolve 'public', 'index.html'), 'utf-8'
app.listen 3000
require('socket.io').listen(app).on 'connection', (socket) ->
@yut148
yut148 / gist:7972352
Created December 15, 2013 12:24
RubyMotion 2.17 update
root# motion update
Connecting to the server...
Downloading software update...
######################################################################## 100.0%
Installing software update...
/Library/RubyMotion/lib/motion/project/command/update.rb:108: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Software update installed.
= RubyMotion 2.17 =
@yut148
yut148 / gist:8731307
Created January 31, 2014 12:35
ruby-2.0.0-p247.tar.gz rpmbuild error openssl-1.0.1e-16.el6_5.4.x86_64 openssl-devel-1.0.1e-16.el6_5.4.x86_64 centos6.5
ossl_pkey_ec.c: In function 'ossl_ec_group_initialize':
ossl_pkey_ec.c:766: warning: implicit declaration of function 'EC_GF2m_simple_method'
ossl_pkey_ec.c:766: warning: assignment makes pointer from integer without a cast
ossl_pkey_ec.c:821: error: 'EC_GROUP_new_curve_GF2m' undeclared (first use in this function)
ossl_pkey_ec.c:821: error: (Each undeclared identifier is reported only once
ossl_pkey_ec.c:821: error: for each function it appears in.)
make[2]: *** [ossl_pkey_ec.o] Error 1
make[2]: Leaving directory `/root/rpm/BUILD/ruby-2.0.0-p247/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: Leaving directory `/root/rpm/BUILD/ruby-2.0.0-p247'

#Ruby on Railsとわたし 2年ほど前よりrailsの理解を進める上で、企業向けtwitterクライアントの必要性を感じ個人的にwebアプリが作成できればと取り組んでおりました。
昨年夏頃より会社での個人目標にうっかり採用してしまいました。
結果形にならず、保留としています。
今年中にはわずかな機能でも使える様にしたいと思っています。
    #Github とあなたについて ほぼほぼ使っていないです。
もっぱらGistをpastebinの様に使っています。

@yut148
yut148 / gist:9020743
Created February 15, 2014 15:25
Sending Push Notifications using curl
curl -X POST \
-H "X-Parse-Application-Id: yourParseApplicationId" \
-H "X-Parse-REST-API-Key: yourParseRESTAPIKey" \
-H "Content-Type: application/json" \
-d '{
"where": {
"channels": {
"$in": [""]
},
"deviceType": "ios"
@yut148
yut148 / gist:11321459
Created April 26, 2014 14:25
install failed
pear install Archive_Zip
Failed to download pear/Archive_Zip within preferred state "stable", latest release is version 0.1.2, stability "beta", use "channel://pear.php.net/Archive_Zip-0.1.2" to install
install failed
[root@localhost ~]# pear install archive_zip-beta
WARNING: "pear/Archive_Zip" is deprecated in favor of "pecl/zip"
downloading Archive_Zip-0.1.2.tgz ...
Starting to download Archive_Zip-0.1.2.tgz (19,213 bytes)
......done: 19,213 bytes
install ok: channel://pear.php.net/Archive_Zip-0.1.2
[root@localhost ~]# pear list
@yut148
yut148 / gist:807de7acec057076ff6e
Created May 3, 2014 15:32
couchbase-server-community_2.2.0_x86_64.rpm
[root@localhost ~]# rpm -ivh couchbase-server-community_2.2.0_x86_64.rpm
準備中... ########################################### [100%]
Minimum RAM required : 4 GB
System RAM configured : 1020348 kB
Minimum number of processors required : 4 cores
Number of processors on the system : 1 cores
1:couchbase-server ########################################### [100%]
Starting couchbase-server[ OK ]