Skip to content

Instantly share code, notes, and snippets.

View goldmann's full-sized avatar
🤔
Ctrl+C Ctrl+V

Marek Goldmann goldmann

🤔
Ctrl+C Ctrl+V
View GitHub Profile
<?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.apiviz</groupId>
<artifactId>apiviz</artifactId>
<version>1.3.1.GA</version>
<packaging>jar</packaging>
<name>APIviz</name>
<description>
#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Make sure you have all dependencies:
# yum -y install libguestfs-tools virt-install
@Grapes([
@Grab('org.yaml:snakeyaml:1.25')
])
import org.yaml.snakeyaml.constructor.Constructor
import org.yaml.snakeyaml.nodes.NodeId
import org.yaml.snakeyaml.nodes.MappingNode
class SelectiveConstructor extends Constructor {
@goldmann
goldmann / .zshrc
Last active June 24, 2019 06:18
Docker aliases / helper function
alias dip="docker inspect -f '{{ .NetworkSettings.IPAddress }}'"
dssh() {
PID=$(docker inspect --format {{.State.Pid}} $1)
sudo /usr/bin/nsenter --target $PID --mount --uts --ipc --net --pid env -i - $(sudo cat /proc/$PID/environ | xargs -0) bash
}
drmiall() {
docker rmi `docker images -q -f dangling=true`
}
@goldmann
goldmann / orphan.py
Last active June 5, 2019 10:28
A script to make it easier to orphan pacakges in Fedora
# MIT License
# Copyright (c) 2019 Marek Goldmann
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

Repour providers

Gradle provider

Configuration

$ cat /etc/NetworkManager/conf.d/90-virtualbox.conf
[main]
no-auto-default=0a:00:27:00:00:00,0a:00:27:00:00:01,0a:00:27:00:00:02,0a:00:27:00:00:03,0a:00:27:00:00:04,0a:00:27:00:00:05
[keyfile]
unmanaged-devices=mac:0a:00:27:00:00:00;mac:0a:00:27:00:00:01;mac:0a:00:27:00:00:02;mac:0a:00:27:00:00:03;mac:0a:00:27:00:00:04;mac:0a:00:27:00:00:05
18:40:05.385 [DEBUG] [org.gradle.api.internal.changedetection.DefaultFileCacheListener] Can cache files for file '/home/goldmann/work/gradle/BUILD/gradle-1.0/buildSrc/build/resources/main'
18:40:05.387 [DEBUG] [org.gradle.api.internal.changedetection.DefaultFileCacheListener] Can cache files for configuration ':checkstyle'
18:40:05.389 [DEBUG] [org.gradle.api.internal.changedetection.DefaultFileCacheListener] Can cache files for file '/home/goldmann/work/gradle/BUILD/gradle-1.0/config/checkstyle/checkstyle.xml'
18:40:05.391 [DEBUG] [org.gradle.api.internal.changedetection.DefaultFileCacheListener] Can cache files for directory '/home/goldmann/work/gradle/BUILD/gradle-1.0/buildSrc/src/main/groovy'
18:40:05.410 [DEBUG] [org.gradle.api.internal.changedetection.DefaultFileCacheListener] Can cache files for file '/home/goldmann/work/gradle/BUILD/gradle-1.0/buildSrc/build/reports/checkstyle/main.xml'
18:40:05.413 [DEBUG] [org.gradle.api.internal.changedetection.DefaultFileCacheListener] Can cache files for file '/h

Thanks for submitting your Pull Request!

Please make sure your PR meets following requirements:

  • Pull Request title is properly formatted: [CLOUD-XYA] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull request does not include fixes for other issues than the main ticket
  • Attached commits represent unit of work and are properly formatted
  • Every commit contains Signed-off-by: Your Name - use git commit -s
bash-4.3# wget http://ce-ci.usersys.redhat.com/
Connecting to ce-ci.usersys.redhat.com (10.34.75.114:80)
index.html 100% |******************************************************************************************************************************************************************| 126k 0:00:00 ETA
bash-4.3# wget http://ce-ci.usersys.redhat.com/
wget: bad address 'ce-ci.usersys.redhat.com'