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
#!/usr/bin/php | |
<?php | |
# Define variables | |
$page_cache = 'page.cache'; | |
$page_to_check = 'https://www.nvidia.co.uk/geforce/buy/'; | |
# Check if argument is passed in | |
if (isset($argv[1])) { | |
$page_cache_override = 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
#Preseed Ubuntu | |
d-i debconf/priority select critical | |
d-i auto-install/enabled boolean true | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string en_GB.UTF-8 | |
# Keyboard selection. | |
# Disable automatic (interactive) keymap detection. |
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
# Simple script to remove the pre-pended 'v' from current git repo and push this upstream. | |
for old_tag in $(git tag) | |
do | |
# remove v from tag | |
new_tag=$(echo "${old_tag//v}") | |
# If the tags don't match then do our rename | |
if [ "$old_tag" != "$new_tag" ] | |
then |
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
--- | |
- include_tasks: stuff.yml | |
with_items: | |
- hello | |
- hello2 | |
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 | |
# Quick and dirty AIO Openstack bash script | |
start=`date +%s` | |
git clone https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible | |
cd /opt/openstack-ansible | |
git checkout stable/queens | |
scripts/bootstrap-ansible.sh | |
scripts/bootstrap-aio.sh |
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
echo view.xml | java -jar /opt/jenkins-cli.jar -s http://127.0.0.1:8080 create-view mist_jobs_view --username admin --password PASSWORD |
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
> <listView> | |
> <owner class="hudson" reference="../../.."/> | |
> <name>rd-ansible-github-roles</name> | |
> <description>Roles found on Github by our seed job.</description> | |
> <filterExecutors>false</filterExecutors> | |
> <filterQueue>false</filterQueue> | |
> <properties class="hudson.model.View$PropertyList"/> | |
> <jobNames> | |
> <comparator class="hudson.util.CaseInsensitiveComparator"/> | |
> </jobNames> |
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
pipelineJob('test2') { | |
logRotator { | |
numToKeep(10) | |
} | |
definition { | |
cps { | |
script(""" | |
pipeline | |
{ |
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
import multiprocessing | |
from multiprocessing import Pool | |
from time import sleep | |
list_of_numbers = list(xrange(101)) | |
def pull_role(stuff): | |
print('Sleeping ' + str(stuff)) | |
sleep(0.1) |
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
require 'open-uri' | |
require 'openssl' | |
url = 'https://remote.vagranturi/vagrantfile' | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
download = open(url) | |
IO.copy_stream(download, '.downloaded.vagrantfile') |