git gc
関連の設定のメモ。
git help config
で確認できる。見出しの値はデフォルト。
When there are approximately more than this many loose objects in the repository, git gc --auto will pack them.
<?php | |
/** | |
* MD5 based htpasswd entry generator | |
* | |
* Original: https://stackoverflow.com/questions/2994637/how-to-edit-htpasswd-using-php/8786956#8786956 | |
* Spec: https://httpd.apache.org/docs/2.4/misc/password_encryptions.html | |
* | |
* | |
* random_compat is required if you are using PHP < 7.0. |
/** | |
* var d = new DateTime(2017, 3, 21, 19, 0, 0, 'JST'); | |
* d.setTimezone('PST'); | |
* console.log(d.format()); | |
*/ | |
var DateTime = (function () { | |
// Constructor | |
var DateTime = function(year, month, date, hour, min, sec, tz) { | |
month = month - 1; |
#! /usr/bin/env ruby | |
require 'open-uri' | |
unless File.exist?('sat5000.html') | |
open('http://www.freevocabulary.com/') do |io| | |
open('sat5000.html', 'w') do |out| | |
out.puts(io.read) | |
end | |
end |
source 'https://rubygems.org' | |
gem 'rwordnet' |
aa Afar | |
ab Abkhazian | |
af Afrikaans | |
ak Akan | |
sq Albanian | |
am Amharic | |
ar Arabic | |
an Aragonese | |
hy Armenian | |
as Assamese |
http://www.google.com | http://www.github.com |
---|
This is configuration of vagrant-layout plugin. Based on php layout.
Nginx proxy_ignore_headers Set-Cookie;
cache Cookies. The directive has irrelevant name, when using with Set-Cookie
header. 💀
php: | |
image: "php:5.6.5-fpm" | |
volumes: | |
- .:/usr/share/nginx/html | |
web: | |
image: "nginx:1.7.9" | |
ports: | |
- "8080:8080" | |
links: | |
- php |
php: | |
image: "php:5.6.5-fpm" | |
volumes: | |
- .:/usr/share/nginx/html | |
web: | |
image: "nginx:1.7.9" | |
ports: | |
- "80:80" | |
links: | |
- php |