Skip to content

Instantly share code, notes, and snippets.

@sochotnicky
sochotnicky / tmpbzupdate
Created January 8, 2019 14:42
/tmp/bzupdate
#!/bin/sh
bugzilla modify -l 'You can make multi-line
comment
like this.' <bugid>
@sochotnicky
sochotnicky / tmpbzupdate
Created January 8, 2019 14:50
/tmp/bzupdate
#!/bin/sh
echo bugid1 bugid2 | xargs echo bugzilla modify -l 'You can make multi-line
comment
like this.' -s WONTFIX
@sochotnicky
sochotnicky / jira_test_principal.py
Created February 20, 2019 13:41
jira_test_principal.py
from ticketutil.jira import JiraTicket
# To test run:
# kdestroy
# export KRB5_CLIENT_KTNAME=<path to keytab>
# python <this script>
JIRA_URL = "https://projects.engineering.redhat.com"
t = JiraTicket(JIRA_URL,
@sochotnicky
sochotnicky / jira_test_principal.py
Created February 20, 2019 14:10
jira_test_principal.py
import logging
from ticketutil.jira import JiraTicket
logging.basicConfig(level=logging.DEBUG)
# To test run:
# kdestroy
# export KRB5_CLIENT_KTNAME=<path to keytab>
# python <this script>
@sochotnicky
sochotnicky / ..jobssochotni-pipeline-throttle.yaml
Created February 22, 2019 12:39
../jobs/sochotni-pipeline-throttle.yaml
- project:
name: sochotni-pipeline-throttle
jobs:
- "sochotni-pipeline-throttle":
- job-template:
name: "sochotni-pipeline-throttle"
project-type: pipeline
concurrent: true
@sochotnicky
sochotnicky / homew0rm.gitignore
Created April 12, 2019 07:26
/home/w0rm/.gitignore
# object files and libs
*.[ao]
*.so
*.elc
.hg
#python compiled files
*.py[co]
@sochotnicky
sochotnicky / tox_command.py
Created July 16, 2019 12:06
tox_command.py
import yaml
from buildbot.plugins import steps, util
class ToxCommand(steps.ShellCommand):
def start(self):
if self.getProperty("tox-env"):
self.setCommand(["tox", "-e", self.getProperty("tox-env")])
else:
self.setCommand(["tox"]) # succes if no tox checks defined
@sochotnicky
sochotnicky / aqe_trigger.py
Created July 16, 2019 12:07
aqe_trigger.py
import yaml
from buildbot.plugins import steps, util
class AQETrigger(steps.Trigger):
def getSchedulersAndProperties(self):
bbconfig = self.getProperty("bbconfig", "{}")
ret = []
bbconfig = yaml.safe_load(bbconfig)
print(bbconfig)
@sochotnicky
sochotnicky / prep_diffs.py
Created August 27, 2020 15:50
prep_diffs.py
import logging
import os
import bz2
import csv
import requests
import time
from io import StringIO
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("urllib3").setLevel(logging.WARNING)
@sochotnicky
sochotnicky / stdin
Created November 2, 2020 16:16
stdin
#!/bin/sh
PATH="$HOME/bin:$PATH"
export SDL_AUDIODRIVER=pulse
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1