Skip to content

Instantly share code, notes, and snippets.

View rrreeeyyy's full-sized avatar
😣
confounded

Ryota Yoshikawa rrreeeyyy

😣
confounded
View GitHub Profile
@yuuki
yuuki / sre-related-conferences-list.md
Last active April 20, 2024 09:24
The collection of Site Reliability Engineering(SRE)-related international academic conferences.
@willnet
willnet / be_a_rails_contributer.md
Last active August 21, 2023 05:44
Railsコントリビュータへの道

これはなに

  • Railsにプルリクストを送るときに知っておくと便利なお作法集
  • Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針

お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。

前提知識

Railsのコードを読むには、最低限次の二つの知識があったほうがよいです

describe 'cron on log' do
describe cron do
def self.expect_to_have_tempwatch_entry_of(dir, deletes_before: 24 * 30 * 1)
it {
should have_entry("0 3 * * * /usr/sbin/tmpwatch -m #{deletes_before} -d #{dir}")
.with_user('root')
}
end
expect_to_have_tempwatch_entry_of "/data/log/foo", deletes_before: 24 * 30 * 1
@mjuarez
mjuarez / gist:66b8fa60664d06449a6b
Created June 1, 2015 18:48
Velocity Conf 2015 Notes

Velocity Conf 2015

Day 1

Bootstrapping an Ops Team - Charity Majors (Parse)

Operations - anything pertaining to maintaining and implementing systems at scale

Do you really need an ops team?

@imjasonh
imjasonh / markdown.css
Last active February 12, 2024 17:18
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@coolaj86
coolaj86 / github-pages-https-lets-encrypt.md
Last active November 16, 2021 22:36
Github Pages: Let's Encrypt!
tiny-nghttpd: port 8082
trusterd : port 8081
[matsumotory@ubuntu14-04-64:/usr/local/trusterd/htdocs]$ h2load -c 500 -m 100 -n 2000000 http://127.0.0.1:8082/index.html
starting benchmark...
spawning thread #0: 500 concurrent clients, 2000000 total requests
progress: 10% done
progress: 20% done

atom-shellとNode-Webkitとの技術的な違い

Node-Webkitのように、atom-shwllはJavaScriptとHTMLでデスクトップアプリケーションを書くダメのプラットフォームを提供します。そしてシステムのローレベルな権限へのアクセスも可能です。

しかしながら、そこには根本的な違いがあって、atom-shellはNode-Webkitとは完全に別なプロダクトになっています。

1. Entry of application

Node-WebkitはアプリケーションのエントリポイントがWebページで、package.jsonにメインページを指定します。そしてそれがアプリケーションのメインウィンドウとしてブラウザで開かれます。

@rrreeeyyy
rrreeeyyy / ipvs_http_api.rb
Created June 17, 2014 17:50
IPVS Web API using mruby-ipvs and mruby-simplehttpserver.
services = {}
def body_parser(body)
params = {}
body.split('&').each do |x|
tokens = x.split('=', 2)
if tokens && tokens.size == 2
params[tokens[0]] = HTTP::URL::decode(tokens[1])
end
end
@ympbyc
ympbyc / FunctionalJs.md
Last active April 26, 2023 12:26
Functional JavaScript

Functional JavaScript

2013 Minori Yamashita ympby@gmail.com

-- ここにあなたの名前を追記 --

目次