Skip to content

Instantly share code, notes, and snippets.

@watakirin
watakirin / h2o.conf
Last active April 19, 2016 16:04
H2O 1.7.0 Settings
user: www-data
listen: 80
listen:
port: 443
ssl:
key-file: /path/to/server.key
certificate-file: /path/to/server.crt
cipher-suite: AES128-SHA:ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:HIGH:MEDIUM:!aNULL:!MD5:!RC4
@watakirin
watakirin / httpd-vhosts.conf
Last active April 19, 2016 15:50
Apache 2.4.16 Settings(2)
Listen 443 https
SSLPassPhraseDialog exec:/path/to/pass-phrase.sh
SSLSessionCache "shmcb:/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
#blog.heartprotocol.comへのhttpアクセスはhttpsへリダイレクト
<VirtualHost *:80>
@watakirin
watakirin / httpd.conf
Created February 16, 2016 16:43
Apache 2.4.16 Settings(1)
ServerRoot "/usr/local"
Listen xxx.xxx.xxx.xxx:80
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
#LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
#LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
#LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
@watakirin
watakirin / httpd.conf
Created February 16, 2016 16:45
Apache 2.4.16 Settings(Excerpt httpd.conf)
# PHP-fpm Settings
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php-fpm.sock|fcgi://127.0.0.1"
</FilesMatch>
@watakirin
watakirin / playback-2009-twitter.css
Last active July 12, 2017 07:59
2009年くらいのTwitterが味わえるユーザーCSS
div[data-retweet-id],
div[data-component-context="suggest_activity_tweet"],
.has-recap {
display:none;
}
@watakirin
watakirin / without_context.css
Last active July 15, 2017 02:07
お前の感性だけでRT/Favする人のためのTwitter向けユーザーCSS
.tweet-context,
.ProfileTweet-action--retweet .ProfileTweet-actionCountForPresentation,
.ProfileTweet-action--favorite .ProfileTweet-actionCountForPresentation
{display:none;}