This file contains hidden or 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
./jboss-cli.sh | |
embed-server --std-out=echo --server-config=standalone.xml | |
module add --name=org.postgres --resources=/tmp/postgresql-42.1.1.jar --dependencies=javax.api,javax.transaction.api | |
exit |
This file contains hidden or 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
Install-windowsfeature AD-domain-services,DHCP,DNS | |
Install-ADDSDomainController -CreateDnsDelegation:$false -DomainName 'tf.com' -InstallDns:$true -NoGlobalCatalog:$false -SiteName 'Default-First-Site-Name' -NoRebootOnCompletion:$true -Force:$true -DatabasePath 'C:\Windows\NTDS' -SysvolPath 'C:\Windows\SYSVOL' -LogPath 'C:\Windows\NTDS' | |
netdom query fsmo | |
Move-ADDirectoryServerOperationMasterRole -Identity DC02-NEW -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster | |
Export-DhcpServer -File C:\DHCPdata.xml -Leases -Force -ComputerName old.network.local –Verbose |
This file contains hidden or 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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<localRepository/> | |
<interactiveMode/> | |
<usePluginRegistry/> | |
<offline/> | |
<pluginGroups/> | |
<servers> |
This file contains hidden or 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
#!/usr/bin/env ruby | |
File.open("spec-payment-system-v1.md", 'r') do |f| | |
f.each_line do |line| | |
forbidden_words = ['Table of contents', 'define', 'pragma'] | |
next if !line.start_with?("#") || forbidden_words.any? { |w| line =~ /#{w}/ } | |
title = line.gsub("#", "").strip | |
href = title.gsub(" ", "-").downcase | |
puts " " * (line.count("#")-1) + "* #{title}" |
This file contains hidden or 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
#!/usr/bin/env bash | |
mvn versions:set -DnewVersion=$1 | |
mvn versions:commit | |
git add . | |
git commit -S -m "Release v$1" |
This file contains hidden or 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 | |
# Add usernames to add to /etc/sudoers for passwordless sudo and disable password | |
users=("ansible") | |
for user in "${users[@]}" | |
do | |
cat /etc/sudoers | grep ^$user | |
RC=$? | |
if [ $RC != 0 ]; then |