Skip to content

Instantly share code, notes, and snippets.

View aadamovich's full-sized avatar

Andrey Adamovich aadamovich

View GitHub Profile
@jagedn
jagedn / DistributeForecast.groovy
Created July 15, 2016 11:40
Use Gpars + Sshoogr to distribute a jar and execute it
@Grab('com.aestasit.infrastructure.sshoogr:sshoogr:0.9.25')
@Grab('org.codehaus.gpars:gpars:1.2.1')
@GrabConfig(systemClassLoader = true)
import static com.aestasit.infrastructure.ssh.DefaultSsh.*
import groovyx.gpars.GParsPool
options.trustUnknownHosts = true
stores = [ '10.0.1.1', '10.0.2.1', '10.0.3.1' ]
GParsPool.withPool(10) {
@mitchellh
mitchellh / setup_winrm.txt
Created June 14, 2015 19:31
Packer 0.8 Windows Example on AWS
<powershell>
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow
@thombergs
thombergs / build.gradle
Last active October 21, 2020 21:51
Accessing the SVN revision number in a Gradle script
import org.tmatesoft.svn.core.wc.*
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.tmatesoft.svnkit', name: 'svnkit', version: '1.7.11'
}
}
@digitalresistor
digitalresistor / README.md
Created February 11, 2012 04:18
Generates various mpeg4 files from a gource run ...

Collection of Gource Helper Scripts

This collection of helper scripts are used to generate .mp4 files containing the output from [gource][1], a visualisation tool that generates pretty output from the git log output.

Requirements

  1. gource
  2. ffmpeg with x264 support