Skip to content

Instantly share code, notes, and snippets.

View masaakif's full-sized avatar

fujiwara-masaaki masaakif

View GitHub Profile
@masaakif
masaakif / openin2chbbsreader.user.js
Last active February 27, 2018 16:10
Open 2ch in 2chbbsreader
// ==UserScript==
// @name Open 2ch in 2chbbsreader
// @namespace http://swdyh.yu.to/
// @description loading next page and inserting into current page.
// @include http://www.google.co.jp/search*
// ==/UserScript==
//
// auther: masaakif
// version: 0.0.1 2009-01-14T09:52:07+09:00
//
@masaakif
masaakif / amazon_add_link.user.js
Last active February 27, 2018 12:10
Amazonに、Open CalilとMediaMarkerとヨドバシ・ドット・コムのリンクを付ける
@masaakif
masaakif / media_maker.user.js
Last active February 27, 2018 12:09
Add Media Maker link on Amazon page
// ==UserScript==
// @name Media Maker
// @namespace http://gist.github.com/2156093
// @description Add item to Media Maker
// @include http://*.amazon.*
// ==/UserScript==
// Version 20100312
var DEBUG=true;
@masaakif
masaakif / mediamarker_improvements.user.js
Last active February 27, 2018 12:07
MediaMarker Improvements
// ==UserScript==
// @name MediaMarker Improvements
// @namespace http://gist.github.com/484213
// @include http://mediamarker.net/*
// ==/UserScript==
//
if (0 < location.href.indexOf("reg?cat=")) clickRegisterBtn();
libsearch();
@masaakif
masaakif / open_by_win_menuitem.vim
Created February 17, 2018 16:11
nerdtree menu plugin to open dir/file by windows file association. : Based from http://gist.github.com/205807
"shove this in ~/.vim/nerdtree_plugin/grep_menuitem.vim
"
" This is nerdtree menu item plugin.
" Add 'o' menu items to open selected dir/file.
" 'o' : (Windows only) open directory/file by file extension association in Windows.
" if directory is selected, open by explorer.
"
" Originally written by scrooloose
" (http://gist.github.com/205807)
@masaakif
masaakif / youtube_hd_suite.user.js
Created June 13, 2014 12:29
YouTube HD Suite clone
// ==UserScript==
// @name YouTube HD Suite
// @namespace http://creazy.net/
// @description Perfect package to enjoy HD videos in YouTube. Always watching or downloading the highest quality format ( 4K / HD 1080p / HD 720p / HQ FLV / MP4 iPod ). Add download icons in video list page.
// @include http://*.youtube.com/*
// @include https://*.youtube.com/*
// @include http://youtube.com/*
// @include https://youtube.com/*
// @exclude http://www.youtube.com/embed/*
// @exclude https://www.youtube.com/embed/*
@masaakif
masaakif / add_favicon_for_2chbbsreader.user.js
Created January 6, 2009 07:29
add_favicon_for_2chbbsreader.user.js
// ==UserScript==
// @name Add favicon for bbs2chreader
// @namespace http://gist.github.com/43714
// @include http://127.0.0.1:8823/thread/http*
// ==/UserScript==
var AddFavicon = {
execute: function() {
var header = document.evaluate("//head/link", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (header) {
@masaakif
masaakif / changewp.rb
Last active December 29, 2015 17:19
CentOSで壁紙を変更するRubyスクリプト
#!/usr/local/rbenv/shims/ruby
require "open3"
def gen_export_dbus
pid = %x[ pgrep -u `whoami` gnome-panel ].chomp
dbus_address = ""
File.read("/proc/#{pid}/environ").split("\0").each do |line|
if /DBUS_SESSION_BUS_ADDRESS/ =~ line
dbus_address = line.split("=")[1..-1].join("=")
@masaakif
masaakif / changewp.sh
Created November 29, 2013 07:56
CentOSで壁紙を変更するシェルスクリプト
#!/bin/bash
function export_variables
{
pid=$(pgrep -u `whoami` gnome-panel )
for dbusenv in $pid; do
DBUS_SESSION_BUS_ADDRESS=$( grep -z DBUS_SESSION_BUS_ADDRESS /proc/$pid/environ | sed -e 's/DBUS_SESSION_BUS_ADDRESS=//' )
data="DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
@masaakif
masaakif / createPerf.rb
Created June 28, 2013 06:26
元データからパフォーマンスレポートを作成するスクリプト
require "rubygems"
require "zipruby"
require "win32ole"
class ExcelUtil
def initialize
@xl = nil
@filename = nil
end