Skip to content

Instantly share code, notes, and snippets.

" System
set shell=/bin/bash
set clipboard^=unnamed
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
" Leader
let mapleader = ' '
@akofink
akofink / compliance_local_gem.sh
Created October 4, 2019 18:37
Using a local gem within the compliance-backend docker compose environment
docker-compose up -d # start all compliance services
# add the path attribute in the Gemfile
# gem 'openscap_parser', path: '/openscap_parser'
# stop sidekiq, bring it up with an additional volume mount
docker-compose stop sidekiq && d-c run -v $PWD:/app:z -v $PWD/../openscap_parser:/openscap_parser --name sidekiq --rm sidekiq
# update the gem
docker exec -it sidekiq bundle update openscap_parser
# curl -o ~/.oh-my-zsh/custom/themes/akofink.zsh-theme https://gist.github.com/akofink/3c9dbb65826eeb632a5250ce38a5fb8e/raw/1cdd0136aa2e866da763d62d913e898103cb4d43/akofink.zsh-theme
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
ZSH_THEME_GIT_PROMPT_CLEAN=""
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
#!/bin/sh
(which http > /dev/null && which jq > /dev/null) || exit
PAV3=pulp/api/v3
DEBUG=${DEBUG-false}
FILE=${FILE-/tmp/file.txt}
SHA256SUM=${SHA256SUM-$(sha256sum $FILE | awk '{print $1}')}
REPO=${REPO-files}
PUBLISHER=${PUBLISHER-txt}
from nailgun import entity_mixins
from nailgun.config import ServerConfig
from nailgun.entities import *
entity_mixins.DEFAULT_SERVER_CONFIG = ServerConfig(url='https://centos7-devel.virbr0.akofink-desktop/', auth=('admin', 'changeme'), verify=False)
Ping().search_json()
Organization(id=1)
/usr/share/candlepin/cpdb --update
@akofink
akofink / virt-who.md
Created September 11, 2018 17:56 — forked from johnpmitsch/virt-who.md
virt-who installation for katello (to get hypervisor guests)

On hypervisor (probably your workstation)

  1. yum install virt-who

  2. Edit /etc/virt-who.d/test.conf and update the rhsm_hostname, rhsm_username, rhsm_password (use dev server credentials)

[libvirt]
type=libvirt
server=qemu:///system
owner=Default_Organization
env=Library
#
# weechat -- weechat.conf
#
# WARNING: It is NOT recommended to edit this file by hand,
# especially if WeeChat is running.
#
# Use /set or similar command to change settings in WeeChat.
#
# For more info, see: https://weechat.org/doc/quickstart
#

Update release document (find url from ehelms)

Release in redmine (KATELLO_3.5.0)

closed issues are definitely in

Announce branching

2 weeks prior

Branching (master -> KATELLO-3.5)

repos:

@akofink
akofink / fix_kafo_parse_error.sh
Created August 31, 2017 12:54
Fix Kafo::ParserError in foreman-installer
puppet resource package yard provider=puppet_gem
puppet resource package puppet-strings provider=puppet_gem