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
docker stop awx_task | |
docker rm awx_task | |
docker rmi ansible/awx_task:latest | |
docker stop awx_web | |
docker rm awx_web | |
docker rmi ansible/awx_web:latest | |
git pull | |
cd installer |
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
--- | |
# RUN: ansible-playbook -i localhost, substr.yml | |
- hosts: localhost | |
vars: | |
stuff: deekayen@WINDOMAIN.COM | |
ansible_user: deekayen | |
tasks: |
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
cat > csr_details.txt <<-EOF | |
[req] | |
default_bits = 3072 | |
prompt = no | |
default_md = sha256 | |
req_extensions = req_ext | |
distinguished_name = dn | |
[ dn ] | |
C=US |
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
#Requires -Version 3.0 | |
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM (PS Remoting) configuration and makes | |
# the necessary changes to allow Ansible to connect, authenticate and | |
# execute PowerShell commands. | |
# | |
# All events are logged to the Windows EventLog, useful for unattended runs. |
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
# Set-ExecutionPolicy Unrestricted | |
$src1="\\processing\files" | |
$sendmail=$false | |
Get-ChildItem -path $src1 -Recurse -File | | |
Foreach-Object { | |
$dtdiff = New-TimeSpan ($_.CreationTime) $(Get-Date) | |
if ($dtdiff.minutes -gt 5) { | |
$strbody=$strbody +$_.fullname+ " - Last Modified Time: " +$_.LastWriteTime +"`r`n" |
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
from jenkins import Jenkins, JenkinsError, Job, Server | |
# http://jenkins-webapi.readthedocs.org/en/latest/ | |
from jira.client import JIRA | |
import re | |
import xml.etree.ElementTree as ET | |
import sys | |
import time | |
import requests | |
#Jenkins connection |
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 | |
# Removes the -dev and -prod files. | |
# /var/config/com/company/thing/drivers/config/thing-dev.properties | |
# /var/config/com/company/thing/drivers/config/thing-prod.properties | |
# /var/config/com/company/thing/drivers/config/thing-qa.properties | |
# /var/config/com/company/thing/drivers/config/database.properties | |
# Looks for "qa" in tomcat.conf on the JAVA_OPTS line: | |
# JAVA_OPTS="-Denvironment=qa" |
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
$file = "\\localhost\d$\Reports\Releases\$env:JOB_NAME\$env:BUILD_ID\tfsvcgscan.csv" | |
cd "C:\Program Files (x86)\VisualCodeGrepper" | |
Write-Host "Creating destination directory..." | |
New-Item -Force -ItemType Directory -path "\\localhost\d$\Reports\Releases\$env:JOB_NAME\$env:BUILD_ID" | |
Write-Host "Writing to \\localhost\d$\Reports\Releases\$env:JOB_NAME\$env:BUILD_ID\tfsvcgscan.csv" | |
Write-Host "Running VisualCodeGrepper.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
<?xml version="1.0"?> | |
<configuration> | |
<system.web> | |
<httpCookies requireSSL="true" /> | |
</system.web> | |
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<add name="Strict-Transport-Security" value="max-age=31536000"/> |
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
c:\windows\system32\inetsrv\appcmd.exe set config /section:httpProtocol /+customHeaders.[name='X-Frame-Options',value='SAMEORIGIN'] |