Skip to content

Instantly share code, notes, and snippets.

View dbnicholson's full-sized avatar

Dan Nicholson dbnicholson

View GitHub Profile
diff --git a/builder/builder-main.c b/builder/builder-main.c
index fd04c31..40532e8 100644
--- a/builder/builder-main.c
+++ b/builder/builder-main.c
@@ -450,6 +450,22 @@ main (int argc,
if (!opt_build_only)
{
+ /* Fetch changes for cleanup if no build was done here */
+ if (opt_finish_only)
#!/usr/bin/python
# -*- mode: Python; coding: utf-8 -*-
from __future__ import print_function
import argparse
from gi.repository import GLib, Gio, OSTree
import os
import sys
argparser = argparse.ArgumentParser(description='Copy refs from SRC_REPO')
diff --git a/bind-mount.c b/bind-mount.c
index 7d3543f..d069c96 100644
--- a/bind-mount.c
+++ b/bind-mount.c
@@ -438,3 +438,27 @@ bind_mount (int proc_fd,
return 0;
}
+
+bool
2018/03/06 06:23:24 [INFO] Terraform version: 0.11.3 3802b14260603f90c7a1faf55994dcc8933e2069
2018/03/06 06:23:24 [INFO] Go runtime version: go1.9.1
2018/03/06 06:23:24 [INFO] CLI args: []string{"/home/dan/bin/terraform", "refresh"}
2018/03/06 06:23:24 [DEBUG] Attempting to open CLI config file: /home/dan/.terraformrc
2018/03/06 06:23:24 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/03/06 06:23:24 [INFO] CLI command args: []string{"refresh"}
2018/03/06 06:23:24 [TRACE] Preserving existing state lineage "a87e4ade-b1ee-4b89-8dc3-4539d05b7a34"
2018/03/06 06:23:24 [TRACE] Preserving existing state lineage "a87e4ade-b1ee-4b89-8dc3-4539d05b7a34"
2018/03/06 06:23:24 [INFO] Building AWS region structure
2018/03/06 06:23:24 [INFO] Building AWS auth structure
diff --git a/ansible/tasks/create_user_account.yaml b/ansible/tasks/create_user_account.yaml
index f62350f6..53b5a4fa 100644
--- a/ansible/tasks/create_user_account.yaml
+++ b/ansible/tasks/create_user_account.yaml
@@ -3,7 +3,9 @@
#
# vars:
# user: User to be created
+# user_id: [optional] User ID for new user
# group: [optional] Group that the user belongs to
#!/usr/bin/python3 -u
from argparse import ArgumentParser
from gi import require_version
require_version('OSTree', '1.0')
from gi.repository import GLib, Gio, OSTree
import sys
aparser = ArgumentParser(
description='Find commits that have missing objects'
#!/usr/bin/python3 -u
from argparse import ArgumentParser
from collections import defaultdict
from gi import require_version
require_version('OSTree', '1.0')
from gi.repository import GLib, Gio, OSTree
import sys
def commit_describe(repo, checksum, all_refs=True):

Keybase proof

I hereby claim:

  • I am dbnicholson on github.
  • I am dbn (https://keybase.io/dbn) on keybase.
  • I have a public key ASBgxdZ3UmgeBfQCg0RDcIaZdxm0p-BdpFwl16Lz3MYf9go

To claim this, I am signing this object:

/* Build with:
* cc -o monitor-bug $(pkg-config --cflags --libs gio-unix-2.0) monitor-bug.c
*/
#include <locale.h>
#include <sys/types.h>
#include <unistd.h>
#include <err.h>
#include <signal.h>
#include <glib.h>
@dbnicholson
dbnicholson / all-flatpak-metadata
Last active May 11, 2020 19:22
Dump metadata for all flatpaks from all remotes
#!/usr/bin/env python3
from argparse import ArgumentParser
import gi
import os
gi.require_version('Flatpak', '1.0')
from gi.repository import Flatpak # noqa: E402