Skip to content

Instantly share code, notes, and snippets.

View fepitre's full-sized avatar

Frédéric Pierret fepitre

  • France
View GitHub Profile
@fepitre
fepitre / CreateJob.sh
Created January 20, 2018 17:30 — forked from stuart-warren/CreateJob.sh
Create a job in Jenkins (or folder) using the HTTP API
# check if job exists
curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken
# with folder plugin
curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken
# without folder plugin
curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken
# create folder
@fepitre
fepitre / jenkins-api-examples
Created January 20, 2018 17:32 — forked from marshyski/jenkins-api-examples
Jenkins trigger, create and remove jobs and folders
# check if job exists
curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken
# with folder plugin
curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken
# without folder plugin
curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken
# create folder
import os
import blivet
from blivet.size import Size
from blivet.util import set_up_logging, create_sparse_tempfile
set_up_logging()
b = blivet.Blivet() # create an instance of Blivet (don't add system devices)
# create a disk image file on which to create new devices
https://docs.fedoraproject.org/en-US/ci/pull-requests/
https://fedoraproject.org/wiki/New_package_process_for_existing_contributors
---
git config --global --add push.default tracking
fedpkg clone -a forks/fepitre/rpms/tinyproxy
git checkout -b newbranch
[...modifications...]
include example-configs/qubes-os-r4.1.conf
VERBOSE=2
DEBUG=1
DIST_DOM0=fc32
DISTS_VM=fc32
TEMPLATE_LABEL += fc32:fedora-32
* Centralize qubes-menus and adjust how to provide applications.menu
https://github.com/QubesOS/qubes-desktop-linux-common/pull/25
https://github.com/QubesOS/qubes-builder-rpm/pull/68
https://github.com/QubesOS/qubes-desktop-linux-xfce4/pull/21
https://github.com/QubesOS/qubes-builder/pull/107
* The above has part for Debian GuiVM. Here is the continuity:
https://github.com/QubesOS/qubes-desktop-linux-xfce4-xfwm4/pull/9
Plugin sources:
https://github.com/fepitre/qubes-builder-src
Plugin distros:
https://github.com/fepitre/qubes-builder-debian/commit/66b891ed8e72264b2f8965f65690025fe9ebc4ae
https://github.com/fepitre/qubes-builder-rpm/commit/ae8e12a2ece9a1b09ac52852d742720e68de4972
COMPONENTS:
https://github.com/fepitre/qubes-core-vchan-xen/commit/a03b0a2e8a61ad2b697cad405174eb55aafca721
https://github.com/fepitre/qubes-core-qubesdb/commit/238b168f80c3278fb6716d6a9a0b9e54ca85c969
git:
baseurl: https://github.com
prefix: fepitre/qubes-
branch: builderv2
maintainers:
- 9FA64B92F95E706BF28E2CA6484010B5CDC576E2
backend-vmm: xen
debug: true
@fepitre
fepitre / qrexec_network_poc.md
Last active September 11, 2022 10:54
Qubes OS Summit 2022: qrexec over network (Proof of concept)

qrexec over network (Proof of concept)

Joint work for the Qubes OS Summit 2022:

  • Simon Gaiser (@HW42)
  • Frédéric Pierret (@fepitre)

Setup

Architecture

@fepitre
fepitre / noVNCCopyPasteProxmox.user.js
Created April 22, 2023 09:01 — forked from amunchet/noVNCCopyPasteProxmox.user.js
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none