This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.local/share/applications/acestream.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Name=Acestream | |
GenericName=Media player | |
Comment=Open Acestream links with VLC Media Player | |
Type=Application | |
StartupNotify=false | |
Exec=/snap/bin/acestreamplayer %u | |
TryExec=/snap/bin/acestreamplayer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script shows how to send a libnotify message | |
# to a specific user. | |
# | |
# It looks for a process that was started by the user and is connected to dbus. | |
# process to determine DBUS_SESSION_BUS_ADDRESS | |
USER_DBUS_PROCESS_NAME="gconfd-2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/usr/bin:/bin | |
XUSERS=($(who|grep -E "\(:[0-9](\.[0-9])*\)"|awk '{print $1$5}'|sort -u)) | |
for XUSER in $XUSERS; do | |
NAME=(${XUSER/(/ }) | |
DISPLAY=${NAME[1]/)/} | |
DBUS_ADDRESS=unix:path=/run/user/$(id -u ${NAME[0]})/bus | |
sudo -u ${NAME[0]} DISPLAY=${DISPLAY} \ | |
DBUS_SESSION_BUS_ADDRESS=${DBUS_ADDRESS} \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
NewerOlder