Skip to content

Instantly share code, notes, and snippets.

@watakirin
watakirin / without_context.css
Last active Jul 15, 2017
お前の感性だけでRT/Favする人のためのTwitter向けユーザーCSS
View without_context.css
.tweet-context,
.ProfileTweet-action--retweet .ProfileTweet-actionCountForPresentation,
.ProfileTweet-action--favorite .ProfileTweet-actionCountForPresentation
{display:none;}
@watakirin
watakirin / playback-2009-twitter.css
Last active Jul 12, 2017
2009年くらいのTwitterが味わえるユーザーCSS
View playback-2009-twitter.css
div[data-retweet-id],
div[data-component-context="suggest_activity_tweet"],
.has-recap {
display:none;
}
@watakirin
watakirin / httpd.conf
Created Feb 16, 2016
Apache 2.4.16 Settings(Excerpt httpd.conf)
View httpd.conf
# PHP-fpm Settings
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php-fpm.sock|fcgi://127.0.0.1"
</FilesMatch>
@watakirin
watakirin / httpd.conf
Created Feb 16, 2016
Apache 2.4.16 Settings(1)
View httpd.conf
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-vhosts.conf
Last active Apr 19, 2016
Apache 2.4.16 Settings(2)
View httpd-vhosts.conf
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 / h2o.conf
Last active Apr 19, 2016
H2O 1.7.0 Settings
View h2o.conf
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