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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlueColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS | |
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGmCwwXHR4lVSRudWxs1Q0ODxAR | |
EhMUFRZcTlNDb21wb25lbnRzVU5TUkdCXE5TQ29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29s | |
b3JTcGFjZVYkY2xhc3NPECcwLjQ0MTk5MDg4MjIgMC42NTA5NzU4ODMgMC44MjE3MjM0 |
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 declare(strict_types=1); | |
final class CakePHPSecuritySaltGenerator | |
{ | |
/** | |
* @return string | |
*/ | |
public function generate(): string | |
{ | |
return uniqid(bin2hex(random_bytes(32))); |
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
$ heroku pg:psql | |
--> Connecting to postgresql-nipple-114514 | |
▸ The local psql command could not be located. For help installing psql, see | |
▸ https://devcenter.heroku.com/articles/heroku-postgresql#local-setup |
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 clone https://github.com/ucan-lab/mixed-nuts ./example | |
$ cd example | |
$ npm install |
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
$ sudo yum -y install libXrender libXext |
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 artisan migrate | |
In Connection.php line 664: | |
SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' (SQL: sel | |
ect * from information_schema.tables where table_schema = microposts and table_name = migrations) | |
In MySqlConnector.php line 150: | |
SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' |
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 artisan migrate | |
Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknownto the client (SQL: select * from information_schema.tables where table_schema = blog and table_name = migrations) | |
at /home/vagrant/blog/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 | |
660| // If an exception occurs when attempting to run a query, we'll format the error | |
661| // message to include the bindings with SQL, which will make this exception a | |
662| // lot more helpful to the developer instead of just the database's errors. | |
663| catch (Exception $e) { | |
> 664| throw new QueryException( | |
665| $query, $this->prepareBindings($bindings), $e |
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 clone https://github.com/ucan-lab/vagrant-laravel5 | |
cd vagrant-laravel5 | |
cp Vagrantfile.example Vagrantfile | |
vagrant up |
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
$ vagrant init -m bento/ubuntu-16.04 | |
$ vagrant up | |
$ vagrant ssh | |
$ sudo su - |
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
<form> | |
<button type="submit" class="change-action" data-action="/" data-method="GET">一覧へ</button> | |
<a href="javascript:void(0)" class="change-action" data-action="/update/1" data-method="PUT">更新</a> | |
<button type="submit" class="change-action" data-action="/images" data-method="POST" data-enctype="multipart/form-data">ファイルアップロード</button> | |
<button type="submit" class="change-action" data-action="/images/1" data-method="DELETE">画像削除</button> | |
</form> |
NewerOlder