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
@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
@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

2013 年の新卒研修メニュー

Rails Tutorial

目的

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

教科書

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

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

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

そもそも負荷とは

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

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

  • ロードアベレージ(処理を実行したくても、実行できなくて待たされているプロセス(CPUの実行権限が与えられるのを待っている、またはディスクI/Oが完了するのを待っている)の数)を見る
@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==
@branneman
branneman / better-nodejs-require-paths.md
Last active April 27, 2024 04:16
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

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

#まず見るべき

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

@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)
#!/bin/sh
#
# スナップショット一覧から AMI と紐付いていないスナップショットの ID を取得する
#
set -e
# Set environment
SNAPSHOT_LIST="snapshots.list"