Skip to content

Instantly share code, notes, and snippets.

View bonki's full-sized avatar

Adrian Frühwirth bonki

View GitHub Profile
#!/bin/sh
[ -x "$(which dbus-send)" ] || exit 1
get_attr()
{
who=$1
what=$2
dbus-send \
@bonki
bonki / msysgit2unix-socket.py
Created November 2, 2018 12:01 — forked from kevinvalk/msysgit2unix-socket.py
Updated to better survive crashes and other unexpected behavior.
#!/usr/bin/python
"""
msysGit to Unix socket proxy
============================
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows).
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other
#!/bin/sh
brew deps --installed | \
awk -F'[: ]+' \
'{
packages[$1]++
for (i = 2; i<= NF; i++)
dependencies[$i]++
}
END {
### Keybase proof
I hereby claim:
* I am bonki on github.
* I am bonki (https://keybase.io/bonki) on keybase.
* I have a public key ASAJ1sr4nrUiEjaRlZC8Bvsc_UUUyG9v2EBhDG0Qb2WnkQo
To claim this, I am signing this object: