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
class cluster::tdqueue::node { | |
class {'company::limits-performance': | |
notify => Service['rabbitmq-server'], | |
} | |
class { 'rabbitmq': | |
config_cluster => true, | |
cluster_nodes => ['tdqueue1a.company.prod', 'tdqueue1b.company.prod'], | |
cluster_node_type => 'ram', | |
config_mirrored_queues => true, |
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
Puppet::Type.type(:registry_key_posh).provide(:registry_key_posh) do | |
@doc = %q{Manage registry entry via powershell} | |
desc "Manage windows users and groups" | |
confine :operatingsystem => :windows | |
defaultfor :operatingsystem => :windows | |
commands :powershell => | |
if File.exists?("#{ENV['SYSTEMROOT']}\\sysnative\\WindowsPowershell\\v1.0\\powershell.exe") | |
"#{ENV['SYSTEMROOT']}\\sysnative\\WindowsPowershell\\v1.0\\powershell.exe" |
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
sudo su | |
cat << EOF > /etc/apt/preferences | |
Package: * | |
Pin: release n=wheezy | |
Pin-Priority: 900 | |
Package: * | |
Pin: release n=jessie | |
Pin-Priority: 300 |
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
exec { "install-chocolatey": | |
creates => 'C:\Programdata\Chocolatey', | |
command => 'iex ((new-object net.webclient).DownloadString(\'http://chocolatey.org/install.ps1\'))', | |
require => Class["packages::dotnetall"], | |
provider => powershell, | |
} | |
windows_env {'ChocolateyInstall': | |
ensure => present, |
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
#!/bin/bash | |
version=1.7.7.2 | |
wget http://openresty.org/download/ngx_openresty-${version}.tar.gz | |
tar zxf ngx_openresty-${version}.tar.gz | |
cd ngx_openresty-${version} | |
./configure --with-luajit \ | |
--sbin-path=/usr/sbin/nginx \ | |
--conf-path=/etc/nginx/nginx.conf \ |
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
##### | |
export ESP_HOME="/opt/esp-open-sdk" | |
export SMING_HOME="/opt/sming/Sming" | |
export SDK_BASE="${ESP_HOME}/sdk" | |
export XTENSA_TOOLS_ROOT="${ESP_HOME}/xtensa-lx106-elf/bin" | |
export SDK_TOOLS="${SDK_BASE}/tools" | |
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
# Prerequisites: | |
# Xcode | |
# Homebrew: | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap homebrew/dupes | |
brew install binutils coreutils automake wget gawk libtool gettext gperf gnu-sed --with-default-names grep | |
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" |
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
# Getting required packages - Ubuntu | |
sudo apt-get install -y python-serial srecord bc |
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
8,9c8,9 | |
< //16k | |
< #define MAX_SIZE 4*4*1024 | |
--- | |
> //192k | |
> #define MAX_SIZE 12*4*4*1024 |
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
puppet apply -e "package {'Java 7 Update 71': ensure => absent} package {'Java 8 Update 31': ensure => absent} package {'Java 8 Update 31 (64-bit)': ensure => absent}" |
OlderNewer