Skip to content

Instantly share code, notes, and snippets.

View gongo's full-sized avatar
🍕
Thanks Driven Development

Wataru MIYAGUNI gongo

🍕
Thanks Driven Development
View GitHub Profile
@gromin
gromin / gist:3082623
Created July 10, 2012 10:46
How to use various remote selenium drivers with Cucumber
# This should be placed inside features/support/env.rb
# So we could specify at command prompt desired remote address and browser, e.g.:
# be cucumber REMOTE=true REMOTE_BROWSER=ie REMOTE_ADDR=192.168.1.1
# But there are some peculiarities which should be further investigated:
# * chrome needs chromedriver executable
# * opera loses focus and no further execution possible
# * it's impossible to attach a file to remote browser in file-handling scenarios
#!/bin/sh
#
# スナップショット一覧から AMI と紐付いていないスナップショットの ID を取得する
#
set -e
# Set environment
SNAPSHOT_LIST="snapshots.list"
@cvmat
cvmat / url-with-https-via-proxy.el
Last active December 21, 2015 04:38
An advice that enables url.el to connect a server with the HTTPS protocol via a HTTP proxy.
;;
;; If the OpenSSL executable is compiled with the patch in
;; http://rt.openssl.org/Ticket/Display.html?id=2651&user=guest&pass=guest ,
;; the executable can connect a server via a HTTP proxy.
;; With the below code, the url.el library may connect a server with
;; the HTTPS protocol via a HTTP proxy.
;;
;;
;; Register a proxy for the "https" scheme from the environment
@jasonm23
jasonm23 / powerline.el
Created June 17, 2012 18:03
Powerline fancy statusline
;;; mainline.el --- modeline replacement forked from powerline.el
;; Author: Jason Milkins
;; Version: 1.0.2
;; Keywords: statusline / modeline
;;; Changelog:
;; 1.0.1 : added additional xpm shape chamfer14, adjusted chamfer xpm.
;; : mainline-color1, mainline-color2, mainline-arrow-shape
@ailispaw
ailispaw / minimal-docker-hosts.md
Last active November 15, 2019 01:08
メモ:Docker ホスト用軽量 OS の比較
Barge OS RancherOS Boot2Docker
Release 2019/06/11 2019/08/22 2019/11/14
Version 2.13.0 1.5.4 19.03.5
Size 14 MB 130 MB 57 MB
Kernel 4.14.125 4.14.138 4.14.154
User Land Buildroot(glibc) + BusyBox v1.30.1 Buildroot(glibc) + BusyBox v1.27.2 Tiny Core Linux v10.1(glibc) + BusyBox v1.29.3
Docker 1.10.3 (*1) 18.09.8 (*1) 19.03.5
Storage Driver overlay / overlay2 (*2) overlay2 (*3) overlay2 (*3)
TLS (*4)
@tompng
tompng / block_quine.rb
Last active December 8, 2019 07:34
ブロック崩しQuine 左右キーかadキーで移動 spaceで一時停止 ファイルに保存するとその状態から再開できるよ
s=%w(ABCDEFGHIJKMNOQRSUWXYZ0123456789 "`^' acegmnopqrsuwxyz)########################################
b='';d=->c{(w=s.find{|a|a[c]})&&(b+=(w.size+w.index(c)).to_s(2)[1..-1])};%(#########################
B^"`^^```^""NB^"`^^```^""NBS4K2DANGSGDJXANGWGDJDBYUS4I2OENGWGDJD""'`"^"'""'J"`^"`^^`"`^DJ"`^"`^^`"`^
D mqwgmqwa anawoqom NOGGS24NNUZ6YX1BJAWC2IUKE21CCKJFFYZWQM wsereues Z pnaxmxex aomoeooo
C 3MDN7SQJ 2BCEA37Q IBEG24XQOOX082HI6X0QZ51B7HW8WUIE7JYQZ4 ME7JSE6W M RO7GG835 N77U0Y5W
F BDZ6UK1K OMZGQU5K O5WSFIME7JYGE34HOJ1Q525RO7SQ54HD2RGKFI UJE6XYJ4 D Q6FDEMXX KNM0GWW9
M 6YH4448A 2YH4Z24R Y3UY9MDM27Y0G3IRYXUY9JDM27Y0G3IRZBZ60U 8O6YH4J4 8 OYDDYZS4 A27FNGSG
D `"""'"` xa "'"'"'" 1JIRYUZ65M7E7QWS13IRYZSE1SCMI9G8KCDM3Xg ``""``" 9 ``^^'`` en `^`"^^`
7F NQSGcsooosasp444WQ3FHY7U4A2OH443IRY3Z6DU4C7FZ0Y5HHI3U0 S21 RZOY G
B xuwpxew "8H3IN27BQW45KOXXY04DA71U8W4RD6YA8GWRM2FE0D5KA27FNW^ psaycsa Y roryxma '" pmswrmz
@YungSang
YungSang / patch.model.tumblr.post.tbrl.js
Last active February 6, 2021 05:33
[Deprecated] Taberareloo 用パッチ: Tumblr のポストの仕様変更に対応させる。 *Taberareloo v3.0.7 で対応されました。と思ったら、完全版では無かったので、再度有効化。v3.0.9 で対応。
// ==Taberareloo==
// {
// "name" : "Fix Post to Tumblr"
// , "description" : "Follow the latest change to post to Tumblr"
// , "include" : ["background"]
// , "version" : "0.2.6"
// , "downloadURL" : "https://gist.github.com/YungSang/7920406/raw/patch.model.tumblr.post.tbrl.js"
// }
// ==/Taberareloo==

2013 年の新卒研修メニュー

Rails Tutorial

目的

  • 2013 年にモダンな方法で一通り Web アプリケーションを自分一人で作れるようになってもらう
  • 作る過程で Web 開発で必要とされるアプリケーションレイヤのスキルセットを身につけてもらう

教科書

@hashrock
hashrock / vuejs.md
Last active October 5, 2023 23:42
Vue.js資料まとめ(古いので注意)

#まず見るべき

以下のURLは、常に更新されているコンテンツです。

@kitak
kitak / doc.md
Last active October 18, 2023 09:57
コマンドによる「負荷」の原因切り分け

コマンドによる「負荷」の原因切り分け

この文章では、Linuxコマンド、sar, top, psを使って、一般的に負荷といわれるものの原因を切り分けることを目的とする。

そもそも負荷とは

「複数のタスクによるサーバリソースの奪い合いの結果に生じる待ち時間」を一言で表した言葉。OSのチューニングとは負荷の原因を知り、それを取り除くことにほかならない。

ボトルネックの見極め作業の大まかな流れ

  • ロードアベレージ(処理を実行したくても、実行できなくて待たされているプロセス(CPUの実行権限が与えられるのを待っている、またはディスクI/Oが完了するのを待っている)の数)を見る