Skip to content

Instantly share code, notes, and snippets.

View fepitre's full-sized avatar

Frédéric Pierret fepitre

  • France
View GitHub Profile
#!/bin/bash
set -eu
if [ "${DEBUG:-0}" == "1" ]; then
set -x
fi
systemd_unit="$1"
#!/bin/bash
set -eu
if [ "${DEBUG:-0}" == "1" ]; then
set -x
fi
bind_dir="$(readlink -f "$1")"
bind_name="$(basename "${bind_dir}")"
# Prep
echo "lorbus" > ~/.fedora.upn
ssh-keygen
# Add the created public key on https://admin.fedoraproject.org/accounts (and pagure.io)
# Create src.fp.o API key on web interface and save locally (Valid 60 Days)
cat <<EOF > ~/.config/rpkg/fedpkg.conf
[fedpkg.pagure]
token = <token_here>
EOF
@fepitre
fepitre / NoVNC_Paste.js
Created April 22, 2023 09:01 — forked from byjg/NoVNC_Paste.js
How to Paste code to NoVNC.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
window.sendString = function (str) {
f(str.split(""));
function f(t) {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);
@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
@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

git:
baseurl: https://github.com
prefix: fepitre/qubes-
branch: builderv2
maintainers:
- 9FA64B92F95E706BF28E2CA6484010B5CDC576E2
backend-vmm: xen
debug: true
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
* 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
include example-configs/qubes-os-r4.1.conf
VERBOSE=2
DEBUG=1
DIST_DOM0=fc32
DISTS_VM=fc32
TEMPLATE_LABEL += fc32:fedora-32