Skip to content

Instantly share code, notes, and snippets.

/usr/bin/ld: liblv5.a(os_dep.c.o): シンボル '_end' への未定義参照です
/usr/bin/ld: 注: '_end' は DSO /lib64/libbz2.so.1 内で定義されているのでリンカのコマンドラインに追加してみてください
/lib64/libbz2.so.1: could not read symbols: 無効な操作です
collect2: エラー: ld はステータス 1 で終了しました
make[2]: *** [iv/lv5/lv5] エラー 1
make[1]: *** [iv/lv5/CMakeFiles/lv5.dir/all] エラー 2
make: *** [all] エラー 2
~/src/iv
office@schroeder[1-10175] $gcc --version
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
@t-ashula
t-ashula / index.html
Last active August 29, 2015 13:56
node-phantom infinite loop issue
<!doctype html>
<html>
<head>
<meta charset="euc-jp"/>
</head>
<body>
<script src="utf8.js"></script>
</body>
</html>
function socialbutton_hatena(target, options, defaults, index, max_index)
{
var layout = options.layout || options.button || defaults.button;
var url = options.url || defaults.url;
var title = options.title || defaults.title;
url = htmlspecialchars(url);
title = htmlspecialchars(title);
$(function(){
if (location.href.indexOf('https') < 0 && location.href.indexOf('-dev') < 0 && location.href.indexOf('local') < 0) {
location.href = location.href.replace('http://', 'https://');
return;
}
})
@t-ashula
t-ashula / initialized.js
Created January 1, 2014 05:21
phantomjs-node set('onInitialized') crash PhantomJS
var phantom = require('phantom');
phantom.create(function (ph) {
ph.createPage(function (page) {
page.set('onInitialized', function () {});
page.open('about:blank', function () {
console.log('onOpen');
page.evaluate(function () {
return document.URL;
}, function (r) {
@t-ashula
t-ashula / package.json
Created December 31, 2013 15:35
node-phantom, phantom.js crash.
{
"name": "node-phantom-test",
"version": "0.0.1",
"private": true,
"dependencies": {
"node-phantom": "~0.2.5",
"phantomjs": "~1.9.2-6"
}
}
@t-ashula
t-ashula / IE11
Last active January 1, 2016 12:39
location='about:blank'; console.log(navigator.userAgent); console.log(Object.keys(window).sort());
"Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDS; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; rv:11.0) like Gecko"
["$","$$","__BROWSERTOOLS_CONSOLE","__BROWSERTOOLS_CONSOLE_BREAKMODE_FUNC","__BROWSERTOOLS_CONSOLE_SAFEFUNC","__BROWSERTOOLS_DOMEXPLORER_ADDED","cd","console","dir","select"]
@t-ashula
t-ashula / gpass.js
Created October 28, 2013 05:03
中間ページとばす
// ==UserScript==
// @name g
// @namespace http://ashula.info
// @description gunosy.com/g
// @include http://gunosy.com/g/*
// ==/UserScript==
(function() {
// articles-show-click
window.addEventListener('DOMContentLoaded', function(){
<object width="400" height="200" id="SWFObjectExprInst" type="application/x-shockwave-flash" data="expressInstall.swf">
<param name="flashvars" value="MMplayerType=PlugIn&MMdoctitle=a&MMredirectURL=javascript:alert(location)">
</object>
#videoInformationWrapper{ display: none !important; }