Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
risinek /
Last active May 28, 2020
This is the example of working plist to run Appium server using launchctl on Mac. See comments for more info and steps how to use this.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
risinek /
Created May 21, 2020 — forked from y-polek/
adb commands to test Doze mode
#! /bin/zsh
# Buttery powered state
adb shell dumpsys battery | grep powered
# Unplug battery
adb shell dumpsys battery unplug
# Reset battery
adb shell dumpsys battery reset
risinek /
Created Mar 11, 2020 — forked from mill1000/
Headless A2DP Audio Streaming on Raspbian Stretch


This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.


A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:

  • Automatic & Headless - Once setup, the system is entirely automatic. No user iteration is required to pair, connect or start playback. Therefore the Raspberry Pi can be run headless.
  • Simple - This solution has few dependencies, readily available packages and minimal configuration.
  • Up to date - As of December 2017. Written for Raspbian Stretch & Bluez 5.43


View FLP studentská sbírka ú

FLP studentská sbírka úloh

Přehlednější sbírka oficiálních řešení + zadání z fitušky od studentů. Upravujte, přidávejte dle libosti. Jen prosím držte nějakou strukturu, ať se v tom dá vyznat. Pro diskuzi se dají použít komentáře u odstavců/kódů.



Řádný termín

(btw priecinok == složka) Nadefinovat strukturu pre DirTree. Urobit funkciu, ktora spocita velkost obsahu priecinka. Urobit funkciu ktora vrati zoznam suborov a priecinkov, ktory obsahuju zadany prefix.