% mysql -uroot -proot -hlocalhost -S/Users/********/Library/Application\ Support/Local/run/*********/mysql/mysqld.sock local < local.sql
View functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false', 1 ); |
View git-rm.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
$ git rm $(git ls-files --deleted) | |
``` |
View local-sql-command.md
View Brewfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
brew "brotli" | |
brew "libpng" | |
brew "openssl@1.1" | |
brew "autoconf" |
View example-dashboard-video-widget-function.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function example_dashboard_video_widget_function() { | |
ob_start(); | |
?> | |
<div class="example-dashboard-video"> | |
<iframe width="560" height="315" src="https://www.youtube.com/embed/◯◯◯◯◯◯◯" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | |
</div> | |
<p>もっと詳しい操作方法は<a href="" target="blank" rel="noopener noreferrer">こちらのリンク先の解説</a>をご覧ください。</p> | |
<style> | |
.example-dashboard-video { | |
position: relative; // 外枠に設定 |
View move-mobilesync.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 本来のバックアップファイルの所在 '/Users/{{ユーザー名}}/Library/Application Support/MobileSync' | |
# 移動先 '/Volumes/{{外部SSD名}}/iphone-bk/Backup' | |
$ ln -s "/Volumes/{{外部SSD名}}/iphone-bk/Backup" "/Users/{{ユーザー名}}/Library/Application Support/MobileSync" |
View l2d-sample-custom-block-styles.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: L2D Sample Custom Block Styles | |
* Plugin URI: https://gist.github.com/lunaluna/580f577259cfbe9e7ee1c32438c3aa90 | |
* Description: Sample custom block style plugin for Mitaka - Kichijyoji WordPress Meetup 2020/05/02 | |
* Author: Hiroki Saiki | |
* Author URI: https://lunalunadesign.net/ | |
* Version: 1.0.0 | |
* License: GPL2+ | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt |
View functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*********************************/ | |
/* | |
/* bodyタグ開始直後にコードを挿入 | |
/* | |
/*********************************/ | |
add_action( 'wp_body_open', function() { | |
?> | |
<?php // 挿入したいコードの例 ?> | |
<noscript> |
View basic-oauth.md
ユーザー名がメアドだった場合(あるいはパスワードに
ユーザー名とパスワードを一緒に入力してアクセス
https://{{user}}:{{password}}@example.com/
ユーザー名がメアドだった場合(あるいはパスワードに @
が含まれていた場合)
@
をURLエンコード( %40
)する
View ie10-hack.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media all and (-ms-high-contrast:none){ | |
.foo { color: green } /* IE10 */ | |
} |
NewerOlder