Skip to content

Instantly share code, notes, and snippets.

Sunitha Sunitha

Block or report user

Report or block Sunitha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Sunitha / gist:844a5c8f5cf7435bf9a908ee35242610
Created Oct 27, 2016
a userscript to navigate to another URL which has a better text on
View gist:844a5c8f5cf7435bf9a908ee35242610
var href = location.href;
var mt = href.match(/https:\/\/\/intent\/tweet?.*.text=(.*).related=.url=(.*).via=/);
if (mt) {
var text = mt[1];
var url = mt[2];
var new_url = "*&text=" + text + "&url=" + url;
location.href = new_url;
Sunitha / gist:9425626
Last active Aug 29, 2015
Userscript server for IE in stead Trixie or IE7pro.
View gist:9425626
# -*- coding: utf-8 -*-
require "win32ole"
require "rkelly"
require "kconv"
# put the directory that you please.
# if not, the directory where the script is will be searched for as it looks.
class UserScriptRunner
Sunitha / gist:6713946
Created Sep 26, 2013
@todeskingさんのautohotkeyの半角/全角キーの扱いを変更。 本家はこっち=>
View gist:6713946
; 1段目
VKF4::Send,{``} ; 半角/全角 -> `
+VKF4::Send,{~} ; Shift + 半角/全角 -> ~
; なんかよくわからないけどこうしたらうまくった
vkF4sc029::Send {``}
+vkF4sc029::Send {~}
vkF3sc029::Send {``}
+vkF3sc029::Send {~}
Sunitha / gist:6577089
Last active Dec 23, 2015
configuration to add command to open a url in a background tab on vimperator vimperatorでバックグラウンドタブでurlを開くコマンドを追加
View gist:6577089
javascript <<EOM
commands.add(["backgroundtabopen", "bt[open]", "btabnew"],
"Open one or more URLs in a new background tab",
function (args) {
let index = tabs.getTab();
let special = args.bang;
args = args.string;
if (options.get("activate").has("all", "tabopen"))
special = !special;
Sunitha / gist:6484849
Last active Dec 22, 2015
an autohotokey script to operate your windows vim-likely.
View gist:6484849
; vim-like key-bind
vk20sc039 & h:: Send, {Left}
vk20sc039 & l:: Send, {Right}
vk20sc039 & k:: Send, {Up}
vk20sc039 & j:: Send, {Down}
vk20sc039 & z:: Send, #d
vk20sc039 & vk20sc039 :: Send, {Space}
vk20sc039 & i:: Send, {F2}{Home}
vk20sc039 & a:: Send, {F2}{End}
vk20sc039 & y:: Send, ^{c}
Sunitha / xls_printer.rb
Created Jan 31, 2011
Print all Excel files
View xls_printer.rb
#! ruby -Ks
require 'win32ole'
# usage
# ruby xls_printer.rb (対象ディレクトリ:省略時はカレントディレクトリを対象にする)
module DirectoryDigger
def getAbsolutePath(filename)
@fso ='Scripting.FileSystemObject')
return @fso.GetAbsolutePathName(filename)
We couldn’t find that file to show.
You can’t perform that action at this time.