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
| In [1]: import requests | |
| In [2]: url = 'https://releases.hashicorp.com/terraform/' | |
| In [3]: page = requests.get(url) | |
| In [6]: from bs4 import BeautifulSoup as bs | |
| In [7]: soup = bs(page.text, 'html.parser') |
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
| SLAVE_NAME=$1 | |
| CREDENTIALS_ID=<INSERT_CREDENTIALS_HERE> | |
| # USERNAME & PASSWORD is read from Jenkins credentials | |
| cat <<EOF | java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ create-node ${SLAVE_NAME} --username $USERNAME --password $PASSWORD | |
| <slave> | |
| <name>${SLAVE_NAME}</name> | |
| <description>A Jenkins Slave node</description> | |
| <remoteFS>/home/jenkins</remoteFS> | |
| <numExecutors>5</numExecutors> | |
| <mode>NORMAL</mode> |
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
| syntax on | |
| filetype plugin indent on | |
| set ffs=unix | |
| set backspace=indent,eol,start | |
| set tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab | |
| autocmd FileType html setlocal shiftwidth=2 tabstop=2 smarttab | |
| autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=4 smarttab |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "PackerAMIAccess", | |
| "Action": [ | |
| "ec2:CopyImage", | |
| "ec2:CreateImage", | |
| "ec2:DeregisterImage", | |
| "ec2:DescribeImageAttribute", |
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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: vbox_server | |
| # Required-Start: $local_fs $network $named $time $syslog | |
| # Required-Stop: $local_fs $network $named $time $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: Starts a VirtualBox instance named 'vbox_server' | |
| ### END INIT INFO |
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
| <?xml version="1.0"?> | |
| <root> | |
| <replacementdef> | |
| <replacementname>PC_STYLE_BINDINGS_IGNORE_APPS</replacementname> | |
| <replacementvalue> | |
| VIRTUALMACHINE, | |
| REMOTEDESKTOPCONNECTION, | |
| VNC, | |
| TEAMVIEWER, |
NewerOlder