Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

find . -type f -name '*.jpg' -exec mogrify -resize 1600x1600 {} \;
find . -type f -name '*.jpg' -exec jpegoptim -m90 -s {} \;  
@nishim
nishim / xdebug2to3.md
Last active November 24, 2022 06:45
Xdebug2用のphp.iniだとXdebug3.0でエラーが出たので修正したメモ

これを

[xdebug]
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=host.docker.internal
xdebug.remote_port=9200
xdebug.remote_log=/tmp/xdebug.log
@nishim
nishim / gulpfile.js
Created June 10, 2018 15:34
gulp/ejs/scss
'use strict';
const gulp = require('gulp')
const sass = require('gulp-sass')
const autoprefixer = require('gulp-autoprefixer')
const ejs = require('gulp-ejs')
const rename = require('gulp-rename')
set autoread
set number
set incsearch
set hlsearch
"set nowrap
set ffs=unix,dos,mac
set encoding=utf-8
" set noswapfile
authorityKeyIdentifier = critical, keyid, issuer
basicConstraints = critical, CA:FALSE
keyUsage = critical, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = example.com
DNS.2 = www.example.com
[ req ]
default_bits = 4096
default_md = sha512
prompt = no
encrypt_key = no
distinguished_name = req_distinguished_name
[ req_distinguished_name ]
countryName = "JP"
commonName = "example.com"
[ req ]
default_bits = 4096
default_md = sha512
prompt = no
encrypt_key = no
distinguished_name = req_distinguished_name
x509_extensions = v3_ca
[ req_distinguished_name ]
countryName = "JP"

jq -r '.results[] | .geometry | .location[]' | tr '\n' '\t'