Skip to content

Instantly share code, notes, and snippets.

View naogify's full-sized avatar
🛰️

Naoki Ohashi naogify

🛰️
View GitHub Profile
@naogify
naogify / importSql2vccw.sh
Last active July 28, 2019 06:15
SQLをVCCWにインポートするスクリプトです。インポート元のURLを末尾の / 抜きで引数に指定して下さい。
#!/usr/bin/env bash
set -ex
if [ $# -ne 1 ]; then
echo "指定された引数は$#個です。" 1>&2
echo "実行するには、import元のurlを一つ引数に指定してください。" 1>&2
exit 1
fi
wp --path=/var/www/html/ db import /vagrant/wordpress.sql
wp --path=/var/www/html/ search-replace $1 'http://vccw.test'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naogify
naogify / typescriptreact.json
Created April 22, 2020 12:22
typescriptreact.json
{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Insert typescript component": {
"prefix": "component",
"body": [
"import * as React from \"react\";",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naogify
naogify / README.md
Last active August 13, 2020 01:31
関西飲食店リスト

関西の飲食店のGeojsonリスト

ソース元

OpenStreetMapの関西エリアの飲食店を、

$ osmium tags-filter kansai.osm.pbf nwr/amenity=restaurant,cafe,fast_food -o eatplace-in-kansai.osm.pbfで取得。

詳細記事