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
#!bin/bash | |
last_cmd_arg="$_" | |
if [ "$last_cmd_arg" = '/bin/sh' ]; then | |
zenity --error --title='エラー' --text='sh で実行されています。' | |
#echo 'sh で実行されています。' | |
exit 1 | |
fi |
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
alert(opera.setPreference('User Prefs', 'New Window', 1)); |
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
#!/bin/sh | |
# ヒアドキュメントをファイルに | |
tee hoge.txt << EOS | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<h1></h1> |
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
#!/bin/sh | |
# ヒアドキュメントな標準入力を vi で編集 | |
{ | |
cat << EOS | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> |
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
/* | |
※注意 | |
マルチバイト文字の unicode エスケープは必要ありませんでした。 | |
http://gist.github.com/309432 を使用してください。 | |
参考 http://github.com/to/tombloo/commit/85c59c3195f8c9ff4bf91cecb04738e0c20c01cf | |
*/ | |
addBefore(Twitter, 'post', function(ps){ | |
var pre_str = "\u898b\u3066\u308b:"; |
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 Paste And Go | |
// @namespace http://www.xuldev.org/ | |
// @description Adds 'Paste and Go' menu to the context menu in Search bar. | |
// @include main | |
// @author Gomita | |
// @version 1.0.20090810074157.ino46 | |
// @homepage http://www.xuldev.org/misc/ucjs.php | |
// ==/UserScript== | |
// |
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 Paste And Go | |
// @namespace http://www.xuldev.org/ | |
// @description Adds 'Paste and Go' menu to the context menu in Location bar. | |
// @include main | |
// @author Gomita | |
// @version 1.0.20090810074113 | |
// @homepage http://www.xuldev.org/misc/ucjs.php | |
// ==/UserScript== | |
// |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>マイクロソフト ランゲージ ポータル - 用語検索</ShortName> | |
<Description>マイクロソフト ランゲージ ポータル - 用語検索</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16">data:image/x-icon;base64,AAABAAIAICAAAAEACACoCAAAJgAAABAQAAABAAgAaAUAAM4IAAAoAAAAIAAAAEAAAAABAAgAAAAAAIAEAAAAAAAAAAAAAAABAAAAAAAAAAAAAP///wCzai0AtGwwALNrLwCyaSwAs2osAK1gHwCtXhwAs2ouALFmKAC+gEwAzJtyAMuacQDCiVkAsmcqALJpLQDHkmYAzqB5AOHFrgDo08IAwohYALNpLADv4dUA/fz7APz6+QD8+vgA5cy4ALJqLgCzay4A/v79APz5+AD+/f0AsmotALt7RgD69/QA/f39AP79+wDlzbkAs2wwAP7+/gDJl2wA/v38AOfRvgDixq8A2LKUAP///gD8+/oA7t7RAL+CUAD+/v8As2ktAOjSvwDv39IA3r6kALJqLAD27ugA/vz8AO7f0gC8fEgA+vbzAP7//wD9+/oA8eXbAN29ogDp1sYA0KR/APz7+wD9/v0A9e3mALp6RAD59PAA//7+ANWsjADgwqoA+/j2APLm3QDat5oA/fz8AMOKWgDw4tcA/fv5AOzZygD7+fYA/f38AO3e0QD48u4A7+HWAKhVEQD38ewA2beZAPv49QDXsJEA4sixAJ9DAADJlmwA7NvMANGmggDfwagA1KuKANGmgwClTwcA2LKTAP38+gDdvKIAyJ |
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
Dim objWshShell | |
Set objWshShell = WScript.CreateObject("WScript.Shell") | |
objWshShell.Run "control.exe mmsys.cpl ,1" | |
Sub soundkill() | |
objWshShell.SendKeys "{DOWN}" | |
WScript.Sleep 500 | |
objWshShell.SendKeys "{TAB}" | |
WScript.Sleep 500 | |
objWshShell.SendKeys "{BS}" |
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
Dim objWshShell | |
Set objWshShell = WScript.CreateObject("WScript.Shell") | |
objWshShell.Run "control.exe javacpl.cpl" | |
Do Until objWshShell.AppActivate("java コントロールパネル") | |
WScript.Sleep 1000 | |
Loop | |
objWshShell.SendKeys "{LEFT}" | |
WScript.Sleep 500 | |
objWshShell.SendKeys "{TAB}" | |
WScript.Sleep 500 |