天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。
- gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.7 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
require "zlib" | |
require "stringio" | |
require "time" # for Time.httpdate | |
require 'rack/utils' | |
module Hardwired | |
class Deflater | |
DEFAULT_CONTENT_TYPES = | |
[ |
/output |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
#!/usr/bin/env python | |
from setuptools.command.easy_install import main as install | |
from pkg_resources import Environment, working_set | |
import sys | |
# From | |
# http://pyinsci.blogspot.com/2007/07/updating-all-your-eggs.html | |
# | |
#Packages managed by setuptools |
#! /usr/bin/env ruby | |
# vim: set et sts=2 sw=2 ts=2 fdm=marker ft=ruby : | |
# author: takano32 <tak@no32 dot tk> | |
# | |
require 'rubygems' | |
require 'pit' | |
# ブラウザの起動とかを見えないようにできるけど、Xvfbとか必要 | |
# Darwinじゃ使えないかもしれない。 |