Skip to content

Instantly share code, notes, and snippets.

View com.github.gerry136.highlighterpdf.json
"id" : "com.github.gerry136.highlighterpdf",
"runtime" : "org.freedesktop.Platform",
"runtime-version" : "19.08",
"sdk" : "org.freedesktop.Sdk",
"command" : "highlighterpdf",
"modules" : [
"name" : "openjdk",
"buildsystem" : "simple",
ramcq /
Last active May 27, 2020
prelim Flatpak for NetSurf

to build/install/test:

  • flatpak-builder --install-deps-from=flathub --repo=repo --ccache --force-clean --user build org.netsurf_browser.NetSurf.yaml
  • flatpak build-update-repo repo
  • flatpak remote-add --no-gpg-verify --user netsurf-test repo
  • flatpak install --user netsurf-test org.netsurf_browser.NetSurf
  • flatpak run org.netsurf_browser.NetSurf
View gist:31741714ff17f00da6f6bd82e3345a86
Description=ZeroTier One Container
ExecStartPre=/usr/bin/rm -f /var/run/containers/storage/overlay-containers/adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935/userdata/
ExecStart=/usr/bin/podman start adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935
ExecStop=/usr/bin/podman stop -t 10 adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935
ramcq / seccomp-with-request_key.json
Created Jun 27, 2019
add request_key syscall to default docker seccomp policy
View seccomp-with-request_key.json
"defaultAction": "SCMP_ACT_ERRNO",
"archMap": [
"architecture": "SCMP_ARCH_X86_64",
"subArchitectures": [
ramcq /
Created Apr 10, 2019
Flatpak manifest for Scratch Desktop 3.0
"app-id": "",
"runtime": "org.freedesktop.Platform",
"runtime-version": "18.08",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "18.08",
"sdk": "org.freedesktop.Sdk",
"command": "scratch-desktop",
"separate-locales": false,
"finish-args": [
ramcq / repo.conf
Created Dec 19, 2018
flathub nginx conf.d fragment for ostree repo TTLs
View repo.conf
location ~ ^/repo/summary(\.sig)?$ {
root /srv/repo;
expires 1h;
add_header Cache-Control "public";
add_header Surrogate-Control "stale-if-error=86400";
location /repo/refs {
root /srv/repo;
expires 1m;
add_header Cache-Control "public";
ramcq /
Created Sep 12, 2018
Endless script to check appstream files for common appdata invalidity
#!/usr/bin/env python3
# This script parses all the local appstream data
# to check for apps that are missing important metadata
# that is required for proper display in gnome-software.
# It is recommended to run `flatpak update --apstream`
# prior to this script.
ramcq /
Created Aug 21, 2018
Reads metadata JSON and writes out RedHat style /etc/sysconfig/network-scripts config
#!/usr/bin/env python3
import argparse
import glob
import ipaddress
import json
import os
import requests
PACKET_BOND_OPTIONS = 'miimon=100 downdelay=200 updelay=200 xmit_hash_policy=1 lacp_rate=1'
# Script inspired from
import os
import sys
import subprocess
import argparse
import textwrap
View live_boot.c
static gboolean
check_for_live_boot ()
GError *error = NULL;
gchar *cmdline = NULL;
gboolean live_boot = FALSE;
if (g_file_get_contents ("/proc/cmdline", &cmdline, NULL, &error))
g_printerr ("unable to read /proc/cmdline: %s\n", error->message);