Skip to content

Instantly share code, notes, and snippets.

View dmgl's full-sized avatar
🎯
Focusing

Galochkin D.D. dmgl

🎯
Focusing
  • Russia, Saint-Petersburg
View GitHub Profile
@dmgl
dmgl / analyze_kicker_scores_matplotlib.py
Last active September 14, 2020 16:15
Visualization of our kicker game scores (matplotlib)
import re
import json
import matplotlib.pyplot as plt
j_file = open('/home/dmgl/Downloads/Telegram Desktop/ChatExport_2020-09-04/result.json', 'r')
j = json.load(j_file)
s_type = {'type': 'hashtag', 'text': '#scores'}
@dmgl
dmgl / dmgl_enable_bluetooth.sh
Created July 22, 2021 15:25
Autoenable bluetooth (added to startup)
#!/usr/bin/env bash
OBJECT_PATH=/org/freedesktop/login1/session/$XDG_SESSION_ID
BUS_NAME=org.freedesktop.login1
UNLOCK="$OBJECT_PATH: $BUS_NAME.Session.Unlock ()"
GDBUS_MONITOR="gdbus monitor --system --dest $BUS_NAME --object-path $OBJECT_PATH"
function log {