Skip to content

Instantly share code, notes, and snippets.

View jugatsu's full-sized avatar

Anton Kvashenkin jugatsu

View GitHub Profile
@artbear
artbear / test-run.sh
Last active May 8, 2019 20:42 — forked from pumbaEO/gist:77ca3a00f14e44a4be54
Запуск тестирования xUnitFor1C 3.Х на Jenkins
#!/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
@Hexalon
Hexalon / Install-WMF5.ps1
Last active June 21, 2017 12:36
Automates installation of Windows Management Framework 5
#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
@TheWaWaR
TheWaWaR / flask_dump_request_response.py
Last active December 30, 2024 03:39
Flask dump request and response example
#!/usr/bin/env python
# coding: utf-8
import os
import sys
import json
import uuid
import tempfile
from flask import Flask, request, Response, g
@marcelbirkner
marcelbirkner / ciSeedJob.groovy
Last active October 21, 2022 13:55
Jenkins Job DSL Seed Job for Continuous Integration Jobs
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.
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 18, 2025 02:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

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.

Prerequisites

@dayreiner
dayreiner / icinga2_check_wmi_plus.conf
Created June 11, 2015 21:19
An example check_wmi_plus configuration for Icinga2. Check_wmi_plus (http://www.edcint.co.nz/checkwmiplus/) is a clientless plugin for monitoring Windows systems via WMI with Nagios and other monitoring platforms.
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$"
@mefellows
mefellows / BundleConfig.ps1
Last active December 25, 2023 23:33
Sysprepped Windows AMI using Packer
$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"
}
@kofemann
kofemann / tuned.conf
Last active November 1, 2023 07:44
Tuned profile for PostgreSQL server on CENTOS-7
#
# 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
@jcefoli
jcefoli / newvm.ps1
Created February 19, 2015 18:22
Hyper-V: This script takes a vhdx file and automatically creates a new VM based off it. All permissions are fixed after the VHDX gets copied.
<#
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"