This file contains 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 |
This file contains 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 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 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 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 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
Contrast=1 ; Contrast [Min:0, Max:7] | |
Saturation=6 ; Saturation [Min:0, Max:7] | |
Sharpness=7 ; Sharpness [Min:0, Max:7] | |
Gamma=2 ; Gamma [Min:0, Max:7] | |
StillSize=0 ; Size: 0 ~ submenu - 1 [Min.: 0, Max.: 7] | |
StillQuality=0 ; Quality [SuperHigh:0, High:1] | |
MicSensitivity=1 ; Microfon sens, 0:High, 1:Standart | |
Scene=0 ; 0:Auto, [Min:0, Max:6] | |
EV=6 ; Exposition 0: -2,0, 1: -1,66, 2: -1,33, 3: -1,00, 4: -0,66, 5: -0,33, 6: 0,00, 7: +0,33, 8: +0,66, 9: +1.00, 10: +1.33, 11: +1,66, 12: +2.0 |
This file contains 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
TARGET=lscr.io/linuxserver/bazarr:latest | |
LATEST=$(docker image inspect $TARGET --format '{{.Created}}' | grep -Eo '[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}') | |
CURRENT=$(< image.date) | |
if [[ "$LATEST" != "$CURRENT" ]]; then | |
echo "$LATEST" > image.date | |
docker stop bazarr | |
docker rm bazarr | |
docker pull $TARGET | |
docker run -d \ |
This file contains 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 | |
for i in $(find /root/Docker/ -type f -name "run") | |
do ( | |
cd $(dirname $(realpath $i)); | |
bash run; | |
) | |
done | |
count=$(docker ps | wc -l) | |
let "count-=1" #remove first line of description |
This file contains 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 | |
#TorrServer don't have docker image at least not often updated so I create script to build one from latest github tag | |
REPO="YouROK/TorrServer" | |
WORKDIR="/root/Docker/TorrServer/" | |
cd $WORKDIR | |
TARGETVER=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | awk -F '"' '/tag_name/{print $4}') | |
CURRENTVER=$(< current.ver) |
This file contains 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/sh | |
pkg update && pkg upgrade -y && pkg install proot-distro wget && pkg clean && pkg autoclean | |
ver=$( curl -s -H 'Pragma: no-cache' "https://api.github.com/repos/Jackett/Jackett/releases/latest" | awk -F '"' '/tag_name/{print $4}' | tr -d '[:cntrl:]' ) | |
echo ">>> Latest Jackett version $ver" | |
case $( uname -m | tr '[:upper:]' '[:lower:]') in | |
x86_64 ) | |
targetos=LinuxAMD | |
;; | |
aarch64 ) |
OlderNewer