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/sh
set -x
set -e
xl network-attach 0 ip=10.137.99.1 script=/etc/xen/scripts/vif-route-qubes backend=sys-net
sleep 2
dev=$(ls /sys/class/net|sort|head -1)
ip a a 10.137.99.1/24 dev $dev
ip l s $dev up
ip r a default dev $dev
#!/bin/bash
set -ex
rm -rf /etc/pki/pesign/*
mkdir -p /etc/pki/pesign
certutil -d /etc/pki/pesign -N --empty-password
efikeygen -d /etc/pki/pesign \
builder-templates-community-r4.3
├── builder-config.yml
├── builder.yml
├── components
│   ├── builder-archlinux
│   │   └── noversion
│   │   └── nodist
│   │   └── fetch
│   │   └── source.fetch.yml
│   ├── builder-debian
#!/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