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
--- a/redmine-2.6.0/config/initializers/30-redmine.rb 2014-10-22 04:13:09.000000000 +0900 | |
+++ b/redmine-2.6.0/config/initializers/30-redmine.rb 2014-11-13 16:11:10.000000000 +0900 | |
@@ -16,7 +16,7 @@ | |
openid_authentication_store : :memory | |
end | |
-Redmine::Plugin.load | |
+Redmine::Plugin.load(Redmine::Configuration['plugins'] || ['all']) | |
unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false | |
Redmine::Plugin.mirror_assets |
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
@echo off | |
rem -*- coding: shift_jis-dos -*- | |
call :MAIN | |
exit /b | |
:MAIN | |
setlocal enabledelayedexpansion | |
for /l %%i in (-1, 1, 10) do ( | |
call :RANDOM_N %%i |
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
<!-- | |
usage: | |
D:\somewhere>cscript example.wsf | |
--> | |
<job id="Example"> | |
<script language="JScript" src="common.js"></script> | |
<script language="JScript" src="main.js"></script> | |
</job> |
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
// -*- coding: utf-8; -*- | |
// usage1: D:\somewhere>this.exe utf-8 shift_jis file.utf8.txt | |
// usage2: D:\somewhere>type file.utf8.txt | this.exe utf-8 shift_jis | |
// note: D:\somewhere>C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe this.cs | |
using System; | |
using System.IO; |
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 | |
# -*- coding: utf-8 -*- | |
# usage1: ~$ ./proxied_cmd.sh yum update | |
# usage2: ~$ ./proxied_cmd.sh --raw gem install foobar | |
# (https://www.ruby-forum.com/topic/48641) | |
# 本当は proxy_user, proxy_password を使うべき。らしい。 | |
HOST='' |
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/sh | |
cat /dev/clipboard | dos2unix |
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
xquery version "1.0" encoding "UTF-8"; | |
(: java -cp saxon9he.jar net.sf.saxon.Query -q:svn_log_xml2txt.xq -s:source.xml :) | |
declare namespace saxon="http://saxon.sf.net/"; | |
declare option saxon:output "method=text"; | |
declare variable $sep-string := | |
"------------------------------------------------------------------------"; |
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
@rem -*- coding: shift_jis-dos -*- | |
@echo off | |
set ASTYLE="AStyle.exe" --mode=c -n --style=kr | |
for /f "usebackq" %%s in (`mshta "javascript:var text = clipboardData.getData('text');var fso;var tmpfilename;var tmpfile;if (text) {fso = new ActiveXObject('Scripting.FileSystemObject');tmpfilename = fso.GetTempName();tmpfile = fso.CreateTextFile(tmpfilename);tmpfile.Write(text);tmpfile.Close();fso.GetStandardStream(1).Write(tmpfilename);}close();"`) do set tmpfilename=%%s | |
rem var text = clipboardData.getData('text'); | |
rem var fso; | |
rem var tmpfilename; |
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
// -*- coding: shift_jis-dos -*- | |
/* | |
* D:\somewhere>UrlEncoder.exe encoding string1 [string2...] | |
* | |
* e.g. | |
* D:\somewhere>UrlEncoder.exe euc-jp ^%PATH^%" "abc d\e\^"f^^g | |
* %25PATH%25+abc | |
* d%5Ce%22f%5Eg | |
*/ |
NewerOlder