Skip to content

Instantly share code, notes, and snippets.

View ento's full-sized avatar

ento

View GitHub Profile
@ento
ento / se-better-search-animation.user.js
Created August 10, 2011 17:27 — forked from NickCraver/se-disable-search-animation.user.js
Stack Exchange search box animation disabler
// ==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/*
@ento
ento / getting-phantomjs-working-on-centos55.md
Last active September 26, 2015 18:47 — forked from niteria/getting-phantomjs-working-on-centos55.txt
Building phantomjs on CentOS 5.5
@ento
ento / gist:3888966
Created October 14, 2012 15:43 — forked from jkerian/gist:2305769
Comments on some of the resource questions in JL&U
#!/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
@ento
ento / gist:5234873
Last active December 15, 2015 08:59 — forked from drawks/gist:1556276
Enable _source compression in elasticsearch
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d '
{
"template": "logstash-*",
"mappings": {
"_default_": {
"_source": { "compress": "true" }
}
}
}'
#!/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]"
@ento
ento / 0_reuse_code.js
Created February 16, 2014 06:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ento
ento / README.md
Last active December 31, 2015 02:43 — forked from mbostock/.block
Treemap of Stack Exchange Sites

Stack Exchangeのサイトをさまざまな指標にもとづいたツリーマップで表示します。色分けはサイト一覧上のカテゴリによります。

@ento
ento / drmcheck.py
Last active May 11, 2021 05:33 — forked from aallan/drmcheck.py
Python script to check encryption status of various types of ebook formats.
#!/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
#