Skip to content

Instantly share code, notes, and snippets.

View oieioi's full-sized avatar
🐙
🐙🐙🐙🐙🐙🐙🐙🐙🐙

oieioi

🐙
🐙🐙🐙🐙🐙🐙🐙🐙🐙
View GitHub Profile
@kaosf
kaosf / Gemfile
Last active September 20, 2017 03:29
earthquakeをRuby 2.4.0でインストールして動かすためのGemfile on 2017-02-20
source 'https://rubygems.org'
gem 'earthquake',
git: 'https://github.com/kaosf/earthquake',
branch: 'master'
# SHA1: b845de4c363aa3df7820f049d36aae210969d1d2
gem 'twitter-stream',
git: 'https://github.com/kaosf/twitter-stream',
branch: 'master'
@wakamsha
wakamsha / memo.md
Last active October 11, 2021 01:40
VirtualBox 内のゲスト OS からホスト OS にアクセスしたい

VirtualBox仮想マシンのネットワークはデフォルトでNATとなっている。 VirtualBox の場合、NAT ネットワークアダプタには 10.0.2.0/24 の IP アドレスが割り当てられ、ゲスト OS から見える ホスト OS の IP アドレスには 10.0.2.2 が設定される仕様。

したがってホストOS上に建てたサーバーにゲストOSからアクセスしたい場合は、http://10.0.2.2とアクセスすれば普通に見ることができる。

参考

@no6v
no6v / trace.rb
Created December 28, 2011 22:26
Trace back home or user timeline
# encoding: UTF-8
Earthquake.once do
module TwitterOAuth
class Client
def list_statuses(user, list, **options)
options = URI.encode_www_form(options)
get("/lists/statuses.json?slug=#{list}&owner_screen_name=#{user}&#{options}")
end
end
end