Skip to content

Instantly share code, notes, and snippets.

View drydenp's full-sized avatar

Dryden Personalis drydenp

View GitHub Profile
@drydenp
drydenp / pwdialog.py
Created May 13, 2018 17:30
Graphical Password Dialog along the likes of Zenity and Yad, only a bit prettier
#!/usr/bin/python
import gi
import sys
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from gi.repository import GLib
def log_handler(a, b, c, d):
@drydenp
drydenp / sparsepack.c
Last active May 29, 2017 16:32
Temporary addition to a fleeting experience
#include "sparsepack.h"
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
struct context {
char *cur_buf;
@drydenp
drydenp / automatic-parent-commits.sh
Last active May 25, 2017 14:50
To be run from a cron job to create automatic commits for a git repository that is used to house subrepositories
#!/bin/sh
unset int
[ -t 0 ] && int=yes
medium_minus_date="commit %H%nAuthor: %an <%ae>%n%n%w(0,4,4)%B"
csi=$(printf "\033["); w=${csi}1m; n=${csi}m
[ $# -eq 0 -o "$1" = "--help" ] && {