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 | |
/** | |
* 2014/03/07 author @yasuken1990 | |
* 使い方 | |
* $ php mtb_insert_create.php 引数1 引数2 | |
* 引数1 mtb_* | |
* 引数2 mtb_*.id がtextの場合、適当な文字を入れる a でも b でもなんでもいい | |
* | |
* $ php mtb_insert_create.php mtb_hoge | |
*/ |
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 | |
// homeディレクトリで行ってください | |
echo '1. __FILE__' . PHP_EOL; | |
echo '2. dirname(__FILE__)' . PHP_EOL; | |
echo '3. getcwd()' . PHP_EOL; | |
echo '4. chdir(\'.ssh/\')' . PHP_EOL; | |
echo '5. __FILE__' . PHP_EOL; | |
echo '6. dirname(__FILE__)' . PHP_EOL; | |
echo '7. getcwd()' . PHP_EOL; |
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
curl --dump-header headers -b headers -L | |
// --dump-header headers : add cookie. cookie name is headers | |
// -b : use cookie. cookie name is headers | |
// -L : trace redirect. |
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 | |
// まずは、ドキュメントを読みましょう | |
// http://help.fc2.com/blog/manual/Home/rss.html | |
function getRss() { | |
$rss_url = "http://hogehoge.fc2/?xml"; | |
$rss_data = simplexml_load_file($rss_url,'SimpleXMLElement', LIBXML_NOCDATA); | |
foreach($rss_data as $key => $item) { | |
if ($key == 'channel') { | |
continue; | |
} |
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 | |
namespace Mitsubachi\BookShelf; | |
class Book { | |
/** | |
* ISBN | |
* | |
* @var string |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1T3vkMycnpk4YEszqRSs77Fs3rB/z7i9kXxUfMC984Zq610ocSHJqNtnRzZ+Jp/1fAgkGqjZVnDGwswLuv0sIS27e0K7bKTARTR1aGmU/lQ7472E5RMi9PF9j9UL5+MHMmoQcRD/ZddAqal58y2y6BU7i3/Kx3w8j74fAeZb2uSZFEHz8k+6rDkGtrLgMgKol530dGNBg2mYPgiQ0UNfEwlgJU95S+RuTvjYdNlHnmSv/W8S1k7OKWZxrtTFIwU3f3ISPC1BAHZqN/rgQd6Nq3dlh5h9A7o68btg0AiqPhlfTLOUvRI5JAnInBQdUocJITTDvBvh6ZGVQYHRVpLGmw== root@vagrant-centos65.vagrantup.com |
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> | |
DocumentRoot /[path]/public_keys | |
ServerName pubkey.example.com | |
<Directory "/[path]/public_keys"> | |
Options Indexes FollowSymLinks | |
AllowOverride all | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
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 su | |
// Apache インストール | |
# yum install httpd | |
// Apache 起動、自動起動オン | |
# systemctl start httpd.service | |
# systemctl enable httpd.service | |
// HTTP/HTTPS ウェルウンポート開放 |
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
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.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
<?php | |
// for @onokatio_ | |
// https://twitter.com/onokatio_/status/981875531359518725 | |
$twitterId = '@mona'; | |
$searchWord = 'f'; | |
$findLimit = 13; | |
$twitterIdLength = 16; // @を含むTwitterID最大文字長 | |
$i = 0; |
OlderNewer