One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/sh | |
export WORKSPACE=`pwd` | |
echo $WORKSPACE | |
if test -d $WORKSPACE/build/ib; then rm -rf $WORKSPACE/build/ib; fi | |
mkdir $WORKSPACE/build -p | |
mkdir $WORKSPACE/build/ib -p | |
if test -d $WORKSPACE/test-reports; then rm -rf $WORKSPACE/test-reports; fi |
#Requires -Version 4.0 | |
[CmdletBinding()] | |
Param( | |
[switch]$OnlineInstall = $false | |
) | |
<# | |
.NOTES |
:: Windows 7 SP1 | |
if not exist "C:\Windows\Temp\windows6.1-KB976932-X64.exe" ( | |
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X64.exe', 'C:\Windows\Temp\windows6.1-KB976932-X64.exe')" <NUL | |
) | |
:: Windows 7 SP1 require KB3102810 hotfix | |
:: Installing and searching for updates is slow and high CPU usage occurs in Windows 7. | |
:: https://support.microsoft.com/en-us/kb/3102810 | |
if not exist "C:\Windows\Temp\Windows6.1-KB3102810-x64.msu" ( | |
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/F/A/A/FAABD5C2-4600-45F8-96F1-B25B137E3C87/Windows6.1-KB3102810-x64.msu', 'C:\Windows\Temp\Windows6.1-KB3102810-x64.msu')" <NUL |
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import sys | |
import json | |
import uuid | |
import tempfile | |
from flask import Flask, request, Response, g |
import groovy.sql.Sql | |
import java.util.Date | |
import java.text.SimpleDateFormat | |
/* | |
* THIS IS AN EXAMPLE SNIPPET. FOR MORE DETAILS SEE THE FOLLOWING BLOG ARTICLE: | |
* https://blog.codecentric.de/en/?p=30502 | |
* | |
* This Jenkins Job DSL Groovy Script creates Continuous Integration (CI) Jobs | |
* for all Maven & Ant projects that exist on a GitLab Server. |
object CheckCommand "check_wmi" { | |
import "plugin-check-command" | |
command = [ PluginDir + "/check_wmi_plus.pl" ] | |
arguments = { | |
"--inidir" = "$wmi_inidir$" | |
"-H" = "$host.name$" | |
"-A" = "$wmi_authfile_path$" | |
"-m" = "$check_mode$" | |
"-s" = "$wmi_submode$" |
$EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\BundleConfig.xml" | |
$xml = [xml](get-content $EC2SettingsFile) | |
$xmlElement = $xml.get_DocumentElement() | |
foreach ($element in $xmlElement.Property) | |
{ | |
if ($element.Name -eq "AutoSysprep") | |
{ | |
$element.Value="Yes" | |
} |
# | |
# tuned configuration for PostgresSQL servers | |
# /usr/lib/tuned/postgres-db-server/tuned.conf | |
# | |
[cpu] | |
force_latency=1 | |
governor=performance | |
energy_perf_bias=performance | |
min_perf_pct=100 |
<# | |
Script: newvm.ps1 | |
Description: Script to automagically create new VM from a template VM | |
Usage from CMD: powershell -noexit "& "newvm.ps1" | |
#> | |
## Configure Variables Here ## | |
[String]$templateVMName = "Template.vhdx" | |
[String]$templateVMPath = "D:\Hyper-V\VHD\" | |
[String]$setNIC = "Broadcom Netxtreme 57xx Gigabit Controller - Virtual Switch" |