This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
REPLICA_NAME="$(basename $1)" | |
SIZE="$(jq .Size /var/lib/longhorn/replicas/$REPLICA_NAME/volume.meta)" | |
TEMP_DIR="$(mktemp -d)" | |
echo "Backing up replica $REPLICA_NAME" | |
CONTAINER_ID=$(docker run -d --rm -v /dev:/host/dev -v /proc:/host/proc -v /var/lib/longhorn/replicas/$REPLICA_NAME:/volume --privileged longhornio/longhorn-engine:v1.6.2 launch-simple-longhorn $REPLICA_NAME $SIZE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "gnome-shell-dbus-debug" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
async-std = { version = "1.12.0", features = ["attributes"] } | |
zbus = "4.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import functools | |
import git | |
import github | |
import tempfile | |
import textwrap | |
changes_requested_label = 'changes requested' | |
merge_label = 'ready to merge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IrScrutinizer parametric export | |
# | |
# Creating tool: IrScrutinizer version 1.3.1dev | |
# Creating user: craigcabrey | |
# Creating date: Sun Oct 23 16:34:24 PDT 2016 | |
# Encoding: WINDOWS-1252 | |
# | |
# Manufacturer: Optoma | |
# Model: L-27-5KEY | |
# Displayname: HD141X Remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
class Application(Gtk.Application): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import subprocess | |
class Service: | |
blacklist = ( | |
'accounting', | |
'check_quotas', | |
'ipsec', | |
'multicast', | |
'pf', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c76461960d05b3d64185d1a67096461ce6854009 Mon Sep 17 00:00:00 2001 | |
From: Craig Cabrey <craigcabrey@gmail.com> | |
Date: Fri, 8 Jul 2016 13:07:26 -0400 | |
Subject: [PATCH] Don't restrict movement gestures to touchscreens | |
--- | |
gtk/gtkscrolledwindow.c | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Author: Craig Cabrey | |
""" | |
identity = [[1, 1], [1, 0]] | |
def multiply(first, second): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import functools | |
import git | |
import github | |
import tempfile | |
import textwrap | |
changes_requested_label = 'changes requested' | |
merge_label = 'ready to merge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gio/gdesktopappinfo.h> | |
#include <stdio.h> | |
// Compile with: | |
// gcc $(pkg-config --cflags gio-unix-2.0) $(pkg-config --libs gio-unix-2.0) test.c -o test | |
int main() | |
{ | |
GList *list; | |
GAppInfo *app; |
NewerOlder