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
| // ==UserScript== | |
| // @name gist.user.js | |
| // @namespace http://github.com/hotchpotch | |
| // @description install greasemonkey (user.js) | |
| // @include http://gist.github.com/* | |
| // @include https://gist.github.com/* | |
| // ==/UserScript== | |
| (function() { | |
| $X('id("files")//div[@class="info"]/span').forEach(function(e) { |
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
| @if(0)==(0) ECHO OFF | |
| CScript //NoLogo //E:JScript "%~f0" %* | |
| GOTO :EOF | |
| @end | |
| var COLUMN_INFOs = { | |
| k: { | |
| drive: { width: 5, align: "left" }, | |
| type: { width: 4, align: "left" }, | |
| total: { width: 14, align: "right" }, |
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/env ruby | |
| def sudo str | |
| system "sudo sh -c \"#{str}\"" | |
| end | |
| # USB の自動サスペンド | |
| sudo "echo 1 > /sys/bus/usb/devices/usb1/power/autosuspend" | |
| sudo "echo 1 > /sys/bus/usb/devices/usb2/power/autosuspend" | |
| sudo "echo 1 > /sys/bus/usb/devices/usb3/power/autosuspend" | |
| # WiFi の省電力設定 |
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(){ | |
| var size='z'; | |
| var h=window.location.href; | |
| var f='http://api.flickr.com/services/rest/?method=flickr.urls.lookupuser&api_key=76e0f69b613dbf2ecbd8647ab5de11da&format=json&nojsoncallback=1&url='; | |
| var x=new XMLHttpRequest(); | |
| x.open("GET", f+h, false); | |
| x.send(null); | |
| var r=JSON.parse(x.responseText); | |
| var i=r.user.id; | |
| var b='http://flickr2tag.drikin.com/?query='+i+'&size='+size; |
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/env ruby | |
| puts "🐹 < #{ ARGV.empty? ? ARGF.read : ARGV.join(' ') }" |
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
| *~ | |
| /local/ | |
| /perl | |
| /prove | |
| /plackup | |
| /Makefile.setupenv | |
| /cin | |
| /config/perl/libs.txt | |
| /config/ | |
| /modules/ |
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
| // Simple $X | |
| // Thx! $X from http://coderepos.org/share/browser/lang/javascript/userscripts/jautopagerize.user.js | |
| // http://subtech.g.hatena.ne.jp/cho45/20071114/1195017746 | |
| function $X (exp, context) { | |
| context || (context = document); | |
| var exp = (context.ownerDocument || context).createExpression(exp, function (prefix) { | |
| return (document.createNSResolver((context.ownerDocument == null | |
| ? context : context.ownerDocument).documentElement) | |
| .lookupNamespaceURI(prefix) || document.documentElement.namespaceURI); | |
| }); |
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
| // ==UserScript== | |
| // @name replace star by profile icon | |
| // @namespace http://ss-o.net/ | |
| // @description replace star by profile icon (for Firefox3) | |
| // @include http://*.hatena.ne.jp/* | |
| // @version 1.3 | |
| // ==/UserScript== | |
| location.href = 'javascript:(' + function(){ | |
| var COLOR = true; |
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/env python | |
| # coding: utf-8 | |
| import pprint | |
| pp = pprint.PrettyPrinter(indent=4) | |
| pprint = pp.pprint | |
| import os | |
| import datetime | |
| import sys | |
| import urllib |
OlderNewer