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
[reflection.assembly]::LoadWithPartialName("System.Windows.Forms") | out-null | |
[System.Windows.Forms.Application]::SetSuspendState([System.Windows.Forms.PowerState]::Suspend, $false, $false); |
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
[reflection.assembly]::LoadWithPartialName("Microsoft.Office.Interop.Word") | out-null | |
$word = new-object Microsoft.Office.Interop.Word.ApplicationClass | |
$word.Visible = $true | |
foreach($arg in $args) | |
{ | |
foreach($doc in (Get-Item $arg)) | |
{ | |
$fn_doc = $doc.FullName | |
$word_doc = $word.Documents.Open($fn_doc, $false, $false) |
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
AESでktpass | |
ktpass -princ HTTP/[email protected] -mapuser http-somehost -crypto AES256-SHA1 -ptype KRB5_NT_SRV_HST +rndPass -out somehost.keytab | |
RC4でktpassして2008 DCに対してkinitするとき | |
[libdefaults] | |
default_tkt_enctypes = rc4-hmac | |
default_tgs_enctypes = rc4-hmac | |
kinit(v5): Key table entry not found while getting initial credentials |
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
JVM系 | |
<target name="run" depends="compile" | |
description="Starts the development server."> | |
<dev_appserver war="war" port="3000" address="0.0.0.0"> | |
<options> | |
<arg value="--jvm_flag=-Dhttps.proxyHost=proxy.example.com" /> <arg value="--jvm_flag=-Dhttps.proxyPort=8080" /> | |
</options> | |
</dev_appserver> | |
</target> |
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
package com.example; | |
import javax.swing.JEditorPane; | |
import javax.swing.JFrame; | |
import javax.swing.JScrollPane; | |
import java.awt.Container; | |
@SuppressWarnings("serial") | |
public class DummyChan extends JFrame{ |
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
command="perl -e 'exec qw(git-shell -c), $ENV{SSH_ORIGINAL_COMMAND}'",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa aaaaaaaaaaaaaaaaaaaaaaaaa [email protected] |
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
jenkins.model.Jenkins.instance.items.findAll{job -> | |
job.name =~ /^some$/; | |
}.each { job -> | |
def modBranch = {scm -> | |
if (scm?.getType() =~ "GitSCM") { | |
// scm.properties.each{it -> println(it)}; | |
branches = scm.getBranches() | |
if (branches?.size > 0) { | |
println("${job.name}(${scm.scmName})=${branches[0].name}"); |
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
#hardstatus alwayslastline "%w" | |
shelltitle "$ |tcsh" | |
hardstatus alwayslastline "%H: %`%-w%{=b bw}%n %t%{-}%+w" | |
bind s # reset s key | |
bind ^U encoding utf8 | |
bind ^E encoding euc | |
bind ^S encoding sjis | |
#caption always "%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wb}%c" | |
defscrollback 1000 | |
#hardstatus alwayslastline "%H: %w" |
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 | |
set RS_EXE="C:\Program Files\Microsoft SQL Server\110\Tools\Binn\rs.exe" | |
cd %~dp0 | |
@rem For newer endpoint. -e Mgmt2010 | |
%RS_EXE% -i deploy.rss -s http://IPorHostname/reportserver -v filePath=. -v parentFolder=/ -v "dataSourcePath=/データ ソース/" -v dataSourceName=SomeName | |
if errorlevel 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
var http = require('http'), | |
httpProxy = require('http-proxy'); | |
// Proxy to rails app | |
var proxy1 = new httpProxy.HttpProxy({ | |
target: { | |
host: 'localhost', | |
port: 3000 | |
} | |
}); |