Skip to content

Instantly share code, notes, and snippets.

View mbukatov's full-sized avatar

Martin Bukatovic mbukatov

View GitHub Profile
# routes
oc get routes --all-namespaces
# get the image shas from a release
oc adm release info quay.io/openshift-release-dev/ocp-release:4.14.10-x86_64 --pullspecs | awk '{print " - " $2}'
# use butane for machine configs
https://docs.openshift.com/container-platform/4.8/installing/install_config/installing-customizing.html
# p&f issues
@r0h4n
r0h4n / tendrl_profiling_stat.pstat
Created June 18, 2017 13:37
Tendrl profiling output
Sun Jun 18 16:14:39 2017 /var/lib/tendrl/profiling/ceph_integration/last_run_func_stat.pstat
10682443 function calls (11078493 primitive calls) in 143.184 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1623/1624 1.569 0.001 155.177 0.096 /usr/lib/python2.7/site-packages/tendrl/commons/objects/__init__.py:164(NodeContext.load)
16853/16854 0.897 0.000 84.614 0.005 /usr/lib/python2.7/site-packages/etcd/client.py:550(Client.read)
17232/17233 0.661 0.000 78.459 0.005 /usr/lib/python2.7/site-packages/etcd/client.py:838(Client.wrapper)
@omaciel
omaciel / polarion.md
Created May 17, 2016 13:00
Polarion + Betelgeuse + Testimony

Polarion Tooling Meeting

Question

Can you present an example test case that you would want to import, including:

  • Source of the test
https://www.youtube.com/watch?v=kI-KpfQFgug # python coroutines
https://www.youtube.com/watch?v=M_ns_vIshmw # gnu radio
https://www.youtube.com/watch?v=t-TwCLwYIGE # Apache HTrace
https://www.youtube.com/watch?v=aieG8gjpqsw # gimp tricks
https://www.youtube.com/watch?v=jWM3HTwsNE8 # glusterfs @ facebook
https://www.youtube.com/watch?v=4NG1ngz0nnY # BTR'ed ZFS
https://www.youtube.com/watch?v=zkHkrSVHTjA # btrfs dedup
https://www.youtube.com/watch?v=jr4zQc3g1Ts # terryble git ideas
https://www.youtube.com/watch?v=Snr44e7Fjgw # QEMU/libvirt
https://www.youtube.com/watch?v=X1NAJbLqEv8 # SELinux
@ypandit
ypandit / Xvfb.service
Last active September 8, 2023 13:13
Xvfb as a systemd service
[Unit]
Description=X Virtual Frame Buffer Service
After=network.target
[Service]
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24
[Install]
WantedBy=multi-user.target
@mbbx6spp
mbbx6spp / README.md
Last active October 22, 2024 13:13
Gerrit vs Github for code review and codebase management

Gerrit vs Github: for code review and codebase management

Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.

Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:

  • Fast-forward submits to the target branch are better than allowing merge commits to the target branch. The reason I personally prefer this is that, even if a non-conflicting merge to the target branch is possible, the fact that the review/pull request is not up to date with the latest on the target branch means feature branch test suite runs in the CI pipeline reporting on the review/PR may not be accurate. Another minor point is that forced merge commits are annoying as fuck (opinion) and clutter up Git log histories unnecessarily and I prefer clean histories.
  • Atomic/related changes all in one commit is something worth striving for. Having your dev
@SpotlightKid
SpotlightKid / getdocstrings.py
Created September 1, 2014 09:22
Parse Python source code and get or print docstrings.
# -*- coding: utf-8 -*-
"""Parse Python source code and get or print docstrings."""
__all__ = ('get_docstrings', 'print_docstrings')
import ast
from itertools import groupby
from os.path import basename, splitext
@jayunit100
jayunit100 / build.gradle
Last active August 29, 2015 14:01
first attempt at building gradle runner for bigtop tests
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
//needed to avoid groovy not on classpath error.
testCompile module('org.codehaus.groovy:groovy:1.8.0')
@zhzhxtrrk
zhzhxtrrk / wiki.lua
Last active April 19, 2020 18:31
pandoc confluence markup writer
-- that is very similar to that of pandoc's HTML writer.
-- There is one new feature: code blocks marked with class 'dot'
-- are piped through graphviz and images are included in the HTML
-- output using 'data:' URLs.
--
-- Invoke with: pandoc -t sample.lua
--
-- Note: you need not have lua installed on your system to use this
-- custom writer. However, if you do have lua installed, you can
-- use it to test changes to the script. 'lua sample.lua' will
@aaronwolen
aaronwolen / slides.md
Last active November 11, 2022 23:57
Pandoc template to generate reveal.js slideshows.

% Title % Name % Date

My first slide

List