Skip to content

Instantly share code, notes, and snippets.

KEINOS KEINOS

Block or report user

Report or block KEINOS

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@KEINOS
KEINOS / LOG_Vagrant_debug_output_20190311-1657.sh-session
Last active Mar 11, 2019
[LOG] Debug output log of Vagrant cloud search results by user name. Info for the issue https://github.com/hashicorp/vagrant/issues/10723
View LOG_Vagrant_debug_output_20190311-1657.sh-session
$ ######################################################
$ # Env info (macOS Mojave, OSX 10.14.3)
$ ######################################################
$ # Date and time of occurrence
$ date -R
Mon, 11 Mar 2019 16:57:12 +0900
$ # Vagrant version
$ vagrant -v
Vagrant 2.2.4
$ # Host OS
@KEINOS
KEINOS / DEVサーバの起動の仕方
Last active Dec 25, 2018
macOS の PHP で空きポートを取得する(ランダムな未使用ポート検索) ref: https://qiita.com/KEINOS/items/be7b769f64d5f154388f
View DEVサーバの起動の仕方
$ cd /path/to/your/dev/dir
$ ls
index.php
$ dev opera
@KEINOS
KEINOS / LOG_Install_Success-XDebug-20181208.sh-session
Created Dec 8, 2018
[Log] Installding XDebug of PHP on macOS HighSierra
View LOG_Install_Success-XDebug-20181208.sh-session
$ php -v
PHP 7.2.12 (cli) (built: Nov 29 2018 01:59:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.12, Copyright (c) 1999-2018, by Zend Technologies
$
$ which php
/usr/local/Cellar/php/7.2.12_2/bin/php
$
$ brew list | grep php
@KEINOS
KEINOS / LOG_Install_Success_mod_wsgi-20181128-0227.sh-session
Last active Nov 27, 2018
[Log] Installing `pip3 install mod_wsgi`
View LOG_Install_Success_mod_wsgi-20181128-0227.sh-session
$ sudo pip3 install mod_wsgi
Downloading/unpacking mod-wsgi
Downloading mod_wsgi-4.6.5.tar.gz (490kB): 490kB downloaded
Running setup.py (path:/tmp/pip-build-ajb0j1v8/mod-wsgi/setup.py) egg_info for package mod-wsgi
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
warning: no files found matching 'docs/_build/html/_static/*'
warning: no files found matching 'docs/_build/html/_static/css/*'
warning: no files found matching 'docs/_build/html/_static/font/*'
@KEINOS
KEINOS / LOG_Install_Fail_Composer_20180408-0029.sh-session
Last active Oct 16, 2018
[Log] Installing `composer` via YUM on CentOS7 with KUSANAGI @ SakuraVPS
View LOG_Install_Fail_Composer_20180408-0029.sh-session
[root@kusanagiXX ~]# ###########################################################################
[root@kusanagiXX ~]# # Error log while installing `composer` on CentOS7 w/KUSANAGI @ SakuraVPS
[root@kusanagiXX ~]# ###########################################################################
[root@kusanagiXX ~]# # エラー内容
[root@kusanagiXX ~]# # エラー: パッケージ: php-intl-5.4.16-43.el7_4.1.x86_64 (updates)
[root@kusanagiXX ~]# # 要求: php-common(x86-64) = 5.4.16-43.el7_4.1
[root@kusanagiXX ~]# # インストール: php-common-5.6.34-1.el7.remi.x86_64 (@remi-php56)
[root@kusanagiXX ~]# # php-common(x86-64) = 5.6.34-1.el7.remi
[root@kusanagiXX ~]# ###########################################################################
[root@kusanagiXX ~]#
@KEINOS
KEINOS / LOG_Install_LibRTMP_20180624-2037.sh-session
Last active Oct 16, 2018
[Log][FAIL] Installing `librtmp` via HomeBrew on macOS HighSierra.
View LOG_Install_LibRTMP_20180624-2037.sh-session
$ # Fail log while installing LibRTMP via brew on macOS HighSierra.
$ # ------------------------------------------------------------------
$ # TL;DR
$ # 2018/06/24 Still can NOT install them. Provably deprecated.
$ # ------------------------------------------------------------------
$ # Env
$ # ------------------------------------------------------------------
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.5
@KEINOS
KEINOS / LOG_BenchMarkResult_MBP_20180707.sh-session
Last active Oct 16, 2018
[Log] LINPACK Benchmark result of MacBookPro and Mac mini
View LOG_BenchMarkResult_MBP_20180707.sh-session
$ # TL;DR
$ # Performance Summary (GFlops): 28.5376 - 72.4169
$ #
$ # MacBookPro Retina, 13-inch, Early 2015
$ # 2.7GHz, Intel Core i5, MEM 8GB 1867 MHz DDR, Intel Iris Graphics 6100, 1536 MB
$ # macOS High Sierra (OSX 10.13.5)
$ #
$
$ sw_vers
ProductName: Mac OS X
@KEINOS
KEINOS / LOG_Install-Pandoc-CentOS7-YUM_20180722-1833.sh-session
Last active Oct 16, 2018
[Log] Installing `pandoc` to CentOS7 with `yum`
View LOG_Install-Pandoc-CentOS7-YUM_20180722-1833.sh-session
# yum -y install pandoc
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* ius: mirrors.tongji.edu.cn
* updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
@KEINOS
KEINOS / LOG-BootingPulseAudio_20181016.sh-session
Created Oct 16, 2018
[LOG] Error log while launching PulseAudio in Raspbian Jessie
View LOG-BootingPulseAudio_20181016.sh-session
$ pulseaudio
E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="usb-AKAI_MPKmini2_0001-01-MPKmini2" card_name="alsa_card.usb-AKAI_MPKmini2_0001-01-MPKmini2" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
E: [pulseaudio] bluez4-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist
@KEINOS
KEINOS / setUTF8.php
Last active Oct 14, 2018
[PHP] KEINOS の UTF8 日本語環境の徹底設定(よく使うためのメモ)
View setUTF8.php
<?php
function setEnvAsUTF8JaJP($timezone = 'Asia/Tokyo')
{
if (! function_exists('mb_language')) {
die('This application requires mb_language.');
}
date_default_timezone_set($timezone);
setlocale(LC_ALL, 'ja_JP');
You can’t perform that action at this time.