This file contains 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
def printSystemProperty(key) | |
{ | |
def jenkins = hudson.model.Hudson.instance | |
def slaves = jenkins.slaves | |
slaves.each { | |
def com = it.toComputer() | |
def properties = com.getSystemProperties() | |
if( properties != null ) | |
{ | |
def ver = properties[key] |
This file contains 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
// http://qnighy.hatenablog.com/entry/20090204/1233733232 | |
#include <iostream> | |
using namespace std; | |
namespace TMP | |
{ | |
template<bool expr, typename IfTrue, typename IfFalse> | |
struct select |
This file contains 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 TARGET_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers | |
SET TARGET_KEY_WOW64=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\ShellIconOverlayIdentifiers | |
rem call :dropbox %TARGET_KEY% | |
if not "%PROCESSOR_ARCHITECTURE%" == "x86" ( | |
call :dropbox %TARGET_KEY_WOW64% | |
) | |
goto :EOF |
This file contains 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
import hudson.model.Cause.UpstreamCause | |
static checkZUN(manager, cause, count) | |
{ | |
def causes = cause.getUpstreamCauses() | |
def name = cause.getUpstreamProject() | |
manager.listener.logger.println name | |
if( name == "ZUN" ) { | |
count += 1 | |
if( count == 4 ) { |
This file contains 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
Write-Host "--- Running Windows Update ---" | |
Write-Host "Searching for updates..." | |
$updateSession = new-object -com "Microsoft.Update.Session" | |
$updateSearcher = $updateSession.CreateupdateSearcher() | |
$searchResult = $updateSearcher.Search("IsInstalled=0 and Type='Software' and AutoSelectOnWebSites=1") | |
Write-Host "List of applicable items on the machine:" | |
if ($searchResult.Updates.Count -eq 0) { | |
Write-Host "There are no applicable updates." | |
} | |
else |
This file contains 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 パッケージリスト : https://chocolatey.org/packages | |
rem 管理者権限があるかどうかチェック | |
whoami /PRIV | find "SeLoadDriverPrivilege" >NUL | |
if not errorlevel 1 goto start | |
rem ない場合は powershell 経由で自分自身を実行 | |
powershell.exe -Command Start-Process "%~0" -Verb Runas | |
goto :EOF |
This file contains 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
#include <windows.h> | |
#include <tchar.h> | |
void FindFirstFileTest() | |
{ | |
_tprintf(_T("FindFirstFile\n")); | |
TCHAR buf[3] = _T("c:"); | |
for( TCHAR letter = _T('c'); letter <= _T('z'); letter += 1 ) | |
{ |
This file contains 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 管理者権限があるかどうかチェック | |
whoami /PRIV | find "SeLoadDriverPrivilege" >NUL | |
if not errorlevel 1 goto start | |
rem ない場合は powershell 経由で自分自身を実行 | |
rem %0 のドライブレターで検索して UNC パスを取得 | |
for /f "usebackq tokens=1,2,3" %%i in (`net use`) do if "%%j" == "%~d0" SET UNC=%%k | |
rem net use で割当をしてから実行(既に割当たっている場合もあるので成否にかかわらずコマンド実行) | |
powershell.exe -Command Start-Process -FilePath cmd.exe -ArgumentList '/c "net use %~d0 %UNC% || %~dp0%~nx0"' -Wait -Verb Runas |
This file contains 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
# This references the default Python container from | |
# the Docker Hub with the 2.7 tag: | |
# https://registry.hub.docker.com/_/python/ | |
# If you want to use a slim Python container with | |
# version 3.4.3 you would use: python:3.4-slim | |
# If you want Google's container you would reference google/python | |
# Read more about containers on our dev center | |
# http://devcenter.wercker.com/docs/containers/index.html | |
box: python:2.7 | |
# You can also use services such as databases. Read more on our dev center: |
This file contains 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
# doxygen special commands list (v1.18.13) | |
DOXYGEN_COMMAND_LIST={ \ | |
} \ | |
a \ | |
addindex \ | |
addtogroup \ | |
anchor \ | |
arg \ | |
attention \ | |
author \ |
OlderNewer