Skip to content

Instantly share code, notes, and snippets.

View monofox's full-sized avatar

Lukas Schreiner monofox

View GitHub Profile
@monofox
monofox / patch_plantronics_w720.patch
Last active May 18, 2020 18:42
Patch pidgin-headset for Plantronics W720
diff --git a/jabra.c b/jabra.c
index caed49d..e0d21d5 100644
--- a/jabra.c
+++ b/jabra.c
@@ -439,8 +439,11 @@ static gboolean jabra_in(GIOChannel *gio, GIOCondition condition, gpointer user_
if (!jabra.connected) {
writeUsage(jabra.fd, HID_REPORT_TYPE_OUTPUT, LEDUsagePage, Led_Ring, 0);
writeUsage(jabra.fd, HID_REPORT_TYPE_OUTPUT, TelephonyUsagePage, Tel_Ringer, 0);
+ writeUsage(jabra.fd, HID_REPORT_TYPE_OUTPUT, LEDUsagePage, Led_Off_Hook, 0);
+ } else {
starting thread (client mode): 0xa3d63240
Local version/idstring: SSH-2.0-paramiko_2.6.0
Remote version/idstring: SSH-2.0-OpenSSH_7.8
Connected (version 2.0, client OpenSSH_7.8)
kex algos:['curve25519-sha256@libssh.org', 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group14-sha256', 'diffie-hellman-group16-sha512', 'diffie-hellman-group18-sha512', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1'] server key:['rsa-sha2-512', 'rsa-sha2-256', 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ssh-ed25519'] client encrypt:['aes256-gcm@openssh.com', 'chacha20-poly1305@openssh.com', 'aes256-ctr', 'aes256-cbc', 'aes128-gcm@openssh.com', 'aes128-ctr', 'aes128-cbc'] server encrypt:['aes256-gcm@openssh.com', 'chacha20-poly1305@openssh.com', 'aes256-ctr', 'aes256-cbc', 'aes128-gcm@openssh.com', 'aes128-ctr', 'aes128-cbc'] client mac:['hmac-sha2-256-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-512-etm@o
11:45:50  ✔  /m/c/U/l/O/python-libs  $  ssh -vv quser@xx.xxx.xxx.xx
OpenSSH_7.9p1 Debian-10, OpenSSL 1.1.1c 28 May 2019
debug1: Reading configuration data /home/lus/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
@monofox
monofox / gist:3f54012ab8173457349049b665f7e036
Created February 11, 2017 17:22
strace jolla settings vpn
open("/usr/share/themes/sailfish-default/meegotouch/z1.0/icons/icon-m-file-other.png", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 47
fcntl64(47, F_SETFD, FD_CLOEXEC) = 0
fstat64(47, {st_mode=S_IFREG|0644, st_size=828, ...}) = 0
fstat64(47, {st_mode=S_IFREG|0644, st_size=828, ...}) = 0
read(47, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0@\0\0\0@\10\6\0\0\0\252iq"..., 16384) = 828
read(47, "", 15556) = 0
_llseek(47, 0, [0], SEEK_SET) = 0
fstat64(47, {st_mode=S_IFREG|0644, st_size=828, ...}) = 0
fstat64(47, {st_mode=S_IFREG|0644, st_size=828, ...}) = 0
close(47) = 0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import aqbanking
def callback(domain, prio, msg):
print('[LOG]: %r' % (msg,))
def password_cb(flags, token, title, text, minLen, maxLen):
# we'll get something like: