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
//javascript: | |
(function(){ | |
/* ここからtopbar関連 */ | |
$(".topics").remove(); | |
//$("div[role='search']").remove(); | |
//$(".topbar-divider").remove(); | |
$("div[role='complementary']").remove(); | |
/* ここまでtopbar関連 */ | |
// $("#doc .topbar").remove(); |
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
cat /etc/nginx/logs/access.log | tail | perl -le 'while(<>){ chomp; my @r = m/(\[.*?\]|".*?"|\S+)/g; if($r[5] ne "200"){ print $_; } }' |
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
#! /usr/bin/env ruby | |
require 'pp' | |
require 'cgi' | |
require 'twitter' | |
require 'io/console' | |
class Hash | |
def store(key, val) | |
self[key] = val |
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
#! /usr/bin/env ruby | |
# vim:fileencoding=UTF-8:et:sts=2:ts=2:sw=2 | |
require 'open-uri' | |
require 'net/http' | |
require 'nokogiri' | |
def nokogiri_parse(uri) | |
Nokogiri::HTML::parse *open(uri){|fp| | |
[fp.read, nil, fp.charset] |
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
/*javascript:*/(function(){$(".open div[data-card-type='photo'] .cards-base a").each(function(){ window.open($(this).attr("data-resolved-url-large"), "_blank", { }); });})(); |
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
/*javascript:*/ | |
(function(){ | |
(function loop(elems){ | |
if(elems.length < 1){ | |
return; | |
} | |
$(elems.pop()).click(); | |
while($("#fs-prompt .button_labels").get().length < 1); | |
alert("hoge"); | |
loop(elems); |
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
//javascript: | |
(function(f,s){s=document.createElement("script");s.src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js";s.onload=function(){f(jQuery.noConflict(true))};document.body.appendChild(s)})(function($){$("span:contains('広告の表示について')").parent("div").parent("td").parent("tr").parent("tbody").parent("table").parent("div").remove()}) |
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
#! /usr/bin/ruby | |
# vim:fileencoding=UTF-8 | |
module MineSweeper | |
class InvalidBoardSizeError < StandardError | |
end | |
class TooMuchMinesError < StandardError | |
end |
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
#! /usr/bin/python | |
# vim:fileencoding=utf8 | |
import sys | |
import re | |
import json | |
import subprocess | |
import pyquery | |
import pprint |
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
(function(url){ | |
var elem = document.createElement("script"); | |
elem.setAttribute("type", "text/javascript"); | |
elem.setAttribute('src', url); | |
document.body.appendChild(elem); | |
})("http://hoge.foo/bar.js"); |
OlderNewer