Skip to content

Instantly share code, notes, and snippets.

Avatar

risinek

View GitHub Profile
View FLP studentská sbírka úloh.md

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ů.

Haskell

2018/2019

Řá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.

@risinek
risinek / README.md
Created Mar 11, 2020 — forked from mill1000/README.md
Headless A2DP Audio Streaming on Raspbian Stretch
View README.md

About

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.

Motivation

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

Prerequisites

@risinek
risinek / doze_mode_adb_commands.sh
Created May 21, 2020 — forked from y-polek/doze_mode_adb_commands.sh
adb commands to test Doze mode
View doze_mode_adb_commands.sh
#! /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
risinek / com.company.appium.server.plist
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.
View com.company.appium.server.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>