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 python3 | |
| import sys | |
| from pathlib import Path | |
| from subprocess import check_output | |
| import requests | |
| import yaml | |
| from github import Github | |
| from github.GithubException import UnknownObjectException |
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 python3 | |
| import os | |
| from github import Github | |
| TO_CLEAN = ( | |
| 'https://prprocessor.theforeman.org', | |
| 'https://notify.travis-ci.org', | |
| 'https://ossistant-inecas.rhcloud.com', |
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 | |
| set -e | |
| set -x | |
| bundle exec rubocop --auto-gen-config --no-auto-gen-timestamp --no-offense-counts | |
| TODO=$(~/.local/bin/yq -r '. | keys[]' .rubocop_todo.yml | grep -vE 'Layout/LineLength|Lint/UriEscapeUnescape|Naming/MethodParameterName|Layout/DefEndAlignment|Layout/IndentationConsistency') | |
| echo > .rubocop_todo.yml | |
| if [[ -n "$(git status --porcelain)" ]] ; then | |
| git commit -m '[TMP] clean Rubocop TODO' .rubocop_todo.yml |
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
| [ | |
| { | |
| "url": "https://github.com/ATIX-AG/foreman_acd", | |
| "last_commit": "2022-09-26T06:28:14" | |
| }, | |
| { | |
| "url": "https://github.com/ATIX-AG/foreman_scc_manager", | |
| "last_commit": "2022-09-21T08:20:46" | |
| }, | |
| { |
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 -e | |
| # Intended as a proof of concept to see if we can purge the NPM cache in npm2rpm | |
| cd "$1" | |
| package="$(basename $(realpath .))" | |
| spectool --get-files "${package}.spec" |
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 python3 | |
| # https://www.libvirt.org/hooks.html#network | |
| # Place this as /etc/libvirt/hooks/network | |
| import logging | |
| import sys | |
| from argparse import ArgumentParser | |
| from subprocess import CalledProcessError, check_output |
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/python3 | |
| from argparse import ArgumentParser | |
| from collections import defaultdict | |
| from itertools import chain | |
| from redminelib import Redmine | |
| def get_picks(project_id, query_id): | |
| redmine = Redmine('https://projects.theforeman.org') |
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 | |
| require 'puppet_metadata' | |
| require 'semantic_puppet' | |
| def normalize_name(name) | |
| name.tr('-', '/') | |
| end | |
| class LocalModules < SemanticPuppet::Dependency::Source |
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 | |
| require 'yaml' | |
| filenames = ARGV | |
| filenames.each do |filename| | |
| msync = YAML.safe_load(File.read(filename)).reject{ |k,v| k == '.travis.yml' } | |
| if msync.any? | |
| File.write(filename, YAML.dump(msync)) | |
| else |
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
| require 'rake/clean' | |
| require 'puppet/modulebuilder' | |
| # Set defaults for the deployment step | |
| DEFAULT_SERVER='puppet.example.com' | |
| DEFAULT_DIRECTORY="/etc/puppetlabs/code/environments/production" | |
| # What to copy | |
| MODULE_DIRS = ['modules'] | |
| FILES_TO_COPY = FileList['environment.conf', 'hiera.yaml', 'data/**/*.yaml'] |
NewerOlder