An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Demo |
This script fetchs and returns following data from My SoftBank(マイソフトバンク).
You must create/have the account for My SoftBank to use it.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
# https://github.com/mitchellh/vagrant-aws/issues/28 | |
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true | |
config.vm.provider :aws do |aws| | |
aws.access_key_id = "<REDACTED>" |
ということで、GitHub上にホストしてるOctopress用リポジトリ harupong/harupong.github.io 専用の公開鍵認証を設定してみた。
$ /bin/bash makepdfs ja | |
Will generate pdf for the following languages: | |
ja | |
The generation process will start now. | |
ja: | |
Parsing markdown... done | |
Creating main.tex for ja... Exception `Errno::EEXIST' at /usr/lib/ruby/1 .9.1/fileutils.rb:247 - File exists - /home/vagrant/projects/progit-ja/latex/ja | |
done | |
Running XeTeX: |
# coding: utf-8 | |
# based on http://pgnote.net/?p=1842 | |
require 'mail' | |
attachment = ARGV.shift | |
Mail.defaults do | |
delivery_method :smtp, { | |
:address => "<Server-Address>", |