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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>memo; Vue.js created() function in each components isnot syncronized execution.</title> | |
<script | |
src="https://code.jquery.com/jquery-3.4.1.slim.min.js" | |
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" | |
crossorigin="anonymous"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> |
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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
</head> | |
<body> | |
<div id="root"> | |
<input type="date" v-model="today" /> | |
</div> |
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 | |
App::uses('AppController', 'Controller'); | |
class AttachmentController extends AppController | |
{ | |
public $uses = false; | |
public function index() | |
{ | |
if ($this->request->is('ajax')) { |
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
# 1. $ git clone 'https://github.com/kmamiya/serverless-email-send-tool.git' | |
# 2. cd serverless-email-send-tool/bin | |
# 4. Rename or copy from config.json.template | |
# 5. Edit config.json | |
# 6. Download this. | |
# 7. $ python list_diskimage_sample.py config.json | |
# | |
from conoha import ConoHa |
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 myFunction() { | |
var key = 'Consumer Key (API Key)'; | |
var secret = 'Consumer Secret (API Secret)'; | |
var base64_token = Utilities.base64Encode( key + ':' + secret ); | |
var response = UrlFetchApp.fetch( | |
'https://api.twitter.com/oauth2/token', | |
{ | |
'method': 'POST', | |
'contentType': 'application/x-www-form-urlencoded;charset=UTF-8', |
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
// Google提供の「日本の祝日」カレンダーから、今年の分だけを抽出するサンプル。 | |
// | |
// Example; | |
// $ npm install | |
// $ node get_japan_holiday.js | |
// | |
var ICal = require( 'ical' ); | |
var HOLIDAY_CALENDAR_URL = | |
'https://www.google.com/calendar/ical/ja.japanese%23holiday%40group.v.calendar.google.com/public/basic.ics'; |
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
<VirtualHost *:80> | |
ServerName [hostname] | |
DocumentRoot /var/www/wordpress | |
ProxyPassMatch ^(.*\*.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/wordpress/$1 | |
<Directory "/var/www/wordpress"> | |
Options +FollowSymlinks +ExecCGI | |
DirectoryIndex index.html index.php | |
AllowOverride All | |
</Directory> |
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
#!/bin/sh | |
sudo yum install zlib zlib-devel mariadb mariadb-server mariadb-devel gd gd-devel curl curl-devel openssl openssl-devel libxml2 libxml2-devel systemd-devel mcrypt libmcrypt libmcrypt-devel | |
./configure --prefix=/usr/local/php-7.2.3 --sysconfdir=/etc --localstatedir=/var --with-mysqli=/usr/bin/mysql_config --enable-fpm --with-fpm-systemd --enable-mbstring --enable-zip --with-gd --with-zlib --with-curl --with-pdo-mysql --with-jpeg-dir --with-openssl --with-mcrypt | |
make | |
make test | |
# sudo make install | |
# sudo cp -p sapi/fpm/php-fpm.service /etc/systemd/system | |
## Rewrite "${exec_prefix}" to "/usr/local/php-7.2.3/" in /etc/systemd/system/php-fpm.service |
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
# diff /usr/local/php-7.0.1/etc/php-fpm.conf.default /etc/php-fpm/conf | |
81c81 | |
< ;daemonize = yes | |
--- | |
> daemonize = no | |
125c125 | |
< include=/usr/local/php-7.0.1/etc/php-fpm.d/*.conf | |
--- | |
> include=/etc/php-fpm.d/*.conf |
NewerOlder