Skip to content

Instantly share code, notes, and snippets.

Avatar

Dryden Personalis drydenp

View GitHub Profile
@drydenp
drydenp / pwdialog.py
Created May 13, 2018
Graphical Password Dialog along the likes of Zenity and Yad, only a bit prettier
View pwdialog.py
#!/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
Temporary addition to a fleeting experience
View sparsepack.c
#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
To be run from a cron job to create automatic commits for a git repository that is used to house subrepositories
View automatic-parent-commits.sh
#!/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" ] && {