This file contains hidden or 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
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; |
This file contains hidden or 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
# Simple SimpleNote client library | |
# Erik Kastner 2010-07-18 | |
require 'rubygems' | |
require 'rest_client' | |
require 'base64' | |
require 'json' | |
class SimpleNote | |
def initialize(email, password) |
This file contains hidden or 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
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#! /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' |