newer versions of phantomjs can be built on CentOS 5.5 out-of-the-box. refer to the build instructions at http://phantomjs.org/build.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Stack Exchange search box grower 1.0 | |
// @namespace stackoverflow | |
// @description Make Stack Exchange search box grow incrementally | |
// @include http://stackoverflow.com/* | |
// @include http://*.stackoverflow.com/* | |
// @include http://*.stackexchange.com/* | |
// @include http://serverfault.com/* | |
// @include http://superuser.com/* | |
// @include http://stackapps.com/* |
Main discussion: http://meta.japanese.stackexchange.com/questions/726
http://japanese.stackexchange.com/questions/2274/great-websites-for-beginner-reading
- agrimm: - nice question, but bit of a popularity contest
- jkerian: Not answerable. This question should not be allowed as it is purely "What's your favorite website?"
- agrimm: bit too specific
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""pre-commit-pep8.py | |
requirements | |
- pep8==1.3.3 | |
in .git/hooks/pre-commit | |
#!/bin/sh | |
./path/to/this/script/in/your/repo/pre-commit-pep8.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d ' | |
{ | |
"template": "logstash-*", | |
"mappings": { | |
"_default_": { | |
"_source": { "compress": "true" } | |
} | |
} | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# These need to be set. | |
#export EC2_HOME="/path/to/ec2-api-tools" | |
#export AWS_ACCESS_KEY='XXXXXXXXXXXXXXXXXXXX' | |
#export AWS_SECRET_KEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
#export PATH="$PATH:${EC2_HOME}/bin" | |
ami_id='ami-123abc12' | |
availability_zone='eu-west-1a' | |
keypair="[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Stack Exchangeのサイトをさまざまな指標にもとづいたツリーマップで表示します。色分けはサイト一覧上のカテゴリによります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Changelog | |
# 1.00 - Initial version, with code from various other scripts. | |
# 1.01 - Moved authorship announcement to usage section. | |
# Written in 2011 by Paul Durrant | |
# | |
# 1.02 - Added recognition of Apple Fairplay encryption. | |
# Modified in 2015 by Alasdair Allan | |
# |