Skip to content

Instantly share code, notes, and snippets.

View yuyalush's full-sized avatar

Yuya Yoshida yuyalush

View GitHub Profile
@yuyalush
yuyalush / simplenote.js
Created January 29, 2012 14:53 — forked from kirel/simplenote.js
SimpleNote API via node.js
var request = require('request'),
querystring = require('querystring');
var Note = function(key){
this.key = key;
}
Note.prototype = new process.EventEmitter();
var SimpleNote = function(email, passwd){
this.email = email;
@yuyalush
yuyalush / r.rb
Created January 29, 2012 14:53 — forked from kastner/r.rb
# Simple SimpleNote client library
# Erik Kastner 2010-07-18
require 'rubygems'
require 'rest_client'
require 'base64'
require 'json'
class SimpleNote
def initialize(email, password)
@yuyalush
yuyalush / rvm2rbenv.txt
Created January 22, 2012 21:41 — forked from brentertz/rvm2rbenv.txt
Switch from RVM to RBENV
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
@yuyalush
yuyalush / startup.sh
Created October 29, 2011 10:50 — forked from kaz29/startup.sh
CakePHP2.0.0 setup on NiftyCloud CentOS5.6 plain startup script
#!/bin/sh
# CakePHP2.0 setup script
# Only for CentOS 5.6 64bit Plain
/bin/cat <<EOF >> /etc/rc.d/rc.local
curl https://raw.github.com/gist/1284739/2fbed6559815413523cda708d99eb18f9926428a/cakephp2_on_nifyucloud_centos5_6.sh | sh | tee /root/_setup.log
/bin/sed -i.orig -e "s/curl/#curl/g" /etc/rc.d/rc.local
/bin/sed -i.orig -e "s/\/bin\/sed/#\/bin\/sed/g" /etc/rc.d/rc.local
EOF
#! /usr/bin/env ruby
# NIFTY Cloud API - DescribeInstances
# Author:: Kei HAMANAKA <kei.hamanaka (at) gmail.com>
# License:: Distributes under the same terms as Ruby
require 'uri'
require 'time'
require 'net/https'
require 'cgi'
require 'openssl'