This file contains hidden or 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
type Register<TOTAL, CARRY> = [TOTAL, CARRY]; | |
type AddToRegister< | |
R extends Register<string, string>, | |
A extends string, | |
B extends string | |
> = A extends `1` | |
? B extends `1` | |
? R[1] extends `1` | |
? Register<`1${R[0]}`, `1`> |
This file contains hidden or 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
#oops |
This file contains hidden or 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
#!/usr/bin/perl -w | |
# Movable Type (r) (C) 2001-2020 Six Apart Ltd. All Rights Reserved. | |
# This code cannot be redistributed without permission from www.sixapart.com. | |
# For more information, consult your Movable Type license. | |
# | |
# $Id$ | |
use strict; | |
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib'; |
This file contains hidden or 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
use Image::Magick; 1; |
This file contains hidden or 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
./main ./mysql.so | |
init:-2 | |
./main | |
init:0 | |
LD_PRELOAD="/usr/lib64/libz.so.1" ./main ./mysql.so | |
init:0 | |
LD_PRELOAD="/usr/lib64/mysql/libmysqlclient.so.18" ./main ./mysql.so | |
init:0 |
This file contains hidden or 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
perl -MDBD::mysql -MCompress::Raw::Zlib -E 'say new Compress::Raw::Zlib::Inflate' | |
stream error | |
perl -MCompress::Raw::Zlib -MDBD::mysql -E 'say new Compress::Raw::Zlib::Inflate' | |
Compress::Raw::Zlib::inflateStream=SCALAR(0xdc9698) |
This file contains hidden or 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
perl -MDBD::mysql -MImage::Magick -E 'say Image::Magick->new()->Read("/test.png") || "OK"' | |
Exception 425: corrupt image `/test.png' @ error/png.c/ReadPNGImage/3789 | |
perl -MImage::Magick -MDBD::mysql -E 'say Image::Magick->new()->Read("/test.png") || "OK"' | |
OK |
This file contains hidden or 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
FROM centos:7 | |
RUN set -ex \ | |
\ | |
&& yum localinstall -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm \ | |
&& yum install -y gcc make \ | |
mysql-community-libs-compat mysql-community-devel \ | |
perl-DBD-MySQL perl-Compress-Raw-Zlib ImageMagick-perl \ | |
zlib-devel |
This file contains hidden or 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($){ | |
$.extend(MT.Editor.TinyMCE.config, { | |
valid_children: '+a[address|blockquote|div|dl|fieldset|form|h1|h2|h3|h4|h5|h6|hr|menu|ol|p|pre|table|ul]', | |
}); | |
})(jQuery); |
This file contains hidden or 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($){ | |
$.extend(MT.Editor.TinyMCE.config, { | |
forced_root_block: false, | |
valid_children: '+a[address|blockquote|div|dl|fieldset|form|h1|h2|h3|h4|h5|h6|hr|menu|ol|p|pre|table|ul]', | |
}); | |
})(jQuery); |