- 近藤うちお
- 著書に、以下があります
- やわらかHubot https://gist.github.com/udzura/0cb2447c305c51670414
- 更新
2023-10-04
- 作者
@voluntas
- バージョン
2023.2
- URL
- 更新
2024-04-08
- 作者
@voluntas
- バージョン
2024.1
- URL
概要
もう皆すっかり忘れてると思うんだけど、2009年ごろに特定の検索エンジン(具体的にはGoogleね)が、 URLの中にURLが入ってるようなのを一律検索結果から除外するといったことがあった。
既存のURLをパラメータとして受け取って、際限なくコンテンツ生成するようなものは、Googleの検索結果から除外されることになった。 (キャッシュとか変換とか翻訳とかそういうのは自主的にrobots.txtやmetaタグで検索結果から除外されるようにすべきだと思う)
ソーシャルブックマークの場合は、単に変換したり翻訳したりしているわけではなく、付加的な情報があるわけだけど そんなことをわざわざGoogleが特別扱いはしなかった。単にURLの中にURLが入ってるものは除外された。
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 | |
release=5.6 | |
version=5.6.10 | |
revision=1 | |
os=el6 | |
arch=x86_64 | |
extension=rpm | |
prefix="http://cdn.mysql.com/Downloads/MySQL-${release}/MySQL" |
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
/* balloon | |
=balloon-left($size: 6px, $color: #FFF, $top: 6px) | |
position: relative | |
&:after | |
position: absolute | |
content: "" | |
display: block | |
border: $size solid transparent | |
border-right: $size solid $color | |
top: $top |
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 | |
$im = new Imagick('CMYK.jpg'); | |
$cs = $im->getImageColorspace(); | |
if ($cs !== Imagick::COLORSPACE_RGB && $cs !== Imagick::COLORSPACE_SRGB) { | |
$icc = null; | |
try { | |
$icc = $im->getImageProfile('icc'); | |
} catch (ImagickException $e) { | |
if ($cs === Imagick::COLORSPACE_CMYK) { | |
$icc = file_get_contents('JapanColor2001Coated.icc'); |
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 | |
set_include_path($_SERVER['HOME'].'/dev/zendframework_zf2/library/'); | |
require_once 'Zend/Loader/StandardAutoloader.php'; | |
$loader = new Zend\Loader\StandardAutoloader; | |
$loader->registerNamespace('Hasty', $_SERVER['HOME'].'/dev/padraic_hasty/src/Hasty'); | |
$loader->registerNamespace('Symfony', $_SERVER['HOME'].'/dev/symfony_symfony/src/Symfony'); | |
$loader->registerNamespace('Guzzle', $_SERVER['HOME'].'/dev/guzzle_guzzle/src/Guzzle'); | |
$loader->registerNamespace('React', $_SERVER['HOME'].'/dev/react-php_react/src/React'); | |
$loader->register(); |
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
--- innobackupex-1.5.1.org 2010-12-09 23:03:09.000000000 +0900 | |
+++ innobackupex-1.5.1 2011-01-07 01:28:20.000000000 +0900 | |
@@ -1333,10 +1333,19 @@ | |
print FILE "CHANGE MASTER TO MASTER_LOG_FILE='$filename', MASTER_LOG_POS=$position\n"; | |
close(FILE); | |
+ my $orig_datadir = get_option(\%config, 'mysqld', 'datadir'); | |
+ | |
if ($option_stream eq 'tar') { | |
+ system("cd $orig_datadir; tar chf - master.info") |
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
http://d.hatena.ne.jp/hasegawayosuke/20110106/p1 | |
SetEnvIf User-Agent ".*MSIE.*" ie | |
Header always append X-Content-Type-Options nosniff env=ie |
NewerOlder