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/ruby | |
| TOP_DIR = Dir.pwd | |
| def build | |
| require 'fileutils' | |
| require 'yaml' | |
| ['6', '7'].each do |ver| |
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
| %s/Require: pupmod-\(.\+\)-\(.\+\) >= \(.\+\),.*< \(.\+\)/{\r "name": "\1\/\2",\r "version_requirement": ">= \3 < \4"\r},/ |
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 | |
| # Stolen from https://unix.stackexchange.com/questions/17368/how-do-i-tell-which-gpg-key-an-rpm-package-was-signed-with | |
| rpm -qp --qf '%{NAME}-%{VERSION}-%{RELEASE} %{SIGPGP:pgpsig} %{SIGGPG:pgpsig}\n' *.rpm |
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 --login | |
| # Script for building SIMP on AWS RHEL systems | |
| # IMPORTANT! | |
| # | |
| # Be sure to rename the tarball to 'SIMP-<VERSION>.el7-RedHat-7-x86_64.tar.gz' | |
| # | |
| # | |
| # Build tarballs can be downloaded from https://simp-project.com/ISO/SIMP/tar_bundles |
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 | |
| # Expects an input file generated using: | |
| # strace -f -qq -o <output_file> -e trace=execve <command> | |
| infile = ARGV.first | |
| unless File.exists?(infile) | |
| $stderr.puts("'#{infile}' is not a valid file") | |
| end |
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 | |
| base_config = '/etc/rsyslog.conf' | |
| def process_config(config) | |
| output = [] | |
| File.read(config).lines do |line| | |
| if line =~ /IncludeConfig\s+(.*)/ | |
| Dir.glob($1).each do |subfile| |
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
| javascript:var%20sp_field%20=%20'.customfield_10005';%20var%20sum%20=%20jQuery(sp_field).text().split(/\s+/).filter(function(n){%20return%20n%20!=%20''%20}).map(function(n){%20return%20parseInt(n)%20}).reduce(function(a,%20v){%20return%20a%20+%20v%20});%20alert('Total%20Story%20Points:%20'%20+%20sum);%20void(document.close()); |
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 --login | |
| # Be sure to rename the tarball to 'SIMP-<VERSION>-el7-RedHat-7-x86_64.tar.gz' | |
| set -e | |
| # Put the RHEL ISO here | |
| iso_dir='/home/ec2-user/ISO' | |
| top_dir=`pwd` |
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/ruby | |
| # Get application and stack size of an application in a form useful for using | |
| # with pam_limits | |
| require 'json' | |
| PAGE_SIZE = %x(getconf PAGESIZE).to_i | |
| UID = Process.uid |
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 | |
| LOCK=true | |
| #URL='https://packagecloud.io/simp-project/4_X/packages/el/6' | |
| #URL='https://packagecloud.io/simp-project/4_X_Dependencies/packages/el/6' | |
| #URL='https://packagecloud.io/simp-project/5_X/packages/el/7' | |
| #URL='https://packagecloud.io/simp-project/5_X_Dependencies/packages/el/7' | |
| #URL='https://packagecloud.io/simp-project/6_X_Alpha/packages/el/7' | |
| #URL='https://packagecloud.io/simp-project/6_X_Alpha_Dependencies/packages/el/7' | |
| #URL='https://packagecloud.io/simp-project/6_X/packages/el/7' |