Skip to content

Instantly share code, notes, and snippets.

@yoshimov
yoshimov / ChangeHikariPhoneParameter
Created June 14, 2013 03:30
Script source for Google Apps Script Service for changing Hikari Phone parameters.
// Script-as-app template.
function doGet(e) {
var ret, num;
if (e != null) {
num = e.parameter.num;
} else {
num = "5";
}
if (!hikariLogin()) {
@yoshimov
yoshimov / first-chocolatey.ps1
Created October 2, 2012 07:39
auto install script for initial setup at home.
# @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://raw.github.com/gist/3817081/first-chocolatey.ps1'))"
# install Chocolatey
iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall'))
# basic
cinst vlc
cinst 7zip
cinst pdfcreator
cinst keepass
cinst git
cinst ccleaner
@yoshimov
yoshimov / siteinit.l
Last active October 10, 2015 21:38
siteinit.l for xyzzy
;; Save this file as siteinit.l in site-lisp folder.
;; Re-dump it with Ctrl+Shift+Click xyzzy.
; キーバインドの変更
(global-set-key '(#\C-x #\u) 'undo)
;; [ツール]-[共通設定]-[さまざま]のクリップボード同期
;(global-set-key '(#\M-w) 'copy-region-to-clipboard)
;(global-set-key '(#\C-w) 'kill-region-to-clipboard)
;(global-set-key '(#\C-y) 'paste-from-clipboard)
(global-set-key '(#\C-x #\j) 'goto-line)
@yoshimov
yoshimov / gist:2146576
Created March 21, 2012 12:21
Bookmarklet to create QR code for current page.
javascript:(function(){var l=window.location.href;void(window.open('https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl='+l,'_blank'));})()
@yoshimov
yoshimov / netbootcd-4.6.cfg
Created October 28, 2011 03:12
netbootcd-4.6
# NetbootCD
# http://netbootcd.tuxfamily.org/
ISOFILE=NetbootCD-4.6.iso
BASEURL=http://downloads.tuxfamily.org/netbootcd/4.6/NetbootCD-4.6.iso
SUM=31491178bfa9c97e93152bde39759941
VER=4.6
#install
prepareiso $ISOFILE $BASEURL
@yoshimov
yoshimov / share url on google plus.js
Created October 12, 2011 01:26
share url on google plus
CmdUtils.CreateCommand({
names: ["share url on plus", "share url on google plus", "plus url"],
description: "Share URL on Google+.",
help: "Just execute this command on the page which you want to share.",
author: {
name: "NOMURA Yoshihide",
email: "nomura@pobox.com",
homepage: "http://yoshimov.com/",
},
license: "GPL",
@yoshimov
yoshimov / Office_readonly.vbs
Created September 30, 2011 09:05
Windows Script to open Office files with read only.
Dim strFileName, strExt
Dim objApp
'Check arguments
If WScript.Arguments.Count <> 1 Then WScript.Quit
'get file name
strFileName = WScript.Arguments(0)
strExt = LCase(Right(strFileName, 4))
CmdUtils.CreateCommand({
names: ["search with sparks", "sparks"],
description: "Search news from Google Sparks.",
help: "Select text and execute this command.",
author: {
name: "NOMURA Yoshihide",
email: "nomura@pobox.com",
homepage: "http://yoshimov.com/",
},
license: "GPL",
CmdUtils.makeBookmarkletCommand({
names: ["add google plus button", "plus google plus"],
description: "Add Google+ button on any web page.",
help: "Just execute command on the web page.",
author: {
name: "NOMURA Yoshihide",
email: "nomura@pobox.com",
homepage: "http://yoshimov.com/",
},
license: "GPL",
@yoshimov
yoshimov / gist:930319
Created April 20, 2011 04:08
conver as wiki link
CmdUtils.CreateCommand({
names: ["convert as wiki"],
description: "Convert current url into wiki enabled link.",
help: "Open the target url and execute covert as wiki command.",
author: {
name: "Yoshimov",
email: "yoshimov@pobox.com",
homepage: "http://yoshimov.com/",
},
license: "GPL",